# Set Dialog Item Desaturated

Grammar — Set dialogItem Desaturated flag to desaturated for players
FlagsAction

Set a Trigger Dialog Item to render with all of its native coloring stripped off and instead being tinted to the Desaturation Color. By default this color is white.

# Arguments

  • int [ control ] — Dialog Item
  • bool — Desaturated
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemDesaturated(
	int lp_dialogItem,
	bool lp_desaturated,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L1351
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, true, PlayerGroupAll())
// L1362
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, true, PlayerGroupAll())
// L1380
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_rightButton, true, PlayerGroupAll())
// L1540
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, true, PlayerGroupAll())
// L1544
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, true, PlayerGroupAll())
// L1548
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_upButton, true, PlayerGroupAll())
// L1552
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_rightButton, true, PlayerGroupAll())
// L1556
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_townBellButton, true, PlayerGroupAll())
// L1594
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, false, PlayerGroupAll())
// L1601
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, false, PlayerGroupAll())
// L1351
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, true, PlayerGroupAll())
// L1362
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, true, PlayerGroupAll())
// L1380
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_rightButton, true, PlayerGroupAll())
// L1540
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, true, PlayerGroupAll())
// L1544
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, true, PlayerGroupAll())
// L1548
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_upButton, true, PlayerGroupAll())
// L1552
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_rightButton, true, PlayerGroupAll())
// L1556
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_townBellButton, true, PlayerGroupAll())
// L1594
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_leftButton, false, PlayerGroupAll())
// L1601
libNtve_gf_SetDialogItemDesaturated(gv_movingPlatform.lv_downButton, false, PlayerGroupAll())

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod

LibPBUI.galaxy

// L543
libNtve_gf_SetDialogItemDesaturated(libPBUI_gv_curateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], false, lp_forPlayers)
// L547
libNtve_gf_SetDialogItemDesaturated(libPBUI_gv_curateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], true, lp_forPlayers)
// L551
libNtve_gf_SetDialogItemDesaturated(libPBUI_gv_curateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], false, lp_forPlayers)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEU.galaxy

// L531
libNtve_gf_SetDialogItemDesaturated(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], false, lp_forPlayers)
// L535
libNtve_gf_SetDialogItemDesaturated(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], true, lp_forPlayers)
// L539
libNtve_gf_SetDialogItemDesaturated(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_heroButtonImages[lp_row][lp_column], false, lp_forPlayers)

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L1160
libNtve_gf_SetDialogItemDesaturated(libIGHS_gv_shuffleUI.lv_playerHeroButtonImage[lv_displayColumn][lv_pick], true, PlayerGroupSingle(lv_viewer))
// L1161
libNtve_gf_SetDialogItemDesaturated(libIGHS_gv_shuffleUI.lv_playerHeroRoleBackground[lv_displayColumn][lv_pick], true, PlayerGroupSingle(lv_viewer))
// L1166
libNtve_gf_SetDialogItemDesaturated(libIGHS_gv_shuffleUI.lv_playerHeroButtonImage[lv_displayColumn][lv_pick], false, PlayerGroupSingle(lv_viewer))
// L1167
libNtve_gf_SetDialogItemDesaturated(libIGHS_gv_shuffleUI.lv_playerHeroRoleBackground[lv_displayColumn][lv_pick], false, PlayerGroupSingle(lv_viewer))
// L1168
libNtve_gf_SetDialogItemDesaturated(libIGHS_gv_shuffleUI.lv_playerHeroRoleImage[lv_displayColumn][lv_pick], false, PlayerGroupSingle(lv_viewer))