# Planet Panel Pressed Replay Button

Grammar — Player player pressed the Replay Button on the Planet Panel
FlagsNative | Event

This event fires when the specified player presses the replay button on the planet panel.

# Arguments

  • int — Player

Returns — void

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

Category: Story / Planet Panel / Planet Panel

# Examples

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

void gt_PlanetPanelPlay_Init () {
    gt_PlanetPanelPlay = TriggerCreate("gt_PlanetPanelPlay_Func");
    TriggerAddEventPlanetPanelReplayPressed(gt_PlanetPanelPlay, c_playerAny);
}

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

void gt_PlanetPanelPlay_Init () {
    gt_PlanetPanelPlay = TriggerCreate("gt_PlanetPanelPlay_Func");
    TriggerAddEventPlanetPanelReplayPressed(gt_PlanetPanelPlay, c_playerAny);
}

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

    libVCUI_gt_PU_MissionTerranPitchPlayStop = TriggerCreate("libVCUI_gt_PU_MissionTerranPitchPlayStop_Func");
    TriggerEnable(libVCUI_gt_PU_MissionTerranPitchPlayStop, false);
    TriggerAddEventPlanetPanelReplayPressed(libVCUI_gt_PU_MissionTerranPitchPlayStop, c_playerAny);
}