# Turn Portrait Fullscreen On/Off
Grammar — Turn Portrait fullscreen Fullscreen
Flags —Native
|Action
Turns a portrait’s fullscreen on or off.
# Arguments
int
<portrait> — Portraitbool
<preset::OnOffOption> — On/Off
Returns — void
native void PortraitSetFullscreen(
int p,
bool isFullscreen,
);
# Related
Category: Portrait / Advanced
- Destroy All Portraits —
void
— PortraitDestroyAll - Destroy Portrait —
void
— PortraitDestroy - Play Portrait Animation —
void
— libNtve_gf_PortraitSetAnim - Set Portrait Camera —
void
— PortraitSetCamera - Set Portrait Border Texture —
void
— PortraitSetBorderTexture - Set Portrait Light —
void
— PortraitSetLight - Set Portrait Model —
void
— PortraitSetModel - Set Portrait Model And Play Animation —
void
— PortraitSetModelAnim - Set Portrait Position —
void
— PortraitSetPosition - Set Portrait Size —
void
— PortraitSetSize - Set Portrait Transition Model —
void
— PortraitSetTransitionModel - Set Portrait Mouse Target —
void
— PortraitSetMouseTarget - Set Portrait Channel —
void
— PortraitSetChannel - Set Portrait Render Type —
void
— PortraitSetRenderType - Mute/Unmute Portrait —
void
— PortraitSetMuted - Pause/Unpause Portrait —
void
— PortraitSetPaused - Set Portrait Tint Color —
void
— PortraitSetTintColor - Set Portrait Team Color —
void
— PortraitSetTeamColor - Set Portrait Actor —
void
— PortraitSetActor - Turn Portrait Border On/Off —
void
— PortraitSetBorderVisible - Turn Portrait Background On/Off —
void
— PortraitSetBackgroundVisible - Turn Portrait Fullscreen On/Off —
void
— PortraitSetFullscreen - Turn Portrait Offscreen On/Off —
void
— PortraitSetOffscreen - Turn Portrait Transition On/Off —
void
— PortraitUseTransition - Force Portrait Transition On/Off —
void
— PortraitForceTransition - Clear Portrait Animation —
void
— libNtve_gf_ClearPortraitAnimation - Wait For Portrait To Load —
void
— PortraitWaitForLoad
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10376
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitCreate(0, 0, c_anchorCenter, 237, 360, "SMZeratulMissionSelectBorder", "", "Stand", false, true);
gv_zPlanetPanel_PortraitBorder = PortraitLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10381
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
PortraitSetFullscreen(PortraitLastCreated(), true);
DialogCreate(1400, 400, c_anchorBottom, 0, 400, false);
gv_zPlanetPanel_DialogSubtitle = DialogLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13537
}
gv_briefing_TZeratulPortraitZeratul = PortraitLastCreated();
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:7133
gv_victoryCinematicPortrait = PortraitLastCreated();
PortraitWaitForLoad(PortraitLastCreated());
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitSetLight(PortraitLastCreated(), "VC_Zeratul2_Planet");
libNtve_gf_PortraitSetAnim(PortraitLastCreated(), "Stand A", "TriggerPortraitAnim", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:6721
PortraitSetLight(gv_victoryPortrait, "PlanetViewUlnar");
PortraitSetBorderVisible(gv_victoryPortrait, false);
PortraitSetFullscreen(gv_victoryPortrait, true);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
CameraApplyInfo(gv_p01_PLAYER, CameraInfoFromId(1152), 0.0, -1, 10, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:10376
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitCreate(0, 0, c_anchorCenter, 237, 360, "SMZeratulMissionSelectBorder", "", "Stand", false, true);
gv_zPlanetPanel_PortraitBorder = PortraitLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:10381
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
PortraitSetFullscreen(PortraitLastCreated(), true);
DialogCreate(1400, 400, c_anchorBottom, 0, 400, false);
gv_zPlanetPanel_DialogSubtitle = DialogLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:13537
}
gv_briefing_TZeratulPortraitZeratul = PortraitLastCreated();
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitSetBackgroundVisible(PortraitLastCreated(), false);
PortraitSetBorderVisible(PortraitLastCreated(), false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:7133
gv_victoryCinematicPortrait = PortraitLastCreated();
PortraitWaitForLoad(PortraitLastCreated());
PortraitSetFullscreen(PortraitLastCreated(), true);
PortraitSetLight(PortraitLastCreated(), "VC_Zeratul2_Planet");
libNtve_gf_PortraitSetAnim(PortraitLastCreated(), "Stand A", "TriggerPortraitAnim", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2map — MapScript.galaxy:6721
PortraitSetLight(gv_victoryPortrait, "PlanetViewUlnar");
PortraitSetBorderVisible(gv_victoryPortrait, false);
PortraitSetFullscreen(gv_victoryPortrait, true);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
CameraApplyInfo(gv_p01_PLAYER, CameraInfoFromId(1152), 0.0, -1, 10, true);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1564
libSwaC_gv_zS_PlanetPortraitEvoMissionLight = lp_light;
PortraitSetPosition(libSwaC_gv_zS_PlanetPortrait, c_anchorTopLeft, 0, 0);
PortraitSetFullscreen(libSwaC_gv_zS_PlanetPortrait, true);
PortraitSetOffscreen(libSwaC_gv_zS_PlanetPortrait, false);
PortraitSetVisible(libSwaC_gv_zS_PlanetPortrait, PlayerGroupAll(), true, true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2024
GameSetLighting(lp_light, 0.0);
PortraitSetPosition(libVCMI_gv_pM_PlanetPortrait, c_anchorTopLeft, 0, 0);
PortraitSetFullscreen(libVCMI_gv_pM_PlanetPortrait, true);
PortraitSetOffscreen(libVCMI_gv_pM_PlanetPortrait, false);
PortraitSetVisible(libVCMI_gv_pM_PlanetPortrait, PlayerGroupAll(), true, true);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4149
PortraitCreate(0, 0, c_anchorCenter, 0, 0, null, "Dflt", "", true, true);
libNtve_gv_cinematicPortraits[lv_index] = PortraitLastCreated();
PortraitSetFullscreen(libNtve_gv_cinematicPortraits[lv_index], true);
PortraitSetBorderVisible(libNtve_gv_cinematicPortraits[lv_index], false);
PortraitUseTransition(libNtve_gv_cinematicPortraits[lv_index], false);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3448
PortraitCreate(0, 0, c_anchorCenter, 0, 0, null, "Dflt", "", true, true);
libNtve_gv_cinematicPortraits[lv_index] = PortraitLastCreated();
PortraitSetFullscreen(libNtve_gv_cinematicPortraits[lv_index], true);
PortraitSetBorderVisible(libNtve_gv_cinematicPortraits[lv_index], false);
PortraitUseTransition(libNtve_gv_cinematicPortraits[lv_index], false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2704
GameSetLighting(lp_light, 0.0);
PortraitSetPosition(libNCMI_gv_NM_PlanetPortrait, c_anchorTopLeft, 0, 0);
PortraitSetFullscreen(libNCMI_gv_NM_PlanetPortrait, true);
PortraitSetOffscreen(libNCMI_gv_NM_PlanetPortrait, false);
PortraitSetVisible(libNCMI_gv_NM_PlanetPortrait, PlayerGroupAll(), true, true);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:1250
libA3DDD02B_gv_pP_PlanetPortraitEvoMissionLight = lp_light;
PortraitSetPosition(libA3DDD02B_gv_pP_PlanetPortrait, c_anchorTopLeft, 0, 0);
PortraitSetFullscreen(libA3DDD02B_gv_pP_PlanetPortrait, true);
PortraitSetOffscreen(libA3DDD02B_gv_pP_PlanetPortrait, false);
PortraitSetVisible(libA3DDD02B_gv_pP_PlanetPortrait, PlayerGroupAll(), true, true);