# Planet Panel Canceled

Grammar — Player player cancels the planet panel
FlagsNative | Event

This event fires when the specified player closes the planet panel.

# Arguments

  • int — Player

Returns — void

native void TriggerAddEventPlanetPanelCanceled(
	trigger t,
	int player,
);

Category: Story / Planet Panel / Planet Panel

# Examples

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

void gt_PlanetPanelLeave_Init () {
    gt_PlanetPanelLeave = TriggerCreate("gt_PlanetPanelLeave_Func");
    TriggerAddEventPlanetPanelCanceled(gt_PlanetPanelLeave, c_playerAny);
}

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

void gt_PlanetPanelLeave_Init () {
    gt_PlanetPanelLeave = TriggerCreate("gt_PlanetPanelLeave_Func");
    TriggerAddEventPlanetPanelCanceled(gt_PlanetPanelLeave, c_playerAny);
}

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

    libVCUI_gt_PU_MissionTerranQuitClicked = TriggerCreate("libVCUI_gt_PU_MissionTerranQuitClicked_Func");
    TriggerEnable(libVCUI_gt_PU_MissionTerranQuitClicked, false);
    TriggerAddEventPlanetPanelCanceled(libVCUI_gt_PU_MissionTerranQuitClicked, c_playerAny);
}