-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIvoryTower_TargetFrameClassIcon.xml
More file actions
37 lines (37 loc) · 1.42 KB
/
IvoryTower_TargetFrameClassIcon.xml
File metadata and controls
37 lines (37 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Ui>
<Frame name="$parentClassIcon" parent="TargetFrame" parentKey="classIcon" frameStrata="MEDIUM">
<Size x="24" y="24"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parentNameBackground" relativePoint="RIGHT" x="0" y="12"/>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture name="$parentBorder" file="Interface\UNITPOWERBARALT\WowUI_Circular_Frame" parentKey="Border">
<Size x="48" y="48"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\TARGETINGFRAME\UI-Classes-Circles" parentKey="Texture"/>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterEvent("PLAYER_TARGET_CHANGED")
</OnLoad>
<OnEvent>
if (event == "PLAYER_TARGET_CHANGED") then
if (UnitIsPlayer("target")) then
local coords = CLASS_ICON_TCOORDS[select(2, UnitClass("target"))]
self.Texture:SetTexCoord(unpack(coords))
self:Show()
else
self:Hide()
end
end
</OnEvent>
</Scripts>
</Frame>
</Ui>