Skip to content

Commit f9d54cf

Browse files
committed
Merge remote-tracking branch 'remotes/origin/buffalo-0.4.0-buffconfig' into main
2 parents 16e9a0a + f261546 commit f9d54cf

21 files changed

Lines changed: 1224 additions & 364 deletions

Buffalo/Buffalo-ClassConfig.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Buffalo/Buffalo-ClassConfig.xml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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>

Buffalo/Buffalo-Classic.toc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
## Title: Buffalo - One-button buffing
22
## Notes: Smart addon to buff party / raid members
3-
## Version: 0.3.1
3+
## Version: 0.4.0
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 11403
66
## SavedVariables: Buffalo_Options
77
## X-Expansion-Level: 1
88
## X-Curse-Project-ID: 623031
99
## X-WoWI-ID: 26305
1010
Buffalo-Configuration.xml
11+
Buffalo-ClassConfig.xml
12+
Buffalo-GeneralConfig.xml
1113
Buffalo.xml
1214

0 commit comments

Comments
 (0)