# Set Dialog Item Tint Color

Grammar — Set dialogItem Tint Color to color for players
FlagsAction

Sets the tint color for a dialog item. Currently supported for Portraits.

# Arguments

  • int<control> — Dialog Item
  • color — Color
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemTintColor(
	int lp_dialogItem,
	color lp_color,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6420

            DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox);
            libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), lv_editBoxTextStyle, PlayerGroupAll());
            libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll());
            libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_editBoxDialog = DialogControlLastCreated();
            DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), ((lv_buttonWidth * 1) / 3), lv_buttonHeight);

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:755

        if ((lib6CB3363F_gv_fT_EquipmentToggleable[lib6CB3363F_gv_fT_PlayerEquipmentType[lp_player][lp_equipSlot]] == true)) {
            if ((lib6CB3363F_gv_fT_PlayerEquipmentToggleState[lp_player][lp_equipSlot] == true)) {
                libNtve_gf_SetDialogItemTintColor(lib6CB3363F_gv_fT_DialogEquipImage[lp_equipSlot], Color(100,100,100), PlayerGroupSingle(lp_player));
                TextExpressionSetToken("Param/Expression/lib_6CB3363F_6B840699", "Hotkey", StringToText(lib6CB3363F_gv_fT_PlayerEquipmentSlotHotkeys[lp_equipSlot]));
                TextExpressionSetToken("Param/Expression/lib_6CB3363F_6B840699", "EquipName", StringToText(lib6CB3363F_gv_fT_EquipmentName[lib6CB3363F_gv_fT_PlayerEquipmentType[lp_player][lp_equipSlot]]));

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:761

            }
            else {
                libNtve_gf_SetDialogItemTintColor(lib6CB3363F_gv_fT_DialogEquipImage[lp_equipSlot], Color(149*100/255,150*100/255,151*100/255), PlayerGroupSingle(lp_player));
                TextExpressionSetToken("Param/Expression/lib_6CB3363F_8A0D799B", "Hotkey", StringToText(lib6CB3363F_gv_fT_PlayerEquipmentSlotHotkeys[lp_equipSlot]));
                TextExpressionSetToken("Param/Expression/lib_6CB3363F_8A0D799B", "EquipName", StringToText(lib6CB3363F_gv_fT_EquipmentName[lib6CB3363F_gv_fT_PlayerEquipmentType[lp_player][lp_equipSlot]]));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5358

            DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox);
            libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), lv_editBoxTextStyle, PlayerGroupAll());
            libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll());
            libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_editBoxDialog = DialogControlLastCreated();
            DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), ((lv_buttonWidth * 1) / 3), lv_buttonHeight);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:968

            libNtve_gf_SetDialogItemTooltip(libCOUI_gv_cU_CommanderButton[lv_commIndex], lv_availableTooltip, lv_playerSelf);
            libNtve_gf_SetDialogItemTooltip(libCOUI_gv_cU_CommanderButton[lv_commIndex], lv_unavailableTooltip, lv_playerAlly);
            libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerSelf);
            libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerAlly);
            libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, lv_playerSelf);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:969

            libNtve_gf_SetDialogItemTooltip(libCOUI_gv_cU_CommanderButton[lv_commIndex], lv_unavailableTooltip, lv_playerAlly);
            libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerSelf);
            libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerAlly);
            libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, lv_playerSelf);
            libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], false, lv_playerSelf);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:980

                libNtve_gf_SetDialogItemTooltip(libCOUI_gv_cU_CommanderButton[lv_commIndex], lv_unavailableTooltip, lv_playerSelf);
                libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerAlly);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerSelf);
                libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:981

                libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerAlly);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerSelf);
                libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup);
                DialogControlSetVisible(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libCOOC_gv_cC_HumanPlayerGroup, true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:989

                DialogControlSetVisible(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libCOOC_gv_cC_HumanPlayerGroup, false);
                libNtve_gf_SetDialogItemTooltip(libCOUI_gv_cU_CommanderButton[lv_commIndex], lv_availableTooltip, libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], true, libCOOC_gv_cC_HumanPlayerGroup);