# Set Custom Menu Dialog Item Text
Grammar — Set the text of menuItem to __show|Text __for players
Flags —Native
|Action
Sets the text of a specified Menu Item in the Custom Menu.
# Arguments
playergroup
— Playersint
<preset::GameMenuDialogItem> — Menu Itemtext
— Text
Returns — void
native void UISetCustomMenuItemText(
playergroup inPlayers,
int inMenuItemType,
text inText,
);
# Related
Category: UI / Game Menu
- Abort Mission —
void
— TriggerAddEventAbortMission - Game Menu Item Selected —
void
— TriggerAddEventGameMenuItemSelected - Game Menu Item Selected —
int
<preset::GameMenuDialogItem> — EventGameMenuItemSelected - Set Game Menu Dialog Item Text —
void
— UISetGameMenuItemText - Set Game Menu Dialog Item Shortcut —
void
— UISetGameMenuItemShortcut - Show/Hide Game Menu Dialog Item —
void
— UISetGameMenuItemVisible - Show Custom Menu —
void
— UIShowCustomMenu - Show Standard Menu —
void
— UIShowStandardMenu - Set Custom Menu Dialog Item Text —
void
— UISetCustomMenuItemText - Set Custom Menu Dialog Item Shortcut —
void
— UISetCustomMenuItemShortcut - Show/Hide Custom Menu Dialog Item —
void
— UISetCustomMenuItemVisible - Hide All Custom Menu Dialog Items —
void
— UIClearCustomMenuItemList
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8306
Wait(4.0, c_timeGame);
UIClearCustomMenuItemList(PlayerGroupAll());
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/04238907"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8308
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/04238907"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/66BCC477"));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8469
UIClearCustomMenuItemList(PlayerGroupAll());
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/69974529"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/82C49B70"));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8471
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/69974529"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/82C49B70"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8306
Wait(4.0, c_timeGame);
UIClearCustomMenuItemList(PlayerGroupAll());
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/04238907"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8308
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/04238907"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/66BCC477"));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8469
UIClearCustomMenuItemList(PlayerGroupAll());
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogOptionsButton, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/69974529"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/82C49B70"));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8471
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton1, StringExternal("Param/Value/69974529"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton1, true);
UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/82C49B70"));
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true);