# 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.sc2campaign

VoidCampaignMissionLib.galaxy

// L6420
libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll())

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5358
libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L968
libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerSelf)
// L969
libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerAlly)
// L980
libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerAlly)
// L981
libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerSelf)
// L989
libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), libCOOC_gv_cC_HumanPlayerGroup)