-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDandersFrames.xml
More file actions
43 lines (38 loc) · 1.83 KB
/
DandersFrames.xml
File metadata and controls
43 lines (38 loc) · 1.83 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
38
39
40
41
42
43
<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/">
<!-- ============================================================
DANDERSFRAMES UNIT BUTTON TEMPLATE
Used by SecureGroupHeaderTemplate to create child frames.
All visual elements are created in Lua via OnLoad.
============================================================ -->
<Button name="DandersUnitButtonTemplate" inherits="SecureUnitButtonTemplate,SecureHandlerEnterLeaveTemplate" virtual="true">
<Attributes>
<!-- Vehicle support - automatically switch unit when entering vehicle -->
<Attribute name="toggleForVehicle" type="boolean" value="true"/>
</Attributes>
<Scripts>
<OnLoad>
-- Initialize frame when header creates it
local DF = DandersFrames
if DF and DF.InitializeHeaderChild then
DF:InitializeHeaderChild(self)
end
</OnLoad>
</Scripts>
</Button>
<!-- ============================================================
PET BUTTON TEMPLATE (for SecureGroupPetHeaderTemplate)
============================================================ -->
<Button name="DandersPetButtonTemplate" inherits="SecureUnitButtonTemplate,SecureHandlerEnterLeaveTemplate" virtual="true">
<Attributes>
<Attribute name="toggleForVehicle" type="boolean" value="false"/>
</Attributes>
<Scripts>
<OnLoad>
local DF = DandersFrames
if DF and DF.InitializePetHeaderChild then
DF:InitializePetHeaderChild(self)
end
</OnLoad>
</Scripts>
</Button>
</Ui>