# Set Planet Panel Close Button Shortcut

Grammar — Set planet panel close button shortcut key to text for playerGroup
FlagsNative | Action

Sets the hotkey for the close button on the planet panel for the specified players.

# Arguments

  • playergroup — PlayerGroup
  • text — Text

Returns — void

native void PlanetPanelSetBackButtonShortcut(
	playergroup players,
	text inText,
);

Category: Story / Planet Panel / Planet Panel

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1703

    if ((libVoiC_gf_StoryInSimulation() == true)) {
        PlanetPanelSetBackButtonText(PlayerGroupAll(), StringExternal("UI/VoidStoryBack"));
        PlanetPanelSetBackButtonShortcut(PlayerGroupAll(), StringExternalHotkey("Button/Hotkey/MissionPanelBack"));
    }
    else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1707

    else {
        PlanetPanelSetBackButtonText(PlayerGroupAll(), StringExternal("UI/VoidStoryQuit"));
        PlanetPanelSetBackButtonShortcut(PlayerGroupAll(), StringExternalHotkey("UI/Hotkey/StoryQuit"));
        PlanetPanelSetBackButtonTooltip(PlayerGroupAll(), StringExternal("ConversationState/MissionPanelTooltips/Quit_Button/Info/Description"));
    }