# Set Dialog Item Animation Time

Grammar — Set dialogItem animation time to time for players
FlagsAction

This controls the current animation time for the dialog item. Supported for Dialog Items of type Image

# Arguments

  • int<control> — Dialog Item
  • fixed — Time
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemAnimationTime(
	int lp_dialogItem,
	fixed lp_time,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

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

    if ((UnitIsAlive(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index]) == false)) {
        if ((libSwaC_gv_zS_SwarmHeroUIUnit[lp_index] == libSwaC_gv_zS_Kerrigan) && (libSwaC_gv_zS_SwarmHeroUIKerriganRevivable == true) && (libSwaC_gf_CurrentMap() != "ZLab2") && (libSwaC_gf_CurrentMap() != "ZSpace2") && (libSwaC_gf_CurrentMap() != "ZZerus3")) {
            libNtve_gf_SetDialogItemAnimationTime(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], (libSwaC_gv_zS_ReviveCooldownTimeKerrigan - PlayerGetCooldown(1, libSwaC_gv_zSC_HeroReviveLinkKerrigan)), PlayerGroupAll());
            DialogControlSetVisible(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], PlayerGroupAll(), true);
        }

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

        }
        else if ((libSwaC_gv_zS_SwarmHeroUIUnit[lp_index] == libSwaC_gv_zS_Dehaka)) {
            libNtve_gf_SetDialogItemAnimationTime(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], (libSwaC_gv_zS_ReviveCooldownTimeDehaka - PlayerGetCooldown(1, libSwaC_gv_zSC_HeroReviveLinkDehaka)), PlayerGroupAll());
            DialogControlSetVisible(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], PlayerGroupAll(), true);
        }

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

        }
        else if ((libSwaC_gv_zS_SwarmHeroUIUnit[lp_index] == libSwaC_gv_zS_Stukov)) {
            libNtve_gf_SetDialogItemAnimationTime(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], (libSwaC_gv_zS_ReviveCooldownTimeStukov - PlayerGetCooldown(1, libSwaC_gv_zSC_HeroReviveLinkStukov)), PlayerGroupAll());
            DialogControlSetVisible(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], PlayerGroupAll(), true);
        }

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

    if ((UnitIsAlive(libVCUI_gv_pU_VoidHeroUIUnit[lp_index]) == false) && (libVCMI_gf_GameIsOver() == false)) {
        if ((libVCUI_gv_pU_VoidHeroUIRevivable[lp_index] == true) && (PlayerGetCooldown(1, libVoiC_gf_PC_ChampResAbility(libVCUI_gf_PU_PresetToHeroGameLink(libVCUI_gv_pU_VoidHeroUIType[lp_index]))) > 0.0)) {
            libNtve_gf_SetDialogItemAnimationTime(libVCUI_gv_pU_VoidHeroUIDialogCooldownImage[lp_index], (60.0 * (1 - PlayerGetCooldown(1, libVoiC_gf_PC_ChampResAbility(libVCUI_gf_PU_PresetToHeroGameLink(libVCUI_gv_pU_VoidHeroUIType[lp_index])))/libVCUI_gv_pU_ChampionReviveTimer) ), PlayerGroupAll());
            DialogControlSetVisible(libVCUI_gv_pU_VoidHeroUIDialogCooldownImage[lp_index], PlayerGroupAll(), true);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:17229

            lv_playerStillUpdating = true;
            lv_animTime = (libGame_gv_heroDeathMultikillTimeoutDuration - lv_remainingTimerDuration);
            libNtve_gf_SetDialogItemAnimationTime(libUIUI_gv_notificationDisplay.lv_multikillTimerCountdownImage, lv_animTime, libCore_gv_playerGroupFromPlayer[lv_itPlayer]);
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3530

    if ((UnitIsAlive(libNCUI_gv_NU_HeroUnit[lp_index]) == false) && (libNCMI_gf_GameIsOver() == false)) {
        if ((libNCUI_gv_NU_HeroRevivable[lp_index] == true) && (PlayerGetCooldown(1, libNovC_gf_NC_ChampResAbility(libNCUI_gf_NU_PresetToHeroGameLink(libNCUI_gv_NU_HeroType[lp_index]))) > 0.0)) {
            libNtve_gf_SetDialogItemAnimationTime(libNCUI_gv_NU_HeroDialogCooldownImage[lp_index], (libNCUI_gv_nU_ChampionReviveTimer - PlayerGetCooldown(1, libNovC_gf_NC_ChampResAbility(libNCUI_gf_NU_PresetToHeroGameLink(libNCUI_gv_NU_HeroType[lp_index])))), PlayerGroupAll());
            DialogControlSetVisible(libNCUI_gv_NU_HeroDialogCooldownImage[lp_index], PlayerGroupAll(), true);
        }

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

    if ((UnitIsAlive(libCOUI_gv_cU_HeroUnit[lp_index][lp_player]) == false) && (libCOMI_gf_GameIsOver() == false)) {
        if ((libCOUI_gv_cU_VoidHeroUIRevivable[lp_index][lp_player] == true) && (PlayerGetCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player))) > 0.0)) {
            libNtve_gf_SetDialogItemAnimationTime(libCOUI_gv_cU_HeroDialogCooldownImage[lp_index], (60.0 * (1 - PlayerGetCooldown(lp_player, libCOOC_gf_CC_CommanderHeroReviveLink(libCOOC_gf_ActiveCommanderForPlayer(lp_player)))/libCOUI_gv_cU_HeroReviveTimer[lp_index][lp_player]) ), lv_updateGroup);
            DialogControlSetVisible(libCOUI_gv_cU_HeroDialogCooldownImage[lp_index], lv_updateGroup, true);
        }