# Enable/Disable Planet Panel Close Button
Grammar — enable|Enable/Disable the close button for playerGroup
Flags —Native
|Action
Enables or disables the close button on the planet panel for the specified players.
# Arguments
playergroup
— PlayerGroupbool
<preset::Enable_Disable_Option> — Enable
Returns — void
native void PlanetPanelSetBackButtonEnabled(
playergroup players,
bool inEnabled,
);
# Related
Category: Story / Planet Panel / Planet Panel
- Planet Panel Planet Selected —
void
— TriggerAddEventPlanetMissionSelected - Planet Panel Launched —
void
— TriggerAddEventPlanetMissionLaunched - Planet Panel Canceled —
void
— TriggerAddEventPlanetPanelCanceled - Planet Panel Pressed Replay Button —
void
— TriggerAddEventPlanetPanelReplayPressed - Planet Panel Birth Complete —
void
— TriggerAddEventPlanetPanelBirthComplete - Planet Panel Death Complete —
void
— TriggerAddEventPlanetPanelDeathComplete - Clicked Planet —
int
<planet> — EventPlanetPanelMissionSelected - Selected Planet —
int
<planet> — PlanetGetSelected - Selected Mission Difficulty —
int
<difficulty> — EventPlanetPanelDifficultySelected - Planet Panel Contact Button State —
int
<preset::PlanetState3> — PlanetPanelGetContactButtonState - Set Planet Panel Contact Button State —
void
— PlanetPanelSetContactButtonState - Set Planet Panel Background Image —
void
— PlanetPanelSetBackgroundImage - Enable/Disable Planet Panel Close Button —
void
— PlanetPanelSetBackButtonEnabled - Set Planet Panel Close Button Text —
void
— PlanetPanelSetBackButtonText - Set Planet Panel Close Button Shortcut —
void
— PlanetPanelSetBackButtonShortcut - Set Planet Panel Close Button Tooltip —
void
— PlanetPanelSetBackButtonTooltip - Enable/Disable Planet Panel Dismiss Button —
void
— PlanetPanelSetDismissButtonEnabled - Set Selected Planet —
void
— PlanetSetSelected - Clear Selected Planet —
void
— PlanetClearSelected
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10231
gf_PlanetPanelDestory();
if ((lp_leaveCallback == null)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17129
gf_SetIdleState(ge_IdleState_Busy);
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetMarSara, gt_MarSaraBriefcaseLeave);
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), true);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25110
lv_missionID = libCamp_gf_PlanetMission(lv_planetID);
if ((lv_missionID == libCamp_ge_MapID_MapTValerian01)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), false);
TriggerEnable(gt_PlanetPanelCustomDialogDismissed, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25119
}
if ((gv_planetPanel_CharInvasionQueryResult != libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), true);
PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), true);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:10231
gf_PlanetPanelDestory();
if ((lp_leaveCallback == null)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17129
gf_SetIdleState(ge_IdleState_Busy);
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetMarSara, gt_MarSaraBriefcaseLeave);
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), true);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:25110
lv_missionID = libCamp_gf_PlanetMission(lv_planetID);
if ((lv_missionID == libCamp_ge_MapID_MapTValerian01)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), false);
TriggerEnable(gt_PlanetPanelCustomDialogDismissed, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:25119
}
if ((gv_planetPanel_CharInvasionQueryResult != libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), true);
PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), true);
return true;