# Set Planet Panel Background Image
Grammar — Set the background of the planet panel to image for playerGroup
Flags —Native
|Action
Sets the background image for the planet panel for the specified players.
# Arguments
playergroup
— PlayerGroupstring
<filepath> — Image
Returns — void
native void PlanetPanelSetBackgroundImage(
playergroup players,
string inFilePath,
);
# Related
Category: Story / Planet Panel / Planet Panel
- Planet Panel Planet Selected —
void
— TriggerAddEventPlanetMissionSelected - Planet Panel Launched —
void
— TriggerAddEventPlanetMissionLaunched - Planet Panel Canceled —
void
— TriggerAddEventPlanetPanelCanceled - Planet Panel Pressed Replay Button —
void
— TriggerAddEventPlanetPanelReplayPressed - Planet Panel Birth Complete —
void
— TriggerAddEventPlanetPanelBirthComplete - Planet Panel Death Complete —
void
— TriggerAddEventPlanetPanelDeathComplete - Clicked Planet —
int
<planet> — EventPlanetPanelMissionSelected - Selected Planet —
int
<planet> — PlanetGetSelected - Selected Mission Difficulty —
int
<difficulty> — EventPlanetPanelDifficultySelected - Planet Panel Contact Button State —
int
<preset::PlanetState3> — PlanetPanelGetContactButtonState - Set Planet Panel Contact Button State —
void
— PlanetPanelSetContactButtonState - Set Planet Panel Background Image —
void
— PlanetPanelSetBackgroundImage - Enable/Disable Planet Panel Close Button —
void
— PlanetPanelSetBackButtonEnabled - Set Planet Panel Close Button Text —
void
— PlanetPanelSetBackButtonText - Set Planet Panel Close Button Shortcut —
void
— PlanetPanelSetBackButtonShortcut - Set Planet Panel Close Button Tooltip —
void
— PlanetPanelSetBackButtonTooltip - Enable/Disable Planet Panel Dismiss Button —
void
— PlanetPanelSetDismissButtonEnabled - Set Selected Planet —
void
— PlanetSetSelected - Clear Selected Planet —
void
— PlanetClearSelected
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:22455
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_planetpanel_frame_backdrop_space.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetNone, gt_BridgeStarmapLeave);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:23470
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_marsarabriefcase_background.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetChar, gt_CharConsoleLeave);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:24531
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_marsarabriefcase_background.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetMarSara, gt_MarSaraBriefcaseLeave);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:22455
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_planetpanel_frame_backdrop_space.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetNone, gt_BridgeStarmapLeave);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:23470
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_marsarabriefcase_background.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetChar, gt_CharConsoleLeave);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:24531
CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
Wait(0.1, c_timeGame);
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_marsarabriefcase_background.dds");
gf_PlanetPanelDisplay(libCamp_ge_PlanetID_PlanetMarSara, gt_MarSaraBriefcaseLeave);
return true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1721
PlanetSetSelected(PlayerGroupAll(), PlanetLastCreated());
ConversationDataRegisterPortrait(libVoiC_gf_PC_ClickableConversationLink("Artanis"), PortraitGetPlanetPanel());
PlanetPanelSetBackgroundImage(PlayerGroupAll(), "Assets\\Textures\\ui_planetpanel_frame_backdrop_space.dds");
ConversationDataPreloadLines("pPitch_Epilogue02");
SoundLengthQueryWait();