53 lines
3.1 KiB
XML
53 lines
3.1 KiB
XML
<!--
|
|
Adapters over the stock CharacterFrame.xml; loaded after it, so these win.
|
|
|
|
Deviation: `ArenaFrame`, a sixth tab page 1.12 has no version of. TurtleWoW's `patch-4.mpq`
|
|
copy of `CharacterFrame.lua` appends "ArenaFrame" to `CHARACTERFRAME_SUBFRAMES` — six names
|
|
where the reference has five (line 1) — so `CharacterFrame_ShowSubFrame` indexes all six and
|
|
raises `attempt to index field '?' a nil value` on the fifth tab's Hide. There is no
|
|
`ArenaFrame.lua` or `.xml` anywhere in the player's chain, none in the reference `_G` capture,
|
|
and benilla implements no arena frames, so the name has to exist or the character window's own
|
|
tab loop dies. An empty hidden frame is the whole of it: no tab button, no content, no script.
|
|
`id="6"` continues the reference's own numbering (PaperDoll 1, PetPaperDoll 2, Reputation 3,
|
|
Skill 4, Honor 5), which is what `ToggleCharacter` hands `PanelTemplates_SetTab`.
|
|
-->
|
|
<Ui xmlns="http://www.blizzard.com/wow/ui/">
|
|
<Frame name="ArenaFrame" setAllPoints="true" parent="CharacterFrame" hidden="true" id="6" />
|
|
|
|
<!--
|
|
TurtleWoW's `Blizzard_InspectUI\InspectArenaFrame.xml` has its three team buttons inherit
|
|
`ArenaTeamTemplate`, but no file on the chain defines it (walking every `.xml` in the
|
|
install finds none), so the buttons materialize bare and each `OnLoad` raises on the
|
|
missing `Text`/`DetailsDisbandButton`/`DetailsName`. Turtle's arena is TW_ARENA addon
|
|
messages, not a 1.12 feature, so only the names the stock scripts index matter: the empty
|
|
`Text` and `Details` fields and the disband button, which draw nothing. `$parent` is the
|
|
immediate parent frame, so the fields land under `…TeamN` + `Details` as the Lua reads them.
|
|
-->
|
|
<Button name="ArenaTeamTemplate" virtual="true">
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString name="$parentText" inherits="GameFontNormal" />
|
|
</Layer>
|
|
</Layers>
|
|
<Frames>
|
|
<Frame name="$parentDetails" hidden="true">
|
|
<Layers>
|
|
<Layer level="OVERLAY">
|
|
<FontString name="$parentName" inherits="GameFontNormal" />
|
|
<FontString name="$parentRating" inherits="GameFontNormal" />
|
|
<FontString name="$parentWeekRank" inherits="GameFontNormal" />
|
|
<FontString name="$parentWeekGames" inherits="GameFontNormal" />
|
|
<FontString name="$parentWeekWins" inherits="GameFontNormal" />
|
|
<FontString name="$parentWeekLoss" inherits="GameFontNormal" />
|
|
<FontString name="$parentSeasonRank" inherits="GameFontNormal" />
|
|
<FontString name="$parentSeasonGames" inherits="GameFontNormal" />
|
|
<FontString name="$parentSeasonWins" inherits="GameFontNormal" />
|
|
<FontString name="$parentSeasonLoss" inherits="GameFontNormal" />
|
|
</Layer>
|
|
</Layers>
|
|
</Frame>
|
|
<Button name="$parentDetailsDisbandButton" />
|
|
</Frames>
|
|
</Button>
|
|
</Ui>
|