2c0e6aba57
The first ported part of Forever UI, loaded only on the forever style: the atlas tables and texts taken from data/ as they are, the atlas helpers, Layout's saved positions, the player frame, the target frame with its target of target and combo points, and the target's auras, on the 1.12 API and Lua 5.0. build.py now copies the upstream files that already run on 1.12, packs only the art sheets the ported files name, and has a --test-style switch for harness and capture runs. Verified with benilla's addon harness on a forever test build (clean load, stock frames suppressed, health, power, level, hover texts, combat state, status bar text) and on the release build (classic loads none of it), and with a capture render of both frames. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
186 lines
4.7 KiB
XML
186 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="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>
|