# Set Portrait Tint Color

Grammar — Set Portrait tint color to color
FlagsNative | Action

Set the tint color of the specified portrait.

# Arguments

  • int<portrait> — Portrait
  • color — Color

Returns — void

native void PortraitSetTintColor(int p, color inColor);

Category: Portrait / Advanced

# Examples

campaigns/void.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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));