# Set Portrait Tint Color
Grammar — Set Portrait tint color to color
Flags —Native
|Action
Set the tint color of the specified portrait.
# Arguments
int
<portrait> — Portraitcolor
— Color
Returns — void
native void PortraitSetTintColor(int p, color inColor);
# 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/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:911
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:913
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:915
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:917
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage1Number"), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_victoryUI_StageName, StringExternal("UI/TutorialStage1Name"), PlayerGroupAll());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:949
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:951
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:953
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:955
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage2Number"), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_victoryUI_StageName, StringExternal("UI/TutorialStage2Name"), PlayerGroupAll());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:992
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:994
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(100.00, 100.00, 100.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:911
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:913
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:915
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:917
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage1Number"), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_victoryUI_StageName, StringExternal("UI/TutorialStage1Name"), PlayerGroupAll());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:949
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:951
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:953
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(100.00, 100.00, 100.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:955
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[4]), Color(40.00, 40.00, 40.00));
libNtve_gf_SetDialogItemText(gv_victoryUI_StageNumber, StringExternal("UI/TutorialStage2Number"), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_victoryUI_StageName, StringExternal("UI/TutorialStage2Name"), PlayerGroupAll());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:992
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll());
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:994
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[1]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), true);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[2]), Color(40.00, 40.00, 40.00));
PortraitSetPaused(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), false);
PortraitSetTintColor(PortraitGetTriggerControl(gv_victoryUI_Portraits[3]), Color(100.00, 100.00, 100.00));