# Set Dialog Item Light

Grammar — Set dialogItem Light to light for players
FlagsAction

Sets a Dialog Item’s Light

# Arguments

  • int<control> — Dialog Item
  • string<gamelink::Light> — Light
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemLight(
	int lp_dialogItem,
	string lp_light,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

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

    libNtve_gf_SetDialogItemText(libVCUI_gv_pU_MissionTitleLabel, libVoiC_gf_PC_CampaignMapName(libVCUI_gv_pU_MissionNextMap), PlayerGroupAll());
    libNtve_gf_SetDialogItemText(libVCUI_gv_pU_MissionObjectiveLabel, StringExternal(libVCUI_gf_PU_MissionProperty("PrimaryObjectiveText")), PlayerGroupAll());
    libNtve_gf_SetDialogItemLight(libVCUI_gv_pU_MissionPortraitFrame, "MissionLaunchPortrait", PlayerGroupAll());
    if ((libVCUI_gv_pU_MissionNextMap != "PAiur01") && (libVCUI_gv_pU_MissionNextMap != "PAiur02")) {
        lv_rewardCategory = libVoiC_gf_MissionArmyCategoryUnlocked(libVCUI_gv_pU_MissionNextMap);

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

            libNtve_gf_SetDialogItemTooltip(libVCUI_gv_pU_MissionRewardUnitPanel2, TextExpressionAssemble("Param/Expression/lib_VCUI_2A34C43A"), PlayerGroupAll());
            libNtve_gf_SetDialogItemText(libVCUI_gv_pU_MissionRewardUnitName2, StringExternal("Param/Value/lib_VCUI_8202FC07"), PlayerGroupAll());
            libNtve_gf_SetDialogItemLight(libVCUI_gv_pU_MissionRewardUnitModel2, "NoLight", PlayerGroupAll());
        }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6841

    libNtve_gf_SetDialogItemText(libA3DDD02B_gv_pP_MLObjective, StringExternal(libA3DDD02B_gf_PP_MissionProperty("PrimaryObjectiveText")), PlayerGroupAll());
    libNtve_gf_SetDialogItemModel(libA3DDD02B_gv_pP_MLContactPortrait, (CatalogFieldValueGet(c_gameCatalogMap, libA3DDD02B_gv_pP_NextMission, "ContactModelLink", c_playerAny)), PlayerGroupAll());
    libNtve_gf_SetDialogItemLight(libA3DDD02B_gv_pP_MLContactPortrait, "SelendisPortrait", PlayerGroupAll());
    lv_indexAchievement = 1;
    for ( ; ( (autoB100C658_ai >= 0 && lv_indexAchievement <= autoB100C658_ae) || (autoB100C658_ai < 0 && lv_indexAchievement >= autoB100C658_ae) ) ; lv_indexAchievement += autoB100C658_ai ) {