# Planet Panel Portrait

Grammar — Planet panel portrait
FlagsNative | Function

Returns the planet panel portrait.

Returns — int<portrait>

native int PortraitGetPlanetPanel();

Category: Portrait / Useful Portraits

# Examples

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

    // Implementation
    if ((lp_grayout == true)) {
        PortraitForceTransition(PortraitGetPlanetPanel(), true, true);
    }
    else {

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

    }
    else {
        PortraitForceTransition(PortraitGetPlanetPanel(), false, false);
    }
}

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

    lv_mission = libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection);
    if ((lv_mission == libCamp_ge_MapID_MapTHanson01)) {
        PortraitSetModel(PortraitGetPlanetPanel(), "HansonDistressPortrait", true);
    }
    else {

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

    }
    else {
        PortraitSetModel(PortraitGetPlanetPanel(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection))), true);
    }
    if ((gf_PlanetPanelPlanetPitched(gf_PlanetPanelPlanetFromPlanetID(gv_planetPanel_CurrentSelection)) == true)) {

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

    }
    ConversationDataStateSetValue(libCamp_gf_MissionPitches(lv_missionID), 1);
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());

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

    ConversationDataStateSetValue(libCamp_gf_MissionPitches(lv_missionID), 1);
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel());
    PlanetPanelSetContactButtonState(PlayerGroupAll(), c_planetPanelContactButtonStatePause);

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

    // Implementation
    if ((lp_grayout == true)) {
        PortraitForceTransition(PortraitGetPlanetPanel(), true, true);
    }
    else {

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

    }
    else {
        PortraitForceTransition(PortraitGetPlanetPanel(), false, false);
    }
}

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

    lv_mission = libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection);
    if ((lv_mission == libCamp_ge_MapID_MapTHanson01)) {
        PortraitSetModel(PortraitGetPlanetPanel(), "HansonDistressPortrait", true);
    }
    else {

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

    }
    else {
        PortraitSetModel(PortraitGetPlanetPanel(), libCamp_gf_ContactPortraitModel(libCamp_gf_MissionContact(libCamp_gf_PlanetMission(gv_planetPanel_CurrentSelection))), true);
    }
    if ((gf_PlanetPanelPlanetPitched(gf_PlanetPanelPlanetFromPlanetID(gv_planetPanel_CurrentSelection)) == true)) {

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

    }
    ConversationDataStateSetValue(libCamp_gf_MissionPitches(lv_missionID), 1);
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());

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

    ConversationDataStateSetValue(libCamp_gf_MissionPitches(lv_missionID), 1);
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorAdjutant), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHanson), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorHorner), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel());

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

    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTosh), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorTychus), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorValerian), PortraitGetPlanetPanel());
    ConversationDataRegisterPortrait(gf_ConvoCharacter(ge_ActorID_ActorZeratul), PortraitGetPlanetPanel());
    PlanetPanelSetContactButtonState(PlayerGroupAll(), c_planetPanelContactButtonStatePause);

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

    PlanetSetTechnologyTooltipText(PlanetLastCreated(), StringToText(""));
    PlanetSetSelected(PlayerGroupAll(), PlanetLastCreated());
    ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink("Artanis"), PortraitGetPlanetPanel());
    PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_planetpanel_frame_backdrop_space.dds");
    ConversationDataPreloadLines("pPitch_Epilogue02");