# Set Dialog Item Animation Duration

Grammar — Set dialogItem animation duration to time for players
FlagsAction

This controls the time it takes for the dialog item to animate. Supported for Dialog Items of type Image

# Arguments

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

Returns — void

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

Category: Dialog / Dialog Item Tools

# Examples

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

        auto340C25E2_val = lp_heroUnit;
        if (auto340C25E2_val == libSwaC_gv_zS_Kerrigan) {
            libNtve_gf_SetDialogItemAnimationDuration(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], libSwaC_gv_zS_ReviveCooldownTimeKerrigan, PlayerGroupAll());
        }
        else if (auto340C25E2_val == libSwaC_gv_zS_Stukov) {

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

        }
        else if (auto340C25E2_val == libSwaC_gv_zS_Stukov) {
            libNtve_gf_SetDialogItemAnimationDuration(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], libSwaC_gv_zS_ReviveCooldownTimeStukov, PlayerGroupAll());
        }
        else if (auto340C25E2_val == libSwaC_gv_zS_Dehaka) {

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

        }
        else if (auto340C25E2_val == libSwaC_gv_zS_Dehaka) {
            libNtve_gf_SetDialogItemAnimationDuration(libSwaC_gv_zS_SwarmHeroUIDialogCooldownImage[lp_index], libSwaC_gv_zS_ReviveCooldownTimeDehaka, PlayerGroupAll());
        }
        else {

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

        TriggerEnable(libVCUI_gt_PU_VoidHeroUIMouseHoverText, true);
        TriggerEnable(libVCUI_gt_ZS_SwarmHeroUIUnitVitalChange, true);
        libNtve_gf_SetDialogItemAnimationDuration(libVCUI_gv_pU_VoidHeroUIDialogCooldownImage[lp_index], 60.0, PlayerGroupAll());
        auto29980022_val = lp_index;
        if (auto29980022_val == 1) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:14102

    libUIUI_gv_notificationDisplay.lv_mainPanel = DialogControlLastCreated();
    DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeImage, "KillCounterTemplate/TimerCountdown");
    libNtve_gf_SetDialogItemAnimationDuration(DialogControlLastCreated(), libGame_gv_heroDeathMultikillTimeoutDuration, PlayerGroupAll());
    libUIUI_gv_notificationDisplay.lv_multikillTimerCountdownImage = DialogControlLastCreated();
    DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "KillCounterTemplate/KillCountLabel");

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

        TriggerEnable(libNCUI_gt_NU_HeroMouseHoverText, true);
        TriggerEnable(libNCUI_gt_NU_HeroUnitVitalChange, true);
        libNtve_gf_SetDialogItemAnimationDuration(libNCUI_gv_NU_HeroDialogCooldownImage[lp_index], 60.0, PlayerGroupAll());
        auto29980022_val = lp_index;
        if (auto29980022_val == 1) {

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

        auto047A189E_val = lp_heroUnit;
        {
            libNtve_gf_SetDialogItemAnimationDuration(libCOUI_gv_cU_HeroDialogCooldownImage[lp_index], 60.0, lv_heroGroup);
        }
        autoA3DB6D8D_val = lp_index;