# Enable/Disable Selection Type
Grammar — disable|Enable/Disable selectionType for playerGroup
Flags —Native
|Action
If a Selection Type is disabled the player may not use that Selection Type to change their selected unit(s).
# Arguments
playergroup
— Player Groupint
[ preset::SelectionType ] — Selection Typebool
[ preset::Enable_Disable_Option ] — Disable
Returns — void
native void UISetSelectionTypeEnabled(
playergroup inPlayers,
int inSelectionType,
bool inEnabled,
);
# 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/void.sc2campaign
// L2984
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3033
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3136
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3181
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3804
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L3923
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L4345
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L5140
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2984
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3033
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3136
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, false)
// L3181
UISetSelectionTypeEnabled(PlayerGroupSingle(gv_p01_USER), c_localSelectionTypeUnknown, true)
// L3804
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L3923
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L4345
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L5140
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L6656
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L6667
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
# mods/frontiers.sc2mod
// L346
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2157
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L2178
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod
// L424
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod
// L424
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
# mods/heroesdata.stormmod
// L5047
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_player), c_localSelectionTypeWorldPanelHero, false)
// L5051
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_player), c_localSelectionTypeWorldPanelHero, true)
// L8398
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_chenPlayer), c_localSelectionTypeWorldPanelHero, false)
// L8411
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_chenPlayer), c_localSelectionTypeWorldPanelHero, true)
// L13021
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_lVPlayer), c_localSelectionTypeUnknown, true)
// L18039
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_ownerOfCreatedUnit), c_localSelectionTypeWorldPanelHero, false)
// L18051
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_ownerOfCreatedUnit), c_localSelectionTypeWorldPanelHero, true)
// L19690
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_rexxarPlayer), c_localSelectionTypeWorldPanelHero, false)
// L19745
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_rexxarPlayer), c_localSelectionTypeWorldPanelHero, true)
# mods/heroesdata.stormmod
// L1401
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
// L1408
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
# mods/heroesdata.stormmod
// L8759
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L8760
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeWorldPanelHero, true)
# mods/heromods/medivh.stormmod
// L570
UISetSelectionTypeEnabled(PlayerGroupSingle(UnitGetOwner(lv_portalCaster)), c_localSelectionTypeWorldPanelHero, false)
// L574
UISetSelectionTypeEnabled(PlayerGroupSingle(UnitGetOwner(lv_portalCaster)), c_localSelectionTypeWorldPanelHero, true)
# mods/heromods/samuro.stormmod
// L227
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true)
// L1882
UISetSelectionTypeEnabled(PlayerGroupSingle(lv_samuroPlayer), c_localSelectionTypeUnknown, true)
# mods/missionpacks/novacampaign.sc2mod
// L5775
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L5786
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, true)
# mods/novastoryassets.sc2mod
// L2882
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)
// L2882
UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false)