# Set Game 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 game menu. Allows customization of the F10 menu.
# Arguments
playergroup
— Playersint
<preset::GameMenuDialogItem> — Menu Itemtext
— Text
Returns — void
native void UISetGameMenuItemText(
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/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12750
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true);
if ((libSwaC_gv_zSX_IsSimulation == true)) {
UISetGameMenuItemText(PlayerGroupAll(), c_gameMenuDialogAbortButton, StringExternal("Param/Value/lib_SwaC_3FE3B4E6"));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6592
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true);
if ((libVoiC_gv_pCX_IsSimulation == true)) {
UISetGameMenuItemText(PlayerGroupAll(), c_gameMenuDialogAbortButton, StringExternal("Param/Value/lib_VoiC_462A52E0"));
}
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2272
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true);
if ((libComC_gf_CC_TransitionInSimulation() == true)) {
UISetGameMenuItemText(PlayerGroupAll(), c_gameMenuDialogAbortButton, StringExternal("Param/Value/lib_NovC_AA8623D0"));
}
else if ((lp_map == "Nova02")) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2275
}
else if ((lp_map == "Nova02")) {
UISetGameMenuItemText(PlayerGroupAll(), c_gameMenuDialogAbortButton, StringExternal("Param/Value/lib_NovC_F3B96077"));
}
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5885
UISetGameMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogAbortButton, true);
if ((libA3DDD02B_gv_pPX_IsSimulation == true)) {
UISetGameMenuItemText(PlayerGroupAll(), c_gameMenuDialogAbortButton, StringExternal("Param/Value/lib_A3DDD02B_3FE3B4E6"));
}