# Dialog Item Set Animation Time

Grammar — Set the time of animation animationName to time on dialog item dialogItem for players
FlagsNative | Action | Restricted

Sets the time of an animation on a dialog item. All end rules (Loop, Ping Pong, etc.) are obeyed. Animations are defined in the layout of a dialog item.

# Arguments

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

Returns — void

native void DialogControlSetAnimationTime(
	int control,
	playergroup players,
	string animationName,
	fixed speed,
);

Category: Dialog / Dialog Item Tools

# Examples

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

    // Implementation
    DialogControlSendAnimationEvent(libVCUI_gv_pU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Play"));
    DialogControlSetAnimationTime(libVCUI_gv_pU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value);
    DialogControlSendAnimationEvent(libVCUI_gv_pU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Pause"));
}

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

    libNtve_gf_SetDialogItemText(libVCUI_gv_pU_GPEnergyLabel, IntToText(FixedToInt(lv_energyFloored)), PlayerGroupAll());
    DialogControlSendAnimationEvent(libVCUI_gv_pU_GPEnergyBarScene, PlayerGroupAll(), "SetEnergyPlay");
    DialogControlSetAnimationTime(libVCUI_gv_pU_GPEnergyBarScene, PlayerGroupAll(), "EnergyLevel", UnitGetPropertyFixed(libVCUI_gv_pU_GPUnit, c_unitPropEnergyPercent, c_unitPropCurrent));
    DialogControlSendAnimationEvent(libVCUI_gv_pU_GPEnergyBarScene, PlayerGroupAll(), "SetEnergyPause");
    if ((UnitGetPropertyFixed(libVCUI_gv_pU_GPUnit, c_unitPropEnergyPercent, c_unitPropCurrent) == 100.0)) {

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

    // Implementation
    DialogControlSendAnimationEvent(libNCUI_gv_nU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Play"));
    DialogControlSetAnimationTime(libNCUI_gv_nU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value);
    DialogControlSendAnimationEvent(libNCUI_gv_nU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Pause"));
}

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

    libNtve_gf_SetDialogItemText(libCOUI_gv_cU_GPEnergyLabel[lp_player], TextExpressionAssemble("Param/Expression/lib_COUI_F1AB8C8A"), lv_soAPlayers);
    DialogControlSendAnimationEvent(libCOUI_gv_cU_GPEnergyBarScene[lp_player], PlayerGroupAll(), "SetEnergyPlay");
    DialogControlSetAnimationTime(libCOUI_gv_cU_GPEnergyBarScene[lp_player], PlayerGroupAll(), "EnergyLevel", UnitGetPropertyFixed(libCOUI_gv_cU_GPUnit[lp_player], c_unitPropEnergyPercent, c_unitPropCurrent));
    DialogControlSendAnimationEvent(libCOUI_gv_cU_GPEnergyBarScene[lp_player], PlayerGroupAll(), "SetEnergyPause");
    libCOUI_gf_CU_GPCheckForEnergyHighlight(lp_player);

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

    // Implementation
    DialogControlSendAnimationEvent(libA3DDD02B_gv_pP_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Play"));
    DialogControlSetAnimationTime(libA3DDD02B_gv_pP_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value);
    DialogControlSendAnimationEvent(libA3DDD02B_gv_pP_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side + "Pause"));
}