# Planet Panel Contact Button State

Grammar — Planet panel contact button state for player player
FlagsNative | Function

Returns the current state of the contact button on the planet panel.

# Arguments

  • int — Player

Returns — int<preset::PlanetState3>

native int PlanetPanelGetContactButtonState(int player);

Category: Story / Planet Panel / Planet Panel

# Examples

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

    }

    if ((PlanetPanelGetContactButtonState(1) == c_planetPanelContactButtonStatePause)) {
        PlanetPanelSetContactButtonState(PlayerGroupAll(), c_planetPanelContactButtonStatePlay);
        gf_StopAllTransmissionConversation();

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

    }

    if ((PlanetPanelGetContactButtonState(1) == c_planetPanelContactButtonStatePause)) {
        PlanetPanelSetContactButtonState(PlayerGroupAll(), c_planetPanelContactButtonStatePlay);
        gf_StopAllTransmissionConversation();