# 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.sc2campaign

VoidCampaignUILib.galaxy

// L1653
DialogControlSetAnimationTime(libVCUI_gv_pU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value)
// L5002
DialogControlSetAnimationTime(libVCUI_gv_pU_GPEnergyBarScene, PlayerGroupAll(), "EnergyLevel", UnitGetPropertyFixed(libVCUI_gv_pU_GPUnit, c_unitPropEnergyPercent, c_unitPropCurrent))

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L814
DialogControlSetAnimationTime(libNCUI_gv_nU_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L4692
DialogControlSetAnimationTime(libCOUI_gv_cU_GPEnergyBarScene[lp_player], PlayerGroupAll(), "EnergyLevel", UnitGetPropertyFixed(libCOUI_gv_cU_GPUnit[lp_player], c_unitPropEnergyPercent, c_unitPropCurrent))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L7407
DialogControlSetAnimationTime(libA3DDD02B_gv_pP_ArchivesMissionImage, PlayerGroupAll(), ("Scroll" + lp_side), lp_value)