Files
moonwell-client/reference/FrameXML/SpellBookFrame.xml
T

673 lines
21 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="SpellBookFrame.lua"/>
<Frame name="SpellBookShineTemplate" inherits="AutoCastShineTemplate" virtual="true">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
</Frame>
<CheckButton name="SpellBookSkillLineTabTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\SpellBook\SpellBook-SkillLineTab">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-3" y="11"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
SpellBookSkillLineTab_OnClick(self);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltip);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<NormalTexture/>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
</CheckButton>
<Button name="SpellBookFrameTabButtonTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="128" y="64"/>
</Size>
<HitRectInsets>
<AbsInset left="15" right="14" top="13" bottom="15"/>
</HitRectInsets>
<Scripts>
<OnClick>
SpellBookFrameTabButton_OnClick(self, button, down);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(MicroButtonTooltipText(self:GetText(), self.binding), 1.0,1.0,1.0 );
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<ButtonText>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="3"/>
</Offset>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont style="GameFontNormalSmall"/>
<HighlightFont style="GameFontHighlightSmall"/>
<DisabledFont style="GameFontHighlightSmall"/>
<NormalTexture file="Interface\SpellBook\UI-SpellBook-Tab-Unselected"/>
<HighlightTexture file="Interface\SpellBook\UI-SpellbookPanel-Tab-Highlight" alphaMode="ADD"/>
</Button>
<CheckButton name="SpellButtonTemplate" inherits="SecureFrameTemplate" virtual="true">
<Size>
<AbsDimension x="37" y="37"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\Spellbook\UI-Spellbook-SpellBackground">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-3" y="3"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentIconTexture" setAllPoints="true" hidden="true"/>
<FontString name="$parentSpellName" inherits="GameFontNormal" maxLines="3" hidden="true" justifyH="LEFT">
<Size>
<AbsDimension x="103" y="0"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="4" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentSubSpellName" inherits="SubSpellFont" hidden="true" justifyH="LEFT">
<Size>
<AbsDimension x="79" y="18"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentSpellName" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="4"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentAutoCastable" file="Interface\Buttons\UI-AutoCastableOverlay" hidden="true">
<Size>
<AbsDimension x="60" y="60"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate"/>
</Frames>
<Scripts>
<OnLoad>
SpellButton_OnLoad(self);
</OnLoad>
<OnEvent>
SpellButton_OnEvent(self, event, ...);
</OnEvent>
<PreClick>
self:SetChecked(0);
</PreClick>
<OnClick>
if ( IsModifiedClick() ) then
SpellButton_OnModifiedClick(self, button);
else
SpellButton_OnClick(self, button);
end
</OnClick>
<OnShow>
SpellButton_OnShow(self);
</OnShow>
<OnHide>
SpellButton_OnHide(self);
</OnHide>
<OnDragStart>
SpellButton_OnDrag(self, button);
</OnDragStart>
<OnReceiveDrag>
SpellButton_OnDrag(self);
</OnReceiveDrag>
<OnEnter>
SpellButton_OnEnter(self, motion);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
<HighlightTexture name="$parentHighlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
</CheckButton>
<Frame name="SpellBookFrame" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="384" y="512"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-104"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="0" right="30" top="0" bottom="70"/>
</HitRectInsets>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon" file="Interface\Spellbook\Spellbook-Icon">
<Size>
<AbsDimension x="58" y="58"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentTopLeft" file="Interface\Spellbook\UI-SpellbookPanel-TopLeft">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture name="$parentTopRight" file="Interface\Spellbook\UI-SpellbookPanel-TopRight">
<Size>
<AbsDimension x="128" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT"/>
</Anchors>
</Texture>
<Texture name="$parentBotLeft" file="Interface\Spellbook\UI-SpellbookPanel-BotLeft">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture name="$parentBotRight" file="Interface\Spellbook\UI-SpellbookPanel-BotRight">
<Size>
<AbsDimension x="128" y="256"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</Texture>
<FontString name="SpellBookTitleText" inherits="GameFontNormal" text="SPELLBOOK">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="6" y="230"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SpellBookPageText" inherits="GameFontNormal">
<Size>
<AbsDimension x="102" y="0"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="-14" y="96"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="SpellBookFrameTabButton1" inherits="SpellBookFrameTabButtonTemplate">
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="79" y="61"/>
</Offset>
</Anchor>
</Anchors>
<DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
</Button>
<Button name="SpellBookFrameTabButton2" inherits="SpellBookFrameTabButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SpellBookFrameTabButton1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-20" y="0"/>
</Offset>
</Anchor>
</Anchors>
<DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/>
</Button>
<Button name="SpellBookFrameTabButton3" inherits="SpellBookFrameTabButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="SpellBookFrameTabButton2" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-20" y="0"/>
</Offset>
</Anchor>
</Anchors>
<DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab3-Selected"/>
</Button>
<Button name="SpellBookPrevPageButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="50" y="105"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormal" justifyH="LEFT" text="PREV">
<Anchors>
<Anchor point="LEFT" relativeTo="SpellBookPrevPageButton" relativePoint="RIGHT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick function="SpellBookPrevPageButton_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="SpellBookNextPageButton">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="314" y="105"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontNormal" justifyH="RIGHT" text="NEXT">
<Anchors>
<Anchor point="RIGHT" relativeTo="SpellBookNextPageButton" relativePoint="LEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick function="SpellBookNextPageButton_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>
<Button name="SpellBookCloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-44" y="-25"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<CheckButton name="ShowAllSpellRanksCheckBox" inherits="OptionsSmallCheckButtonTemplate">
<Size>
<AbsDimension x="26" y="26"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="74" y="-38"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="0" right="0" top="0" bottom="0"/>
</HitRectInsets>
<Scripts>
<OnLoad>
_G[self:GetName().."Text"]:SetText(SHOW_ALL_SPELL_RANKS);
</OnLoad>
<OnShow>
self:SetChecked( GetCVarBool("ShowAllSpellRanks") );
</OnShow>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
SetCVar("ShowAllSpellRanks", self:GetChecked());
UpdateSpells();
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="SpellButton1" inherits="SpellButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="34" y="-85"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton2" inherits="SpellButtonTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton1">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton3" inherits="SpellButtonTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton4" inherits="SpellButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton3">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton5" inherits="SpellButtonTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton6" inherits="SpellButtonTemplate" id="9">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton5">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton7" inherits="SpellButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton8" inherits="SpellButtonTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton7">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton9" inherits="SpellButtonTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton10" inherits="SpellButtonTemplate" id="11">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton9">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton11" inherits="SpellButtonTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton9" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellButton12" inherits="SpellButtonTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellButton11">
<Offset>
<AbsDimension x="157" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab1" inherits="SpellBookSkillLineTabTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-32" y="-65"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab2" inherits="SpellBookSkillLineTabTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab3" inherits="SpellBookSkillLineTabTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab4" inherits="SpellBookSkillLineTabTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab5" inherits="SpellBookSkillLineTabTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab4" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab6" inherits="SpellBookSkillLineTabTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab7" inherits="SpellBookSkillLineTabTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab6" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SpellBookSkillLineTab8" inherits="SpellBookSkillLineTabTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<Frame name="SpellBookTabFlashFrame" hidden="true">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SpellBookSkillLineTab1">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture name="SpellBookSkillLineTab1Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab1"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab2Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab2"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab3Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab3"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab4Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab4"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab5Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab5"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab6Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab6"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab7Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab7"/>
</Anchors>
</Texture>
<Texture name="SpellBookSkillLineTab8Flash" file="Interface\Buttons\CheckButtonGlow" alphaMode="ADD" hidden="true">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SpellBookSkillLineTab8"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnLoad function="SpellBookFrame_OnLoad"/>
<OnEvent function="SpellBookFrame_OnEvent"/>
<OnShow function="SpellBookFrame_OnShow"/>
<OnHide function="SpellBookFrame_OnHide"/>
</Scripts>
</Frame>
</Ui>