# Enable/Disable Drag Selection
Grammar — enableDisable mouse drag selection for players
Flags —Native
|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
playergroup
— Playersbool
[ preset::Enable_Disable_Option ] — Enable/Disable
Returns — void
native void UISetDragSelectEnabled(
playergroup players,
bool enable,
);
# Related
Category: UI / Game UI
- [F] —
void
— Set Screen Mode — ( UISetMode ) - [F] —
void
— Set Minimum Letterbox Height — ( UISetMinimumLetterboxHeight ) - [F] —
void
— Show/Hide Game UI — ( libNtve_gf_HideGameUI ) - [F] —
void
— Add/Remove UI Frame Type For Global Filter List — ( libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList ) - [P] — UI Frame Flag
- [F] —
bool
— UI Frame Flag Check — ( libNtve_gf_UIFrameFlagCheck ) - [F] —
void
— For Each UI Frame — ( ) - [F] —
void
— Show/Hide UI Frame — ( UISetFrameVisible ) - [F] —
void
— Set BattleNet Button Offset — ( UISetBattleNetButtonOffset ) - [F] —
void
— Clear BattleNet Button Offset — ( UIClearBattleNetButtonOffset ) - [F] —
bool
— UI Frame Is Visible — ( UIFrameVisible ) - [F] —
void
— Show/Hide World — ( UISetWorldVisible ) - [F] —
void
— Show/Hide Achievement Panel — ( AchievementPanelSetVisible ) - [F] —
void
— Show/Hide Mouse Cursor — ( UISetCursorVisible ) - [F] —
void
— Enable/Disable Mouse Cursor Auto Hide — ( UISetCursorAutoHide ) - [F] —
void
— Enable/Disable Drag Selection — ( UISetDragSelectEnabled ) - [F] —
void
— Set Hot Key Profile — ( UISetHotkeyProfile ) - [F] —
void
— Lock Ally Color Setting — ( UIUnitColorStyleOverride ) - [F] —
void
— Unlock Ally Color Setting — ( UIUnitColorStyleClearOverride ) - [F] —
void
— Lock Flyer Helper Display — ( UIFlyerHelperOverride ) - [F] —
void
— Unlock Flyer Helper Display — ( UIFlyerHelperClearOverride ) - [F] —
void
— Lock Status Bar Display — ( UIStatusBarOverride ) - [F] —
void
— Unlock Status Bar Display — ( UIStatusBarClearOverride ) - [F] —
void
— Set Achievement Toast Style — ( UISetAchievementToastStyle ) - [F] —
void
— Set Minimap Background Color — ( UISetMiniMapBackGroundColor ) - [F] —
void
— Show/Hide Minimap Camera Field of View — ( UISetMiniMapCameraFoVVisible ) - [F] —
void
— Set Minimap Bounds — ( UISetMiniMapBounds ) - [F] —
void
— Enable/Disable Command Type — ( UISetCommandAllowed ) - [F] —
void
— Turn Ability Highlight On/Off — ( UISetButtonHighlighted ) - [F] —
void
— Turn Button Highlight On/Off — ( UISetButtonFaceHighlighted ) - [F] —
void
— Set Command Type Disabled Message — ( UISetCommandDisallowedMessage ) - [F] —
void
— Show/Hide Resource — ( UISetResourceVisible ) - [F] —
void
— Enable/Disable Selection Type — ( UISetSelectionTypeEnabled ) - [F] —
void
— Launch Nydus Link — ( UILaunchNydusLink ) - [F] —
void
— Show/Hide Message Log — ( UIMessageLogPanelSetVisible ) - [F] —
void
— Set Targeting Order — ( UISetTargetingOrder ) - [F] —
void
— Enable/Disable Hotkey — ( UISetHotkeyAllowed ) - [F] —
void
— Target Mode Updated — ( TriggerAddEventTargetModeUpdate ) - [F] —
void
— Resources Requested — ( TriggerAddEventResourceRequest ) - [F] —
void
— Resources Traded — ( TriggerAddEventResourceTrade ) - [F] —
abilcmd
— Target Mode Ability Command — ( EventTargetModeAbilCmd ) - [F] —
int
[ preset::TargetModeState ] — Target Mode State — ( EventTargetModeState ) - [F] —
int
— Resource Requested Amount — ( EventResourceRequestAmount ) - [F] —
int
— Resource Traded Amount — ( EventResourceTradeAmount ) - [F] —
int
— Resource Traded Recipient — ( EventResourceTradeRecipient )
# 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
// L347
UISetDragSelectEnabled(PlayerGroupAll(), false)
# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod
// L423
UISetDragSelectEnabled(PlayerGroupAll(), false)
# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod
// L423
UISetDragSelectEnabled(PlayerGroupAll(), false)
# mods/heroesdata.stormmod
// L13022
UISetDragSelectEnabled(PlayerGroupSingle(lv_lVPlayer), true)
# mods/heroesdata.stormmod
// L1400
UISetDragSelectEnabled(PlayerGroupAll(), true)
// L1407
UISetDragSelectEnabled(PlayerGroupAll(), false)
# mods/heroesdata.stormmod
// L8758
UISetDragSelectEnabled(PlayerGroupAll(), false)
# mods/heromods/samuro.stormmod
// L228
UISetDragSelectEnabled(PlayerGroupSingle(lv_samuroPlayer), true)
// L1883
UISetDragSelectEnabled(PlayerGroupSingle(lv_samuroPlayer), true)
# mods/missionpacks/novacampaign.sc2mod
// L5774
UISetDragSelectEnabled(PlayerGroupAll(), false)
// L5785
UISetDragSelectEnabled(PlayerGroupAll(), true)