304 lines
11 KiB
XML
304 lines
11 KiB
XML
<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">
|
|
<Script file="TutorialFrame.lua"/>
|
|
<Frame name="TutorialFrame" toplevel="true" parent="UIParent" movable="true" clampedToScreen="true" enableMouse="true" frameStrata="HIGH" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="BOTTOM" x="0" y="100"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parentBackground">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="13" y="-35"/>
|
|
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-3" y="5"/>
|
|
</Anchors>
|
|
<Color r="0" g="0" b="0" a="1"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="BORDER">
|
|
<Texture name="$parentTop" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="364" y="80"/>
|
|
<Anchors>
|
|
<Anchor point="TOP" x="0" y="0"/>
|
|
</Anchors>
|
|
<TexCoords left="0.0019531" right="0.7109375" top="0.0019531" bottom="0.1562500"/>
|
|
</Texture>
|
|
<Texture name="$parentBottom" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="356" y="30"/>
|
|
<TexCoords left="0.0019531" right="0.6953125" top="0.1621094" bottom="0.2187500"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<Texture name="$parentMouseLeftClick" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="76" y="101"/>
|
|
<TexCoords left="0.0019531" right="0.1484375" top="0.4257813" bottom="0.6210938"/>
|
|
</Texture>
|
|
<Texture name="$parentMouseRightClick" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="76" y="101"/>
|
|
<TexCoords left="0.0019531" right="0.1484375" top="0.6269531" bottom="0.8222656"/>
|
|
</Texture>
|
|
<Texture name="$parentMouseBothClick" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="76" y="101"/>
|
|
<TexCoords left="0.1542969" right="0.3007813" top="0.2246094" bottom="0.4199219"/>
|
|
</Texture>
|
|
<Texture name="$parentMouseWheel" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="76" y="101"/>
|
|
<TexCoords left="0.0019531" right="0.1484375" top="0.2246094" bottom="0.4199219"/>
|
|
</Texture>
|
|
|
|
<Texture name="$parentArrowUp" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="68" y="89"/>
|
|
<TexCoords left="0.1542969" right="0.2851563" top="0.6269531" bottom="0.7988281"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowDown" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="68" y="89"/>
|
|
<TexCoords left="0.1542969" right="0.2851563" top="0.7988281" bottom="0.6269531"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowRight" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="89" y="68"/>
|
|
<TexCoords left="0.3066406" right="0.4785156" top="0.2246094" bottom="0.3554688"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowLeft" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="89" y="68"/>
|
|
<TexCoords left="0.4785156" right="0.3066406" top="0.2246094" bottom="0.3554688"/>
|
|
</Texture>
|
|
|
|
<Texture name="$parentArrowCurveUpRight" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="66" y="81"/>
|
|
<TexCoords left="0.3066406" right="0.4335938" top="0.3613281" bottom="0.5175781"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveUpLeft" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="66" y="81"/>
|
|
<TexCoords left="0.4335938" right="0.3066406" top="0.3613281" bottom="0.5175781"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveDownRight" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="66" y="81"/>
|
|
<TexCoords left="0.3066406" right="0.4335938" top="0.5175781" bottom="0.3613281"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveDownLeft" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="66" y="81"/>
|
|
<TexCoords left="0.4335938" right="0.3066406" top="0.5175781" bottom="0.3613281"/>
|
|
</Texture>
|
|
|
|
<Texture name="$parentArrowCurveRightDown" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="82" y="66"/>
|
|
<TexCoords left="0.4843750" right="0.6425781" top="0.2246094" bottom="0.3515625"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveRightUp" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="82" y="66"/>
|
|
<TexCoords left="0.4843750" right="0.6425781" top="0.3515625" bottom="0.2246094"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveLeftDown" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="82" y="66"/>
|
|
<TexCoords left="0.6425781" right="0.4843750" top="0.2246094" bottom="0.3515625"/>
|
|
</Texture>
|
|
<Texture name="$parentArrowCurveLeftUp" file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<Size x="82" y="66"/>
|
|
<TexCoords left="0.6425781" right="0.4843750" top="0.3515625" bottom="0.2246094"/>
|
|
</Texture>
|
|
|
|
<FontString name="$parentTitle" inherits="GameFontHighlight" justifyH="LEFT" justifyV="TOP">
|
|
<Anchors>
|
|
<Anchor point="TOP" x="15" y="-17"/>
|
|
</Anchors>
|
|
<Color r="1.0" g="0.82" b="0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<ScrollFrame name="TutorialFrameTextScrollFrame" inherits="UIPanelScrollFrameTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" x="30" y="-100"/>
|
|
<Anchor point="BOTTOMRIGHT" x="-30" y="40"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.scrollBarHideable = true;
|
|
ScrollFrame_OnLoad(self);
|
|
</OnLoad>
|
|
</Scripts>
|
|
<ScrollChild>
|
|
<Frame name="TutorialFrameTextScrollChildFrame">
|
|
<Size x="1" y="1"/>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString name="TutorialFrameText" inherits="GameFontNormal" justifyH="LEFT">
|
|
<Size x="300" y="0"/>
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
</ScrollChild>
|
|
</ScrollFrame>
|
|
<Frame name="TutorialTextBorder" frameStrata="TOOLTIP" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="TutorialFrameTextScrollFrame" x="0" y="0"/>
|
|
<Anchor point="BOTTOMRIGHT" relativeTo="TutorialFrameTextScrollFrame" x="0" y="0"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<Texture name="tomtest" setAllPoints="true">
|
|
<Color r="1.0" g="0" b="0"/>
|
|
</Texture>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<Frame name="$parentCallOut" frameStrata="TOOLTIP" hidden="true">
|
|
<Animations>
|
|
<AnimationGroup looping="BOUNCE">
|
|
<Alpha name="$parentPulser" change="-.7" duration=".75"/>
|
|
</AnimationGroup>
|
|
</Animations>
|
|
<Backdrop edgeFile="Interface\TutorialFrame\UI-TutorialFrame-CalloutGlow" alphaMode="ADD">
|
|
<EdgeSize>
|
|
<AbsValue val="16"/>
|
|
</EdgeSize>
|
|
</Backdrop>
|
|
</Frame>
|
|
<Button inherits="UIPanelCloseButton">
|
|
<Anchors>
|
|
<Anchor point="TOPRIGHT" x="4" y="-8"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick function="TutorialFrame_Hide"/>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="TutorialFrameOkayButton">
|
|
<Size>
|
|
<AbsDimension x="108" y="22"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="-7" y="7"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick function="TutorialFrame_Hide"/>
|
|
</Scripts>
|
|
<NormalTexture inherits="DialogButtonNormalTexture"/>
|
|
<PushedTexture inherits="DialogButtonPushedTexture"/>
|
|
<HighlightTexture inherits="DialogButtonHighlightTexture"/>
|
|
<ButtonText text="CLOSE"/>
|
|
<NormalFont style="GameFontNormal"/>
|
|
<HighlightFont style="GameFontHighlight"/>
|
|
</Button>
|
|
<Button name="$parentPrevButton">
|
|
<Size x="26" y="26"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT" x="30" y="3"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<FontString inherits="GameFontHighlightSmall" justifyH="LEFT" text="PREV">
|
|
<Size x="60" y="10"/>
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="RIGHT"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnClick>
|
|
TutorialFramePrevButton_OnClick(self);
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
|
|
<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
|
|
<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
|
|
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
|
|
</Button>
|
|
<Button name="$parentNextButton">
|
|
<Size x="26" y="26"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT" x="-132" y="3"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<FontString inherits="GameFontHighlightSmall" justifyH="RIGHT" text="NEXT">
|
|
<Size x="60" y="10"/>
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="LEFT"/>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Scripts>
|
|
<OnClick>
|
|
TutorialFrameNextButton_OnClick(self);
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
|
|
<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
|
|
<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
|
|
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnShow>
|
|
TutorialFrame_OnShow(self);
|
|
</OnShow>
|
|
<OnLoad>
|
|
TutorialFrame_OnLoad(self);
|
|
</OnLoad>
|
|
<OnHide function="TutorialFrame_OnHide"/>
|
|
<OnEvent>
|
|
local arg1 = ...;
|
|
if ( event == "TUTORIAL_TRIGGER" ) then
|
|
TutorialFrame_NewTutorial(arg1);
|
|
elseif ( event == "DISPLAY_SIZE_CHANGED" ) then
|
|
TutorialFrame_Update(TutorialFrame.id);
|
|
end
|
|
</OnEvent>
|
|
</Scripts>
|
|
</Frame>
|
|
<Button name="TutorialFrameAlertButton" parent="UIParent" frameStrata="DIALOG" hidden="true" >
|
|
<Size x="116" y="71"/>
|
|
<Anchors>
|
|
<Anchor point="BOTTOM" x="0" y="0"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
|
|
</OnLoad>
|
|
<OnClick>
|
|
TutorialFrame_AlertButton_OnClick(self);
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<TexCoords left="0.7167969" right="0.9414063" top="0.0019531" bottom="0.1386719"/>
|
|
</NormalTexture>
|
|
<HighlightTexture file="Interface\TutorialFrame\UI-TUTORIAL-FRAME" alphaMode="ADD">
|
|
<Size x="51" y="50"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER" x="2" y="4"/>
|
|
</Anchors>
|
|
<TexCoords left="0.7558594" right="0.853515625" top="0.2246094" bottom="0.3203125"/>
|
|
</HighlightTexture>
|
|
</Button>
|
|
<Frame name="TutorialFrameAlertButtonBadge" frameStrata="TOOLTIP" hidden="true">
|
|
<Size x="53" y="52"/>
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="TutorialFrameAlertButton" x="30" y="20"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<Texture file="Interface\TutorialFrame\UI-TUTORIAL-FRAME">
|
|
<TexCoords left="0.6484375" right="0.7500000" top="0.2246094" bottom="0.3242188"/>
|
|
</Texture>
|
|
<FontString name="TutorialFrameAlertButtonBadgeText" inherits="GameFontNormal" justifyH="CENTER" justifyV="MIDDLE" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="TutorialFrameAlertButtonBadge" x="0" y="1"/>
|
|
</Anchors>
|
|
<Color r="1.0" g="1.0" b="1.0"/>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
</Ui>
|