# Enable/Disable Mouse Cursor Auto Hide
Grammar — enableDisable mouse cursor auto hide for players, using a delay second delay for hiding
Flags —Native|Action
Auto hide causes the mouse cursor to automatically be hidden if the user hasn’t moved the cursor for a period of time. The cursor will also automatically be shown whenever the cursor is moved.
# Arguments
- playergroup— Players
- bool<preset::Enable_Disable_Option> — Enable/Disable
- fixed— Delay
Returns — void
native void UISetCursorAutoHide(
	playergroup players,
	bool autoHide,
	fixed delay,
);
# Related
Category: UI / Game UI
- Set Screen Mode — void— UISetMode
- Set Minimum Letterbox Height — void— UISetMinimumLetterboxHeight
- Show/Hide Game UI — void— libNtve_gf_HideGameUI
- Add/Remove UI Frame Type For Global Filter List — void— libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList
- UI Frame Flag — preset — int
- UI Frame Flag Check — bool— libNtve_gf_UIFrameFlagCheck
- For Each UI Frame — macro
- Show/Hide UI Frame — void— UISetFrameVisible
- Set BattleNet Button Offset — void— UISetBattleNetButtonOffset
- Clear BattleNet Button Offset — void— UIClearBattleNetButtonOffset
- UI Frame Is Visible — bool— UIFrameVisible
- Show/Hide World — void— UISetWorldVisible
- Show/Hide Achievement Panel — void— AchievementPanelSetVisible
- Show/Hide Mouse Cursor — void— UISetCursorVisible
- Enable/Disable Mouse Cursor Auto Hide — void— UISetCursorAutoHide
- Enable/Disable Drag Selection — void— UISetDragSelectEnabled
- Set Hot Key Profile — void— UISetHotkeyProfile
- Lock Ally Color Setting — void— UIUnitColorStyleOverride
- Unlock Ally Color Setting — void— UIUnitColorStyleClearOverride
- Lock Flyer Helper Display — void— UIFlyerHelperOverride
- Unlock Flyer Helper Display — void— UIFlyerHelperClearOverride
- Lock Status Bar Display — void— UIStatusBarOverride
- Unlock Status Bar Display — void— UIStatusBarClearOverride
- Set Achievement Toast Style — void— UISetAchievementToastStyle
- Set Minimap Background Color — void— UISetMiniMapBackGroundColor
- Show/Hide Minimap Camera Field of View — void— UISetMiniMapCameraFoVVisible
- Set Minimap Bounds — void— UISetMiniMapBounds
- Enable/Disable Command Type — void— UISetCommandAllowed
- Turn Ability Highlight On/Off — void— UISetButtonHighlighted
- Turn Button Highlight On/Off — void— UISetButtonFaceHighlighted
- Set Command Type Disabled Message — void— UISetCommandDisallowedMessage
- Show/Hide Resource — void— UISetResourceVisible
- Enable/Disable Selection Type — void— UISetSelectionTypeEnabled
- Launch Nydus Link — void— UILaunchNydusLink
- Show/Hide Message Log — void— UIMessageLogPanelSetVisible
- Set Targeting Order — void— UISetTargetingOrder
- Enable/Disable Hotkey — void— UISetHotkeyAllowed
- Target Mode Updated — void— TriggerAddEventTargetModeUpdate
- Resources Requested — void— TriggerAddEventResourceRequest
- Resources Traded — void— TriggerAddEventResourceTrade
- Target Mode Ability Command — abilcmd— EventTargetModeAbilCmd
- Target Mode State — int<preset::TargetModeState> — EventTargetModeState
- Resource Requested Amount — int— EventResourceRequestAmount
- Resource Traded Amount — int— EventResourceTradeAmount
- Resource Traded Recipient — int— EventResourceTradeRecipient
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3273
    // Implementation
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
    if ((gv_controlTipDialog == c_invalidDialogId)) {
        libCamp_gf_CreateDialogInGrid(40.0, 25.0, c_anchorCenter, 0.0, -2.0, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3307
        Wait(0.5, c_timeGame);
    }
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3446
    // Implementation
    UISetCursorAutoHide(PlayerGroupAll(), false, gv_c_MouseHideWait);
    libCamp_gf_CreateDialogInGrid(10.0, 15.0, c_anchorCenter, 0.0, 0.0, false);
    lv_dlg = DialogLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3563
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, false);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, false);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4096
    TriggerExecute(gt_IntroCinematic, true, true);
    gf_FighterEnableDisableControl(true);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
    libNtve_gf_DisplayScreenButton(gv_c_ScreenButton_Quit, StringExternal("Param/Value/6655B697"), 240, 80, c_anchorBottomRight, 40, 35, gt_QuitButtonClicked);
    libNtve_gf_SetDialogItemHandle(libNtve_gf_ScreenButton(gv_c_ScreenButton_Quit), "WoL_CantinaArcade_QuitButton", PlayerGroupAll());
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8370
    }
    UISetCursorAutoHide(PlayerGroupAll(), true, 5.0);
    TriggerEnable(gt_EscapeKeyMenu, true);
    return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8411
    UISetCursorVisible(PlayerGroupAll(), false);
    UISetCursorAutoHide(PlayerGroupAll(), true, 5.0);
    TriggerEnable(gt_EscapeKeyMenu, true);
    return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8436
    gv_fighterMoveRightKeyDown = false;
    gv_fighterMoveUpKeyDown = false;
    UISetCursorAutoHide(PlayerGroupAll(), false, 5.0);
    UISetCursorVisible(PlayerGroupAll(), true);
    UIShowCustomDialog(PlayerGroupAll(), 1, StringExternal("Param/Value/2D8B36F5"), StringExternal("Param/Value/B690D296"), true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3273
    // Implementation
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
    if ((gv_controlTipDialog == c_invalidDialogId)) {
        libCamp_gf_CreateDialogInGrid(40.0, 25.0, c_anchorCenter, 0.0, -2.0, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3307
        Wait(0.5, c_timeGame);
    }
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3446
    // Implementation
    UISetCursorAutoHide(PlayerGroupAll(), false, gv_c_MouseHideWait);
    libCamp_gf_CreateDialogInGrid(10.0, 15.0, c_anchorCenter, 0.0, 0.0, false);
    lv_dlg = DialogLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3563
    TriggerEnable(gt_ScoreScreenCloseButtonClicked, false);
    TriggerEnable(gt_ScoreScreenSpacebarPressed, false);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:4096
    TriggerExecute(gt_IntroCinematic, true, true);
    gf_FighterEnableDisableControl(true);
    UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait);
    libNtve_gf_DisplayScreenButton(gv_c_ScreenButton_Quit, StringExternal("Param/Value/6655B697"), 240, 80, c_anchorBottomRight, 40, 35, gt_QuitButtonClicked);
    libNtve_gf_SetDialogItemHandle(libNtve_gf_ScreenButton(gv_c_ScreenButton_Quit), "WoL_CantinaArcade_QuitButton", PlayerGroupAll());
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8370
    }
    UISetCursorAutoHide(PlayerGroupAll(), true, 5.0);
    TriggerEnable(gt_EscapeKeyMenu, true);
    return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8411
    UISetCursorVisible(PlayerGroupAll(), false);
    UISetCursorAutoHide(PlayerGroupAll(), true, 5.0);
    TriggerEnable(gt_EscapeKeyMenu, true);
    return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8436
    gv_fighterMoveRightKeyDown = false;
    gv_fighterMoveUpKeyDown = false;
    UISetCursorAutoHide(PlayerGroupAll(), false, 5.0);
    UISetCursorVisible(PlayerGroupAll(), true);
    UIShowCustomDialog(PlayerGroupAll(), 1, StringExternal("Param/Value/2D8B36F5"), StringExternal("Param/Value/B690D296"), true);