# Enable/Disable Drag Selection

GrammarenableDisable mouse drag selection for players
FlagsNative | Action

If drag selection is disabled, the selection box will no longer appear when left clicking and holding down the button while moving the mouse cursor

# Arguments

Returns — void

native void UISetDragSelectEnabled(
	playergroup players,
	bool enable,
);

Category: UI / Game UI

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L476
UISetDragSelectEnabled(PlayerGroupAll(), false)
// L565
UISetDragSelectEnabled(PlayerGroupAll(), true)
// L6655
UISetDragSelectEnabled(PlayerGroupAll(), false)
// L6666
UISetDragSelectEnabled(PlayerGroupAll(), true)

# mods/frontiers.sc2mod

Lib6CB3363F.galaxy

// L347
UISetDragSelectEnabled(PlayerGroupAll(), false)

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L423
UISetDragSelectEnabled(PlayerGroupAll(), false)

# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod

LibAtDe.galaxy

// L423
UISetDragSelectEnabled(PlayerGroupAll(), false)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L13022
UISetDragSelectEnabled(PlayerGroupSingle(lv_lVPlayer), true)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L1400
UISetDragSelectEnabled(PlayerGroupAll(), true)
// L1407
UISetDragSelectEnabled(PlayerGroupAll(), false)

# mods/heroesdata.stormmod

UILib.galaxy

// L8758
UISetDragSelectEnabled(PlayerGroupAll(), false)

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L228
UISetDragSelectEnabled(PlayerGroupSingle(lv_samuroPlayer), true)
// L1883
UISetDragSelectEnabled(PlayerGroupSingle(lv_samuroPlayer), true)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5774
UISetDragSelectEnabled(PlayerGroupAll(), false)
// L5785
UISetDragSelectEnabled(PlayerGroupAll(), true)