# Show/Hide Mouse Cursor

GrammarshowHideState|Show/Hide the mouse cursor for players.
FlagsNative | Action

Shows or hides the mouse cursor for the specified players.

# Arguments

  • playergroup — Players
  • bool [ preset::ShowHideOption ] — Show/Hide State

Returns — void

native void UISetCursorVisible(
	playergroup players,
	bool isCursorVisible,
);

Category: UI / Game UI

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L8410
UISetCursorVisible(PlayerGroupAll(), false)
// L8437
UISetCursorVisible(PlayerGroupAll(), true)
// L8495
UISetCursorVisible(PlayerGroupAll(), false)
// L8530
UISetCursorVisible(PlayerGroupAll(), true)
// L8662
UISetCursorVisible(PlayerGroupAll(), true)
// L8909
UISetCursorVisible(PlayerGroupAll(), false)
// L4338
UISetCursorVisible(PlayerGroupAll(), false)
// L4535
UISetCursorVisible(PlayerGroupAll(), true)
// L11893
UISetCursorVisible(PlayerGroupAll(), false)
// L11895
UISetCursorVisible(PlayerGroupAll(), true)
// L20761
UISetCursorVisible(PlayerGroupAll(), false)
// L20793
UISetCursorVisible(PlayerGroupAll(), true)
// L33523
UISetCursorVisible(PlayerGroupAll(), true)
// L33655
UISetCursorVisible(PlayerGroupAll(), false)
// L33680
UISetCursorVisible(PlayerGroupAll(), false)
// L33704
UISetCursorVisible(PlayerGroupAll(), false)
// L8410
UISetCursorVisible(PlayerGroupAll(), false)
// L8437
UISetCursorVisible(PlayerGroupAll(), true)
// L8495
UISetCursorVisible(PlayerGroupAll(), false)
// L8530
UISetCursorVisible(PlayerGroupAll(), true)
// L8662
UISetCursorVisible(PlayerGroupAll(), true)
// L8909
UISetCursorVisible(PlayerGroupAll(), false)
// L4338
UISetCursorVisible(PlayerGroupAll(), false)
// L4535
UISetCursorVisible(PlayerGroupAll(), true)
// L11893
UISetCursorVisible(PlayerGroupAll(), false)
// L11895
UISetCursorVisible(PlayerGroupAll(), true)
// L20761
UISetCursorVisible(PlayerGroupAll(), false)
// L20793
UISetCursorVisible(PlayerGroupAll(), true)
// L33523
UISetCursorVisible(PlayerGroupAll(), true)
// L33655
UISetCursorVisible(PlayerGroupAll(), false)
// L33680
UISetCursorVisible(PlayerGroupAll(), false)
// L33704
UISetCursorVisible(PlayerGroupAll(), false)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L10037
UISetCursorVisible(PlayerGroupAll(), true)
// L10208
UISetCursorVisible(PlayerGroupAll(), false)
// L10234
UISetCursorVisible(PlayerGroupAll(), false)
// L10242
UISetCursorVisible(PlayerGroupAll(), true)
// L10890
UISetCursorVisible(PlayerGroupAll(), true)
// L13316
UISetCursorVisible(PlayerGroupAll(), false)
// L13361
UISetCursorVisible(PlayerGroupAll(), false)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L6408
UISetCursorVisible(PlayerGroupAll(), true)
// L6503
UISetCursorVisible(PlayerGroupAll(), false)
// L6628
UISetCursorVisible(PlayerGroupAll(), false)
// L6408
UISetCursorVisible(PlayerGroupAll(), true)
// L6503
UISetCursorVisible(PlayerGroupAll(), false)
// L6628
UISetCursorVisible(PlayerGroupAll(), false)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L14110
UISetCursorVisible(PlayerGroupAll(), false)
// L14119
UISetCursorVisible(PlayerGroupAll(), true)
// L14167
UISetCursorVisible(PlayerGroupAll(), true)
// L14971
UISetCursorVisible(PlayerGroupAll(), false)
// L15000
UISetCursorVisible(PlayerGroupAll(), true)
// L15301
UISetCursorVisible(PlayerGroupAll(), false)
// L15313
UISetCursorVisible(PlayerGroupAll(), true)

