# Turn Portrait Offscreen On/Off
Grammar — Turn Portrait offscreen Fullscreen
Flags —Native
|Action
Sets whether or not the specified portrait is rendered offscreen.
# Arguments
int
[ portrait ] — Portraitbool
[ preset::OnOffOption ] — On/Off
Returns — void
native void PortraitSetOffscreen(int p, bool isOffscreen);
# Related
Category: Portrait / Advanced
- [F] —
void
— Destroy All Portraits — ( PortraitDestroyAll ) - [F] —
void
— Destroy Portrait — ( PortraitDestroy ) - [F] —
void
— Play Portrait Animation — ( libNtve_gf_PortraitSetAnim ) - [F] —
void
— Set Portrait Camera — ( PortraitSetCamera ) - [F] —
void
— Set Portrait Border Texture — ( PortraitSetBorderTexture ) - [F] —
void
— Set Portrait Light — ( PortraitSetLight ) - [F] —
void
— Set Portrait Model — ( PortraitSetModel ) - [F] —
void
— Set Portrait Model And Play Animation — ( PortraitSetModelAnim ) - [F] —
void
— Set Portrait Position — ( PortraitSetPosition ) - [F] —
void
— Set Portrait Size — ( PortraitSetSize ) - [F] —
void
— Set Portrait Transition Model — ( PortraitSetTransitionModel ) - [F] —
void
— Set Portrait Mouse Target — ( PortraitSetMouseTarget ) - [F] —
void
— Set Portrait Channel — ( PortraitSetChannel ) - [F] —
void
— Set Portrait Render Type — ( PortraitSetRenderType ) - [F] —
void
— Mute/Unmute Portrait — ( PortraitSetMuted ) - [F] —
void
— Pause/Unpause Portrait — ( PortraitSetPaused ) - [F] —
void
— Set Portrait Tint Color — ( PortraitSetTintColor ) - [F] —
void
— Set Portrait Team Color — ( PortraitSetTeamColor ) - [F] —
void
— Set Portrait Actor — ( PortraitSetActor ) - [F] —
void
— Turn Portrait Border On/Off — ( PortraitSetBorderVisible ) - [F] —
void
— Turn Portrait Background On/Off — ( PortraitSetBackgroundVisible ) - [F] —
void
— Turn Portrait Fullscreen On/Off — ( PortraitSetFullscreen ) - [F] —
void
— Turn Portrait Offscreen On/Off — ( PortraitSetOffscreen ) - [F] —
void
— Turn Portrait Transition On/Off — ( PortraitUseTransition ) - [F] —
void
— Force Portrait Transition On/Off — ( PortraitForceTransition ) - [F] —
void
— Clear Portrait Animation — ( libNtve_gf_ClearPortraitAnimation ) - [F] —
void
— Wait For Portrait To Load — ( PortraitWaitForLoad )
# Examples
# campaigns/liberty.sc2campaign
// L13373
PortraitSetOffscreen(PortraitLastCreated(), true)
// L26538
PortraitSetOffscreen(gv_bridgeCommunicatorPortraitValerian, true)
// L13373
PortraitSetOffscreen(PortraitLastCreated(), true)
// L26538
PortraitSetOffscreen(gv_bridgeCommunicatorPortraitValerian, true)
# campaigns/swarmstory.sc2campaign
// L1503
PortraitSetOffscreen(libSwaC_gv_zS_PlanetPortrait, true)
// L1565
PortraitSetOffscreen(libSwaC_gv_zS_PlanetPortrait, false)
// L1604
PortraitSetOffscreen(libSwaC_gv_zS_PlanetPortrait, true)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L2009
PortraitSetOffscreen(libVCMI_gv_pM_PlanetPortrait, true)
// L2025
PortraitSetOffscreen(libVCMI_gv_pM_PlanetPortrait, false)
// L2058
PortraitSetOffscreen(libVCMI_gv_pM_PlanetPortrait, true)
# mods/missionpacks/novacampaign.sc2mod
// L2689
PortraitSetOffscreen(libNCMI_gv_NM_PlanetPortrait, true)
// L2705
PortraitSetOffscreen(libNCMI_gv_NM_PlanetPortrait, false)
// L2736
PortraitSetOffscreen(libNCMI_gv_NM_PlanetPortrait, true)
# mods/voidprologue.sc2mod
// L1189
PortraitSetOffscreen(libA3DDD02B_gv_pP_PlanetPortrait, true)
// L1251
PortraitSetOffscreen(libA3DDD02B_gv_pP_PlanetPortrait, false)
// L1290
PortraitSetOffscreen(libA3DDD02B_gv_pP_PlanetPortrait, true)