1+ <Ui xmlns =" http://www.blizzard.com/wow/ui/" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
2+ <Script file =" Buffalo-ClassConfig.lua" />
3+
4+ <!-- Frame template for one class button -->
5+ <Button name =" BuffaloClassButtonTemplate" inherits =" ActionButtonTemplate" frameStrata =" HIGH" hidden =" false" virtual =" true" >
6+ <Size >
7+ <AbsDimension x =" 32" y =" 32" />
8+ </Size >
9+ <NormalTexture file =" Interface\PaperDoll\UI-Backpack-EmptySlot" />
10+ <Scripts >
11+ <OnLoad >
12+ --self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
13+ </OnLoad >
14+ <OnClick >
15+ -- TODO: What should we do when clicking a class? Enable all buffs?
16+ </OnClick >
17+ </Scripts >
18+ </Button >
19+
20+ <!-- Frame template for one class buff button -->
21+ <Button name =" BuffaloBuffButtonTemplate" inherits =" ActionButtonTemplate" frameStrata =" HIGH" hidden =" false" virtual =" true" >
22+ <Size >
23+ <AbsDimension x =" 24" y =" 24" />
24+ </Size >
25+ <NormalTexture file =" Interface\PaperDoll\UI-Backpack-EmptySlot" />
26+ <Scripts >
27+ <OnLoad >
28+ self:RegisterForClicks("LeftButtonDown", "RightButtonDown");
29+ </OnLoad >
30+ <OnClick >
31+ Buffalo_ClassConfigOnClick(self);
32+ </OnClick >
33+ </Scripts >
34+ </Button >
35+
36+ <!-- Class Configration frame: main entry -->
37+ <Frame name =" BuffaloClassConfigFrame" parent =" UIParent" toplevel =" true" inherits =" BackdropTemplate" hidden =" true" frameStrata =" HIGH" >
38+ <KeyValues >
39+ <KeyValue key =" backdropInfo" value =" BACKDROP_DIALOG_32_32" type =" global" />
40+ <KeyValue key =" backdropColor" value =" BLACK" type =" global" />
41+ <KeyValue key =" backdropBorderColor" value =" WHITE" type =" global" />
42+ </KeyValues >
43+ <Size x =" 180" y =" 300" />
44+ <Anchors >
45+ <Anchor point =" CENTER" />
46+ </Anchors >
47+
48+ <Frames >
49+ <!-- Class names are inserted here -->
50+ <Frame name =" $parentClass" hidden =" false" >
51+ <Size x =" 320" y =" 200" />
52+ <Anchors >
53+ <Anchor point =" TOPLEFT" x =" 30" y =" -40" />
54+ </Anchors >
55+ </Frame >
56+
57+ <!-- Close button -->
58+ <Button name =" $parentCloseButton" inherits =" UIPanelButtonTemplate" movable =" true" text =" Close" >
59+ <Size >
60+ <AbsDimension x =" 100" y =" 23" />
61+ </Size >
62+ <Anchors >
63+ <Anchor point =" BOTTOM" >
64+ <Offset x =" 0" y =" 24" />
65+ </Anchor >
66+ </Anchors >
67+ <Scripts >
68+ <OnClick >Buffalo_ClassConfigOnCloseButtonClick();</OnClick >
69+ </Scripts >
70+ </Button >
71+ </Frames >
72+
73+ <Layers >
74+ <Layer level =" ARTWORK" >
75+ <Texture name =" $parentHeaderTexture" file =" Interface\DialogFrame\UI-DialogBox-Header" >
76+ <Size >
77+ <AbsDimension x =" 880" y =" 64" />
78+ </Size >
79+ <Anchors >
80+ <Anchor point =" TOP" >
81+ <Offset >
82+ <AbsDimension x =" 0" y =" 12" />
83+ </Offset >
84+ </Anchor >
85+ </Anchors >
86+ </Texture >
87+ <FontString name =" BuffaloClassConfigHeaderText" inherits =" GameFontNormal" text =" Assign buffs to specific classes." >
88+ <Anchors >
89+ <Anchor point =" TOP" relativeTo =" $parentHeaderTexture" >
90+ <Offset >
91+ <AbsDimension x =" 0" y =" -14" />
92+ </Offset >
93+ </Anchor >
94+ </Anchors >
95+ </FontString >
96+ </Layer >
97+ </Layers >
98+
99+ <Scripts >
100+ <OnLoad inherit =" prepend" >
101+ tinsert(UISpecialFrames, self:GetName());
102+ </OnLoad >
103+ <OnShow >
104+ PlaySound(IG_MAINMENU_OPEN);
105+ </OnShow >
106+ <OnHide >
107+ PlaySound(IG_MAINMENU_CLOSE);
108+ </OnHide >
109+ </Scripts >
110+ </Frame >
111+
112+ </Ui >
0 commit comments