# campaigns/void.sc2campaign

MapScript.galaxy

// L7043
UISetCursorVisible(PlayerGroupAll(), false)
// L452
UISetCursorVisible(PlayerGroupAll(), false)
// L2507
UISetCursorVisible(PlayerGroupAll(), true)
// L2903
UISetCursorVisible(PlayerGroupAll(), false)
// L2907
UISetCursorVisible(PlayerGroupAll(), true)
// L2964
UISetCursorVisible(PlayerGroupAll(), false)
// L2968
UISetCursorVisible(PlayerGroupAll(), true)
// L3274
UISetCursorVisible(PlayerGroupAll(), false)
// L3278
UISetCursorVisible(PlayerGroupAll(), true)
// L7043
UISetCursorVisible(PlayerGroupAll(), false)
// L452
UISetCursorVisible(PlayerGroupAll(), false)
// L2507
UISetCursorVisible(PlayerGroupAll(), true)
// L2903
UISetCursorVisible(PlayerGroupAll(), false)
// L2907
UISetCursorVisible(PlayerGroupAll(), true)
// L2964
UISetCursorVisible(PlayerGroupAll(), false)
// L2968
UISetCursorVisible(PlayerGroupAll(), true)
// L3274
UISetCursorVisible(PlayerGroupAll(), false)
// L3278
UISetCursorVisible(PlayerGroupAll(), true)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L505
UISetCursorVisible(PlayerGroupAll(), false)
// L517
UISetCursorVisible(PlayerGroupAll(), true)
// L1298
UISetCursorVisible(PlayerGroupAll(), true)
// L9966
UISetCursorVisible(PlayerGroupAll(), false)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L1461
UISetCursorVisible(PlayerGroupAll(), false)
// L6895
UISetCursorVisible(PlayerGroupAll(), false)
// L6914
UISetCursorVisible(PlayerGroupAll(), false)
// L6928
UISetCursorVisible(PlayerGroupAll(), true)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L5302
UISetCursorVisible(PlayerGroupAll(), false)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L5297
UISetCursorVisible(PlayerGroupAll(), true)
// L5506
UISetCursorVisible(PlayerGroupAll(), true)

# mods/core.sc2mod

NativeLib.galaxy

// L2040
UISetCursorVisible(lv_validPlayers, false)
// L2104
UISetCursorVisible(lv_validPlayers, true)
// L1730
UISetCursorVisible(lv_validPlayers, false)
// L1794
UISetCursorVisible(lv_validPlayers, true)

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L724
UISetCursorVisible(PlayerGroupAll(), false)
// L733
UISetCursorVisible(PlayerGroupAll(), true)
// L2032
UISetCursorVisible(PlayerGroupAll(), true)
// L2057
UISetCursorVisible(PlayerGroupAll(), false)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L1879
UISetCursorVisible(PlayerGroupAll(), false)
// L2293
UISetCursorVisible(PlayerGroupAll(), false)
// L5972
UISetCursorVisible(PlayerGroupAll(), false)
// L5986
UISetCursorVisible(PlayerGroupAll(), false)
// L5996
UISetCursorVisible(PlayerGroupAll(), true)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L3830
UISetCursorVisible(PlayerGroupAll(), true)
// L7315
UISetCursorVisible(PlayerGroupAll(), true)
// L7363
UISetCursorVisible(PlayerGroupAll(), false)

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L569
UISetCursorVisible(PlayerGroupAll(), false)
// L580
UISetCursorVisible(PlayerGroupAll(), true)
// L1069
UISetCursorVisible(PlayerGroupAll(), true)