// sample animation script // // // commands: // Animate // variables: // FgColor // BgColor // Position // Size // Blur (hud panels only) // TextColor (hud panels only) // Ammo2Color (hud panels only) // Alpha (hud weapon selection only) // SelectionAlpha (hud weapon selection only) // TextScan (hud weapon selection only) // // interpolator: // Linear // Accel - starts moving slow, ends fast // Deaccel - starts moving fast, ends slow // Spline - simple ease in/out curve // Pulse - < freq > over the duration, the value is pulsed (cosine) freq times ending at the dest value (assuming freq is integral) // Flicker - < randomness factor 0.0 to 1.0 > over duration, each frame if random # is less than factor, use end value, otherwise use prev value // // RunEvent // starts another even running at the specified time // // StopEvent // stops another event that is current running at the specified time // // StopAnimation // stops all animations refering to the specified variable in the specified panel // // StopPanelAnimations // stops all active animations operating on the specified panel // // SetFont // // SetTexture // // SetString event LevelInit { } event MapOff { Animate overview Position "640 0" Linear 0.0 0.001 Animate overview Size "0 0" Linear 0.0 0.001 } event SnapToSmall { Animate overview Position "1 350" Linear 0.0 0.001 Animate overview Size "130 130" Linear 0.0 0.001 } event MapZoomLevel1 { StopAnimation overview zoom 0.0 Animate overview zoom "1.0" Linear 0.0 0.2 } event DOTA_ShowError { animate DOTAHudErrorMessage message_color "0 0 0 0" Linear 0.0 0.01 animate DOTAHudErrorMessage message_color "255 0 0 255" Linear 0.01 0.1 animate DOTAHudErrorMessage message_color "0 0 0 0" Linear 1.0 1.1 } event DOTA_HideError { animate DOTAHudErrorMessage message_color "0 0 0 0" Linear 0.0 0.01 } event DOTA_ShowShopItemPanel { //animate CHudDotaShopItemPanel Position "r250 r259" Linear 0.0 0.001 //animate CHudDotaShopItemPanel Size "250 0" Linear 0.0 0.001 //animate CHudDotaShopItemPanel Position "r250 r404" Spline 0.01 0.1 //animate CHudDotaShopItemPanel Size "250 250" Spline 0.01 0.1 // no anim, just appear animate CHudDotaShopItemPanel Position "r250 r287" Spline 0.0 0.01 animate CHudDotaShopItemPanel Size "278 134" Spline 0.0 0.01 } event DOTA_ShowShopItemPanel_Recipe { //animate CHudDotaShopItemPanel Position "r250 r259" Linear 0.0 0.001 //animate CHudDotaShopItemPanel Size "250 0" Linear 0.0 0.001 //animate CHudDotaShopItemPanel Position "r250 r404" Spline 0.01 0.1 //animate CHudDotaShopItemPanel Size "250 250" Spline 0.01 0.1 // no anim, just appear animate CHudDotaShopItemPanel Position "r250 r517" Spline 0.0 0.01 animate CHudDotaShopItemPanel Size "278 364" Spline 0.0 0.01 } event DOTA_HideShopItemPanel { // no anim, just hide //animate CHudDotaShopItemPanel Position "r250 r259" Spline 0.0 0.1 animate CHudDotaShopItemPanel Size "0 0" Spline 0.0 0.01 } event DOTA_ShowMiniKillCam { animate HudMiniKillCam ypos "768" Deaccel 0.0 0.25 } event DOTA_HideMiniKillCam { animate HudMiniKillCam ypos "700" Deaccel 0.0 0.25 } event DOTA_ShowTutorialTip { animate HudTutorialTip ypos "768" Deaccel 0.0 0.25 } event DOTA_HideTutorialTip { animate HudTutorialTip ypos "700" Deaccel 0.0 0.25 } event DOTA_QuickBuy_Flash { animate PurchasableFlash alpha "255" Linear 0.0 0.01 animate PurchasableFlash alpha "0" Linear 0.01 0.5 } event DOTA_QuickBuy_StopFlash { animate PurchasableFlash alpha "0" Linear 0.0 0.01 }