You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
5.5 KiB
117 lines
5.5 KiB
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
|
|
..\FrameXML\UI.xsd">
|
|
<Frame name="OmniCDButtonSpellActivationAlert" virtual="true">
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parentSpark" parentKey="spark" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00781250" right="0.61718750" top="0.00390625" bottom="0.26953125"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<Texture name="$parentInnerGlow" parentKey="innerGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
|
|
</Texture>
|
|
<Texture name="$parentInnerGlowOver" parentKey="innerGlowOver" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentInnerGlow" relativePoint="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentInnerGlow" relativePoint="BOTTOMRIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
|
|
</Texture>
|
|
<Texture name="$parentOuterGlow" parentKey="outerGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0" setAllPoints="true">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
|
|
</Texture>
|
|
<Texture name="$parentOuterGlowOver" parentKey="outerGlowOver" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parentOuterGlow" relativePoint="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentOuterGlow" relativePoint="BOTTOMRIGHT"/>
|
|
</Anchors>
|
|
<TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="OVERLAY">
|
|
<Texture name="$parentAnts" parentKey="ants" file="Interface\SpellActivationOverlay\IconAlertAnts" alpha="0" setAllPoints="true">
|
|
<Anchors>
|
|
<Anchor point="CENTER"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
<Animations>
|
|
<AnimationGroup parentKey="animIn">
|
|
<Scale target="$parentSpark" duration="0.2" scaleX="1.5" scaleY="1.5" order="1"/>
|
|
<Alpha target="$parentSpark" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
|
|
<Scale target="$parentInnerGlow" duration="0.3" scaleX="2" scaleY="2" order="1"/>
|
|
<Scale target="$parentInnerGlowOver" duration="0.3" scaleX="2" scaleY="2" order="1"/>
|
|
<Alpha target="$parentInnerGlowOver" duration="0.3" fromAlpha="1" toAlpha="0" order="1"/>
|
|
<Scale target="$parentOuterGlow" duration="0.3" scaleX="0.5" scaleY="0.5" order="1"/>
|
|
<Scale target="$parentOuterGlowOver" duration="0.3" scaleX="0.5" scaleY="0.5" order="1"/>
|
|
<Alpha target="$parentOuterGlowOver" duration="0.3" fromAlpha="1" toAlpha="0" order="1"/>
|
|
<Scale target="$parentSpark" startDelay="0.2" duration="0.2" scaleX="0.666666" scaleY="0.666666" order="1"/>
|
|
<Alpha target="$parentSpark" startDelay="0.2" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
|
|
<Alpha target="$parentInnerGlow" startDelay="0.3" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
|
|
<Alpha target="$parentAnts" startDelay="0.3" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
|
|
<Scripts>
|
|
<OnPlay>
|
|
local frame = self:GetParent();
|
|
local frameWidth, frameHeight = frame:GetSize();
|
|
frame.spark:SetSize(frameWidth, frameHeight);
|
|
frame.spark:SetAlpha(0.3)
|
|
frame.innerGlow:SetSize(frameWidth / 2, frameHeight / 2);
|
|
frame.innerGlow:SetAlpha(1.0);
|
|
frame.innerGlowOver:SetAlpha(1.0);
|
|
frame.outerGlow:SetSize(frameWidth * 2, frameHeight * 2);
|
|
frame.outerGlow:SetAlpha(1.0);
|
|
frame.outerGlowOver:SetAlpha(1.0);
|
|
frame.ants:SetSize(frameWidth * 0.85, frameHeight * 0.85)
|
|
frame.ants:SetAlpha(0);
|
|
frame:Show();
|
|
</OnPlay>
|
|
<OnFinished>
|
|
local frame = self:GetParent();
|
|
local frameWidth, frameHeight = frame:GetSize();
|
|
frame.spark:SetAlpha(0);
|
|
frame.innerGlow:SetAlpha(0);
|
|
frame.innerGlow:SetSize(frameWidth, frameHeight);
|
|
frame.innerGlowOver:SetAlpha(0.0);
|
|
frame.outerGlow:SetSize(frameWidth, frameHeight);
|
|
frame.outerGlowOver:SetAlpha(0.0);
|
|
frame.outerGlowOver:SetSize(frameWidth, frameHeight);
|
|
frame.ants:SetAlpha(1.0);
|
|
</OnFinished>
|
|
</Scripts>
|
|
</AnimationGroup>
|
|
<AnimationGroup parentKey="animOut">
|
|
<Alpha target="$parentOuterGlowOver" duration="0.2" fromAlpha="0" toAlpha="1" order="1"/>
|
|
<Alpha target="$parentAnts" duration="0.2" fromAlpha="1" toAlpha="0" order="1"/>
|
|
<Alpha target="$parentOuterGlowOver" duration="0.2" fromAlpha="1" toAlpha="0" order="2"/>
|
|
<Alpha target="$parentOuterGlow" duration="0.2" fromAlpha="1" toAlpha="0" order="2"/>
|
|
<!--Scripts>
|
|
<OnFinished>
|
|
OmniCDOverlayGlow_AnimOutFinished(self);
|
|
</OnFinished>
|
|
</Scripts-->
|
|
</AnimationGroup>
|
|
</Animations>
|
|
<Scripts>
|
|
<OnUpdate>
|
|
AnimateTexCoords(self.ants, 256, 256, 48, 48, 22, elapsed, 0.01);
|
|
</OnUpdate>
|
|
<!--OnHide>
|
|
if ( self.animOut:IsPlaying() ) then
|
|
self.animOut:Stop();
|
|
OmniCDOverlayGlow_AnimOutFinished(self.animOut);
|
|
end
|
|
</OnHide-->
|
|
</Scripts>
|
|
</Frame>
|
|
</Ui>
|
|
|