# Enable/Disable Planet Panel Dismiss Button

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

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

# Arguments

Returns — void

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

Category: Story / Planet Panel / Planet Panel

# Examples

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

    if ((lv_missionID == libCamp_ge_MapID_MapTValerian01)) {
        PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
        PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), false);
        TriggerEnable(gt_PlanetPanelCustomDialogDismissed, true);
        gv_planetPanel_CharInvasionQueryDone = false;

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

        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:25111

    if ((lv_missionID == libCamp_ge_MapID_MapTValerian01)) {
        PlanetPanelSetBackButtonEnabled(PlayerGroupAll(), false);
        PlanetPanelSetDismissButtonEnabled(PlayerGroupAll(), false);
        TriggerEnable(gt_PlanetPanelCustomDialogDismissed, true);
        gv_planetPanel_CharInvasionQueryDone = false;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25120

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