# Set Screen Mode

Grammar — Set screen mode to mode for players over duration seconds
FlagsNative | Action

Changes the screen mode for the player group over the duration specified.

# Arguments

  • playergroup — Players
  • int [ preset::ScreenMode ] — Mode
  • fixed — Duration

Returns — void

native void UISetMode(
	playergroup players,
	int mode,
	fixed duration,
);

Category: UI / Game UI

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// 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)