# Show/Hide Custom Menu Dialog Item

Grammarshow menuItem for players
FlagsNative | Action

Shows or hides the specified Menu Item in the Custom Menu.

# Arguments

Returns — void

native void UISetCustomMenuItemVisible(
	playergroup inPlayers,
	int inMenuItemType,
	bool inVisible,
);

Category: UI / Game Menu

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

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

UILib.galaxy

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