# Enable/Disable Command Type
Grammar — disable|Enable/Disable commandOption for playerGroup
Flags —Native
|Action
Enables or disables certain types of interface commands. Use the “Set Command Type Disabled Message” action to customize the message that is displayed when the player attempts to use commands disabled in this manner.
# Arguments
playergroup
— PlayerGroupint
[ preset::UICommandOption ] — Command Optionbool
[ preset::Enable_Disable_Option ] — Disable
Returns — void
native void UISetCommandAllowed(
playergroup players,
int option,
bool allow,
);
# 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/liberty.sc2campaign
// L191
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L192
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L193
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L732
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L733
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L734
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L926
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L927
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L928
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L277
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L278
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L279
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L770
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L771
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L772
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L1063
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L1064
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L1065
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L186
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L187
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L188
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L718
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L719
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L720
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L912
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L913
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L914
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L185
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L186
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L187
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L188
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowMinimap, false)
// L700
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L701
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L702
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L890
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L891
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L892
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L2905
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L3067
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L3976
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L4792
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L5232
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L5722
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L16720
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L16721
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false)
// L1105
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false)
// L2905
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L3067
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L3976
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L4792
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L5232
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L5722
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L16720
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L16721
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false)
// L1105
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false)
// L191
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L192
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L193
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L732
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L733
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L734
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L926
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L927
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L928
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L277
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L278
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L279
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L770
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L771
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L772
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L1063
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L1064
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L1065
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L186
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L187
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L188
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L718
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L719
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L720
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L912
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L913
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L914
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L185
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L186
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L187
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L188
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowMinimap, false)
// L700
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L701
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, false)
// L702
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, false)
// L890
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L891
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowHotkeys, true)
// L892
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowButtons, true)
// L1516
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowQueue, false)
// L1517
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)
// L1523
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowQueue, true)
// L1524
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L1792
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowQueue, true)
// L1793
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, true)
// L1516
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowQueue, false)
// L1517
UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowSmartClick, false)