# Enable/Disable Planet Panel Close Button

Grammarenable|Enable/Disable the close button for playerGroup
FlagsNative | Action

Enables or disables the close button on the planet panel for the specified players.

# Arguments

Returns — void

native void PlanetPanelSetBackButtonEnabled(
	playergroup players,
	bool inEnabled,
);

Category: Story / Planet Panel / Planet Panel

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10231

    gf_PlanetPanelDestory();
    if ((lp_leaveCallback == null)) {
        PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
    }

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.galaxy:10231

    gf_PlanetPanelDestory();
    if ((lp_leaveCallback == null)) {
        PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:25119

        }
        if ((gv_planetPanel_CharInvasionQueryResult != libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
            PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), true);
            PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), true);
            return true;