# Show Custom Menu

Grammar — Show the Game Menu with Title show|Text for players
FlagsNative | Action

The Custom Menu is similiar in look and functionality to the Game Menu (F10 Menu). However, the Custom Menu doesn’t force items on or off based on the current state of the game.

# Arguments

  • playergroup — Players
  • text — Title

Returns — void

native void UIShowCustomMenu(
	playergroup inPlayers,
	text inTitleText,
);

Category: UI / Game Menu

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8310

    UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
    UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/66BCC477"));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8474

    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true);
    UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/14A8C48E"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8310

    UISetCustomMenuItemText(PlayerGroupAll(), c_gameMenuDialogGenericButton2, StringExternal("Param/Value/9D577A69"));
    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
    UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/66BCC477"));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8474

    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogGenericButton2, true);
    UISetCustomMenuItemVisible(PlayerGroupAll(), c_gameMenuDialogReturnToGameplayButton, true);
    UIShowCustomMenu(PlayerGroupAll(), StringExternal("Param/Value/14A8C48E"));
    return true;
}