# Set Screen Mode
Grammar — Set screen mode to mode for players over duration seconds
Flags —Native
|Action
Changes the screen mode for the player group over the duration specified.
# Arguments
playergroup
— Playersint
[ preset::ScreenMode ] — Modefixed
— Duration
Returns — void
native void UISetMode(
playergroup players,
int mode,
fixed duration,
);
# 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
// L409
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L597
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L818
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L998
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1159
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1340
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L2947
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L487
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L662
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L462
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L525
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1740
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L2213
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L2499
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L766
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L947
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1109
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1276
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L2811
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L385
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L587
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L824
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L1011
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1179
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L1349
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L2967
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0)
// L401
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L578
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L4067
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationImmediate)
// L8661
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationDefault)
// L5685
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L4732
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5341
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5953
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L6525
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L3906
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5601
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5820
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5103
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5442
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5654
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5082
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5479
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5814
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5939
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L6555
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L7023
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L11102
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L11593
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L11974
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L12172
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L12683
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L4633
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5302
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5506
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5758
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L4652
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L4835
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L4603
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5075
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L23681
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationDefault)
// L33517
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationDefault)
// L33683
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L33707
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L33780
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L33958
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationDefault)
// L34169
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L34193
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L34258
UISetMode(PlayerGroupAll(), c_uiModeLetterboxed, c_transitionDurationImmediate)
// L34407
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, c_transitionDurationDefault)
// L4760
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5027
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L3941
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L4239
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5005
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5227
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5553
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5952
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6232
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6504
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 2.0)
// L704
UISetMode(PlayerGroupAll(), c_uiModeConsole, c_transitionDurationDefault)
// L4514
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5004
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5008
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5161
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5654
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6060
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6432
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L3305
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L3637
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L3927
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L4524
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L5077
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5507
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L5774
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6069
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L6535
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 0.0)
// L7674
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L9418
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)
// L9771
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0)