c7ff319ccc
PaperDollStatTooltip upper-cases UnitClass(unit)'s token, and a unit whose class byte has no ChrClasses row answers two nils (UnitClass, 0x518350): the server's demons do, so hovering the pet page's stats raised "bad argument #1 to strupper". Such a unit now gets the stock default line, in both styles. LEARNED_SPELL_IN_TAB's glow flashed where 1.12's hidden skill line tabs stood: it now sits on the book's own tabs, and choosing a tab stops it, as SpellBookSkillLineTab_OnClick does. Verified: harness probe (the pet tooltip shows the default strength line, no error; the tab 2 glow's center matches our tab 2's; choosing tab 2 hides it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
187 lines
4.7 KiB
XML
187 lines
4.7 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/
|
|
..\UI.xsd">
|
|
<Script file="Locale.lua"/>
|
|
<Script file="Core.lua"/>
|
|
<Script file="Fixes.lua"/>
|
|
<Script file="Chooser.lua"/>
|
|
<Script file="GameMenu.lua"/>
|
|
|
|
<!-- One style: a 2:1 preview in a border, a radio and its label under it, then a line. -->
|
|
<Button name="MoonWellUIChoiceCardTemplate" virtual="true">
|
|
<Size>
|
|
<AbsDimension x="452" y="232"/>
|
|
</Size>
|
|
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
|
<EdgeSize>
|
|
<AbsValue val="16"/>
|
|
</EdgeSize>
|
|
<TileSize>
|
|
<AbsValue val="16"/>
|
|
</TileSize>
|
|
<BackgroundInsets>
|
|
<AbsInset left="4" right="4" top="4" bottom="4"/>
|
|
</BackgroundInsets>
|
|
</Backdrop>
|
|
<Layers>
|
|
<Layer level="ARTWORK">
|
|
<Texture name="$parentPreview">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="-6"/>
|
|
</Offset>
|
|
</Anchor>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="-6" y="6"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Texture>
|
|
<FontString name="$parentDesc" inherits="GameFontDisableSmall">
|
|
<Anchors>
|
|
<Anchor point="TOP" relativePoint="BOTTOM">
|
|
<Offset>
|
|
<AbsDimension x="0" y="-38"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<CheckButton name="$parentRadio" inherits="UIRadioButtonTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativePoint="BOTTOM">
|
|
<Offset>
|
|
<AbsDimension x="-40" y="-12"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
MoonWellUIChoice_Select(this:GetParent():GetID());
|
|
</OnClick>
|
|
</Scripts>
|
|
</CheckButton>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnClick>
|
|
MoonWellUIChoice_Select(this:GetID());
|
|
</OnClick>
|
|
<OnEnter>
|
|
MoonWellUIChoice_Hover(this, 1);
|
|
</OnEnter>
|
|
<OnLeave>
|
|
MoonWellUIChoice_Hover(this, nil);
|
|
</OnLeave>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
<!-- Over the whole screen and every window, holding the mouse and the keyboard. -->
|
|
<Frame name="MoonWellUIChoiceFrame" parent="UIParent" frameStrata="FULLSCREEN_DIALOG" toplevel="true" enableMouse="true" enableKeyboard="true" hidden="true">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT"/>
|
|
</Anchors>
|
|
<Layers>
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parentShade" setAllPoints="true">
|
|
<Color r="0.04" g="0.02" b="0.02" a="0.9"/>
|
|
</Texture>
|
|
</Layer>
|
|
<Layer level="ARTWORK">
|
|
<FontString name="$parentTitle" inherits="GameFontNormalHuge">
|
|
<Anchors>
|
|
<Anchor point="TOP">
|
|
<Offset>
|
|
<AbsDimension x="0" y="-90"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
<FontString name="$parentHint" inherits="GameFontDisableSmall">
|
|
<Anchors>
|
|
<Anchor point="BOTTOM">
|
|
<Offset>
|
|
<AbsDimension x="0" y="50"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Button name="$parentClassic" inherits="MoonWellUIChoiceCardTemplate">
|
|
<Anchors>
|
|
<Anchor point="RIGHT" relativePoint="CENTER">
|
|
<Offset>
|
|
<AbsDimension x="-16" y="30"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Button>
|
|
<Button name="$parentForever" inherits="MoonWellUIChoiceCardTemplate">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativePoint="CENTER">
|
|
<Offset>
|
|
<AbsDimension x="16" y="30"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</Button>
|
|
<Button name="$parentCancel" inherits="UIPanelButtonTemplate">
|
|
<Size>
|
|
<AbsDimension x="150" y="32"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="40" y="40"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
MoonWellUIChoice_Cancel();
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
<Button name="$parentFinish" inherits="UIPanelButtonTemplate">
|
|
<Size>
|
|
<AbsDimension x="150" y="32"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="-40" y="40"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnClick>
|
|
MoonWellUIChoice_Finish();
|
|
</OnClick>
|
|
</Scripts>
|
|
</Button>
|
|
</Frames>
|
|
<Scripts>
|
|
<OnLoad>
|
|
MoonWellUIChoice_OnLoad();
|
|
</OnLoad>
|
|
<OnEvent>
|
|
MoonWellUIChoice_OnEvent();
|
|
</OnEvent>
|
|
<OnShow>
|
|
MoonWellUIChoice_OnShow();
|
|
</OnShow>
|
|
<OnKeyDown>
|
|
MoonWellUIChoice_OnKeyDown();
|
|
</OnKeyDown>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<!-- The Forever UI modules, after the chooser: each starts from MoonWellUI_IsForever(). -->
|
|
<Include file="Forever\Forever.xml"/>
|
|
</Ui>
|