ui: define the missing ArenaTeamTemplate so Turtle's inspect arena buttons load

This commit is contained in:
chairmanpow
2026-10-06 17:37:51 +01:00
parent d6fe11800b
commit d729fc1145
@@ -13,4 +13,40 @@
-->
<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>