# Set Planet Panel Close Button Text

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

Sets the text that is displayed on the close button on the planet panel for the specified players.

# Arguments

  • playergroup — PlayerGroup
  • text — Text

Returns — void

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

Category: Story / Planet Panel / Planet Panel

# Examples

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

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

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

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