# Show/Hide Custom Menu Dialog Item
Grammar — show menuItem for players
Flags —Native
|Action
Shows or hides the specified Menu Item in the Custom Menu.
# Arguments
playergroup
— Playersint
[ preset::GameMenuDialogItem ] — Menu Itembool
[ preset::ShowHideOption ] — Show/Hide
Returns — void
native void UISetCustomMenuItemVisible(
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/liberty.sc2campaign
// L8307
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true)
// L8309
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true)
// L8468
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true)
// L8470
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true)
// L8472
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true)
// L8473
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true)
// L8307
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true)
// L8309
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true)
// L8468
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true)
// L8470
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true)
// L8472
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true)
// L8473
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true)
# mods/heroesdata.stormmod
// L8770
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true)
// L8772
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogExitButton, true)
// L8775
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogQuitButton, true)
// L8777
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true)
// L8778
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogMessageLogButton, false)
// L8779
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAchievementsButton, false)