# Set Dialog Item Team Color

Grammar — Set dialogItem Team Color to color for players
FlagsAction

Sets the team color for a dialog item.

# Arguments

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

Returns — void

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

Category: Dialog / Dialog Item Tools

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9494

        TextExpressionSetToken("Param/Expression/lib_SwaC_7FD2F0AE", "B", libSwaC_gf_ZS_ArmyUnitTooltip2(lv_indexArmyUnit));
        libNtve_gf_SetDialogItemTooltip(libSwaC_gv_zS_ArmyCustomMissionUnitFrames[lv_index], TextExpressionAssemble("Param/Expression/lib_SwaC_7FD2F0AE"), PlayerGroupAll());
        libNtve_gf_SetDialogItemTeamColor(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor()), PlayerGroupAll());
        lv_index += 1;
        autoC0F182A6_ai = autoC0F182A6_ai + 1;

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1470

                libNtve_gf_SetDialogItemUnitLink(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], (CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap), "Unit", c_playerAny)), PlayerGroupAll());
                libNtve_gf_SetDialogItemCamera(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], libSwaC_gf_StoryArmyCategoryPlanetCamera(libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap)), PlayerGroupAll());
                libNtve_gf_SetDialogItemTeamColor(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor()), PlayerGroupAll());
                DialogControlSetVisible(lib281DEC45_gv_zSS_UITravelRewardUnitPanel[lv_unitFrameIndex], PlayerGroupAll(), true);
                libNtve_gf_SetDialogItemText(lib281DEC45_gv_zSS_UITravelRewardUnitLabel[lv_unitFrameIndex], libSwaC_gf_StoryArmyCategoryName(libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap)), PlayerGroupAll());

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1644

        libNtve_gf_SetDialogItemUnitLink(lib281DEC45_gv_zSS_MissionUnit, (CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission), "Unit", c_playerAny)), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(lib281DEC45_gv_zSS_MissionUnit, libSwaC_gf_StoryArmyCategoryPlanetCamera(libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission)), PlayerGroupAll());
        libNtve_gf_SetDialogItemTeamColor(lib281DEC45_gv_zSS_MissionUnit, libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor()), PlayerGroupAll());
        TextExpressionSetToken("Param/Expression/lib_281DEC45_0E2BCC46", "A", libSwaC_gf_StoryArmyCategoryName(libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission)));
        TextExpressionSetToken("Param/Expression/lib_281DEC45_0E2BCC46", "B", libSwaC_gf_StoryArmyCategoryName2(libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission)));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1989

        libNtve_gf_SetDialogItemUnitLink(libVCUI_gv_pU_MissionRewardUnitModel, libVoiC_gf_PC_ArmyCategoryUnitType(lv_rewardCategory), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(libVCUI_gv_pU_MissionRewardUnitModel, libVoiC_gf_PC_ArmyCategoryPlanetCamera(lv_rewardCategory), PlayerGroupAll());
        libNtve_gf_SetDialogItemTeamColor(libVCUI_gv_pU_MissionRewardUnitModel, libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor()), PlayerGroupAll());
        TextExpressionSetToken("Param/Expression/lib_VCUI_225AD1C1", "A", libVoiC_gf_PC_ArmyCategoryName(lv_rewardCategory));
        TextExpressionSetToken("Param/Expression/lib_VCUI_225AD1C1", "B", libVoiC_gf_PC_ArmyCategoryUnitDescription(lv_rewardCategory));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2000

            libNtve_gf_SetDialogItemUnitLink(libVCUI_gv_pU_MissionRewardUnitModel2, "ShieldBattery", PlayerGroupAll());
            libNtve_gf_SetDialogItemCamera(libVCUI_gv_pU_MissionRewardUnitModel2, libVoiC_gf_PC_ArmyCategoryPlanetCamera("ShieldBattery"), PlayerGroupAll());
            libNtve_gf_SetDialogItemTeamColor(libVCUI_gv_pU_MissionRewardUnitModel2, libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor()), PlayerGroupAll());
            TextExpressionSetToken("Param/Expression/lib_VCUI_2A34C43A", "A", libVoiC_gf_PC_ArmyCategoryName("ShieldBattery"));
            TextExpressionSetToken("Param/Expression/lib_VCUI_2A34C43A", "B", libVoiC_gf_PC_ArmyCategoryUnitDescription("ShieldBattery"));

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:3088

        lv_player = PlayerGroupNextPlayer(auto187B1612_g, lv_player);
        if (lv_player < 0) { break; }
        libNtve_gf_SetDialogItemTeamColor(libWCdr_gv_gameUI.lv_hero_Portrait, libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_player, false)), PlayerGroupSingle(lv_player));
        libNtve_gf_SetDialogItemCamera(libWCdr_gv_gameUI.lv_hero_Portrait, "Camera01", PlayerGroupAll());
    }