# Show/Hide Game Menu Dialog Item
Grammar — show menuItem for players
Flags —Native
|Action
Shows or hides the specified menu item in the game menu. Allows customization of the F10 menu.
# Arguments
playergroup
— Playersint
[ preset::GameMenuDialogItem ] — Menu Itembool
[ preset::ShowHideOption ] — Show/Hide
Returns — void
native void UISetGameMenuItemVisible(
playergroup inPlayers,
int inMenuItemType,
bool inVisible,
);
# Related
Category: UI / Game Menu
- [F] —
void
— Abort Mission — ( TriggerAddEventAbortMission ) - [F] —
void
— Game Menu Item Selected — ( TriggerAddEventGameMenuItemSelected ) - [F] —
int
[ preset::GameMenuDialogItem ] — Game Menu Item Selected — ( EventGameMenuItemSelected ) - [F] —
void
— Set Game Menu Dialog Item Text — ( UISetGameMenuItemText ) - [F] —
void
— Set Game Menu Dialog Item Shortcut — ( UISetGameMenuItemShortcut ) - [F] —
void
— Show/Hide Game Menu Dialog Item — ( UISetGameMenuItemVisible ) - [F] —
void
— Show Custom Menu — ( UIShowCustomMenu ) - [F] —
void
— Show Standard Menu — ( UIShowStandardMenu ) - [F] —
void
— Set Custom Menu Dialog Item Text — ( UISetCustomMenuItemText ) - [F] —
void
— Set Custom Menu Dialog Item Shortcut — ( UISetCustomMenuItemShortcut ) - [F] —
void
— Show/Hide Custom Menu Dialog Item — ( UISetCustomMenuItemVisible ) - [F] —
void
— Hide All Custom Menu Dialog Items — ( UIClearCustomMenuItemList )
# Examples
# campaigns/libertystory.sc2campaign
// L8266
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartDifficultyPulldown, true)
// L8311
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, true)
// L8312
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true)
// L8321
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L8322
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)
# campaigns/swarmstory.sc2campaign
// L631
UISetGameMenuItemVisible(PlayerGroupSingle(1), c_gameMenuDialogRestartDifficultyPulldown, true)
// L12742
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, true)
// L12745
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L12748
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true)
// L12755
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)
# campaigns/voidstory.sc2campaign
// L6584
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, true)
// L6587
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L6590
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true)
// L6596
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L4371
UISetGameMenuItemVisible(PlayerGroupSingle(1), c_gameMenuDialogRestartDifficultyPulldown, true)
# mods/heroesdata.stormmod
// L8762
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L8763
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogSaveButton, false)
// L8764
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogLoadButton, false)
// L8765
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true)
// L8766
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogMessageLogButton, false)
// L8767
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAchievementsButton, false)
# mods/missionpacks/novacampaign.sc2mod
// L4425
UISetGameMenuItemVisible(PlayerGroupSingle(1), c_gameMenuDialogRestartDifficultyPulldown, true)
# mods/missionpacks/novacampaign.sc2mod
// L2264
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, true)
// L2267
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L2270
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true)
// L2279
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)
# mods/starcoop/starcoop.sc2mod
// L4379
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L4380
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)
# mods/voidprologue.sc2mod
// L325
UISetGameMenuItemVisible(PlayerGroupSingle(1), c_gameMenuDialogRestartDifficultyPulldown, true)
// L5877
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, true)
// L5880
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogRestartButton, false)
// L5883
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true)
// L5890
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, false)