vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <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/ |
2 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="ButtonholeAd_Classic.lua"/> |
||
4 | <Script file="ButtonholeAd_Menu.lua"/> |
||
5 | <Script file="ButtonholeAd_Expander.lua"/> |
||
6 | <Script file="ButtonholeAd.lua"/> |
||
7 | <Frame name="ButtonholeAdFrame" toplevel="true" parent="UIParent" frameStrata="DIALOG" hidden="true" enableMouse="true"> |
||
8 | <Scripts> |
||
9 | <OnLoad> |
||
10 | ButtonholeAd_OnLoad(); |
||
11 | </OnLoad> |
||
12 | <OnEvent> |
||
13 | ButtonholeAd_OnEvent(); |
||
14 | </OnEvent> |
||
15 | </Scripts> |
||
16 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
17 | <BackgroundInsets> |
||
18 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
19 | </BackgroundInsets> |
||
20 | <TileSize><AbsValue val="32"/></TileSize> |
||
21 | <EdgeSize><AbsValue val="32"/></EdgeSize> |
||
22 | </Backdrop> |
||
23 | <Size><AbsDimension x="350" y="500"/></Size> |
||
24 | <Anchors> |
||
25 | <Anchor point="CENTER"/> |
||
26 | </Anchors> |
||
27 | <Frames> |
||
28 | |||
29 | <!-- ==================== --> |
||
30 | |||
31 | <Button name="$parentButtonClose" inherits="OptionsButtonTemplate" text="Close"> |
||
32 | <Anchors> |
||
33 | <Anchor point="BOTTOMRIGHT"> |
||
34 | <Offset> |
||
35 | <AbsDimension x="-12" y="16"/> |
||
36 | </Offset> |
||
37 | </Anchor> |
||
38 | </Anchors> |
||
39 | <Scripts> |
||
40 | <OnClick> ButtonholeAdFrame:Hide(); BHA_Debug("Hiding config frame"); </OnClick> |
||
41 | </Scripts> |
||
42 | </Button> |
||
43 | |||
44 | <CheckButton name="$parentCheckButtonClassic" inherits="OptionsCheckButtonTemplate" checked="true"> |
||
45 | <Scripts> |
||
46 | <OnClick> |
||
47 | ButtonholeAd_Method = 0; |
||
48 | ButtonholeAd_UpdateMethodUI(); |
||
49 | </OnClick> |
||
50 | </Scripts> |
||
51 | <Anchors> |
||
52 | <Anchor point="TOPLEFT" relativeTo="$parent"><Offset><AbsDimension x="25" y="-154"/></Offset></Anchor> |
||
53 | </Anchors> |
||
54 | </CheckButton> |
||
55 | |||
56 | <CheckButton name="$parentCheckButtonMenu" inherits="OptionsCheckButtonTemplate" checked="false"> |
||
57 | <Scripts> |
||
58 | <OnClick> |
||
59 | ButtonholeAd_Method = 1; |
||
60 | ButtonholeAd_UpdateMethodUI(); |
||
61 | </OnClick> |
||
62 | </Scripts> |
||
63 | <Anchors> |
||
64 | <Anchor point="TOPLEFT" relativeTo="$parent"><Offset><AbsDimension x="25" y="-234"/></Offset></Anchor> |
||
65 | </Anchors> |
||
66 | </CheckButton> |
||
67 | |||
68 | <CheckButton name="$parentCheckButtonExpander" inherits="OptionsCheckButtonTemplate" checked="false"> |
||
69 | <Scripts> |
||
70 | <OnClick> |
||
71 | ButtonholeAd_Method = 2; |
||
72 | ButtonholeAd_UpdateMethodUI(); |
||
73 | </OnClick> |
||
74 | </Scripts> |
||
75 | <Anchors> |
||
76 | <Anchor point="TOPLEFT" relativeTo="$parent"><Offset><AbsDimension x="25" y="-304"/></Offset></Anchor> |
||
77 | </Anchors> |
||
78 | </CheckButton> |
||
79 | |||
80 | <CheckButton name="$parentCheckButtonOff" inherits="OptionsCheckButtonTemplate" checked="false"> |
||
81 | <Scripts> |
||
82 | <OnClick> |
||
83 | ButtonholeAd_Method = 3; |
||
84 | ButtonholeAd_UpdateMethodUI(); |
||
85 | </OnClick> |
||
86 | </Scripts> |
||
87 | <Anchors> |
||
88 | <Anchor point="TOPLEFT" relativeTo="$parent"><Offset><AbsDimension x="25" y="-373"/></Offset></Anchor> |
||
89 | </Anchors> |
||
90 | </CheckButton> |
||
91 | |||
92 | <Slider name="$parentPosSlider" inherits="OptionsSliderTemplate"> |
||
93 | <Size> |
||
94 | <AbsDimension x="290" y="17"/> |
||
95 | </Size> |
||
96 | <Anchors> |
||
97 | <Anchor point="BOTTOM" relative="$parent" relativePoint="BOTTOM"> |
||
98 | <Offset> |
||
99 | <AbsDimension x="-3" y="40"/> |
||
100 | </Offset> |
||
101 | </Anchor> |
||
102 | </Anchors> |
||
103 | <Scripts> |
||
104 | <OnLoad> |
||
105 | getglobal(this:GetName().."Text"):SetText("Button Position"); |
||
106 | getglobal(this:GetName().."High"):SetText(); |
||
107 | getglobal(this:GetName().."Low"):SetText(); |
||
108 | this:SetMinMaxValues(0, 360); |
||
109 | this:SetValueStep(1); |
||
110 | this.tooltipText = "Where to put the Buttonhole on the Minimap"; |
||
111 | </OnLoad> |
||
112 | <OnShow> |
||
113 | ButtonholeAd_UpdatePosUI(); |
||
114 | </OnShow> |
||
115 | <OnValueChanged> |
||
116 | ButtonholeAd_Pos = this:GetValue(); |
||
117 | getglobal(this:GetName().."Text"):SetText("Button Position" .. " - "..this:GetValue().."\194\176"); |
||
118 | ButtonholeAd_UpdatePosUI(); |
||
119 | </OnValueChanged> |
||
120 | <OnMouseUp> |
||
121 | BHA_Debug("Setting button position to " .. ButtonholeAd_Pos); |
||
122 | </OnMouseUp> |
||
123 | </Scripts> |
||
124 | </Slider> |
||
125 | |||
126 | </Frames> |
||
127 | <Layers><Layer level="OVERLAY"> |
||
128 | |||
129 | <FontString name="$parentText" inherits="GameFontNormal" text="loading text..." justifyH="LEFT"> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOPLEFT" relativeTo="$parent"><Offset><AbsDimension x="25" y="-20"/></Offset></Anchor> |
||
132 | </Anchors> |
||
133 | <Size><AbsDimension x="325" y="425"/></Size> |
||
134 | </FontString> |
||
135 | |||
136 | |||
137 | <!-- ==================== --> |
||
138 | |||
139 | </Layer></Layers> |
||
140 | </Frame> |
||
141 | |||
142 | <!-- ==================== --> |
||
143 | |||
144 | <Button name="ButtonholeAd_Minimap" toplevel="true" frameStrata="LOW" parent="Minimap" enableMouse="true" movable="false" hidden="false"> |
||
145 | <Size> |
||
146 | <AbsDimension x="33" y="33"/> |
||
147 | </Size> |
||
148 | <Anchors> |
||
149 | <Anchor point="TOPLEFT"> |
||
150 | <Offset> |
||
151 | <AbsDimension x="-100" y="-100"/> |
||
152 | </Offset> |
||
153 | </Anchor> |
||
154 | </Anchors> |
||
155 | <Layers> |
||
156 | <Layer level="BACKGROUND"> |
||
157 | <Texture name="ButtonholeAd_Minimap_Texture" file="Interface\Icons\INV_Enchant_ShardRadientSmall"> |
||
158 | <Size> |
||
159 | <AbsDimension x="21" y="21"/> |
||
160 | </Size> |
||
161 | <Anchors> |
||
162 | <Anchor point="TOPLEFT"> |
||
163 | <Offset> |
||
164 | <AbsDimension x="7" y="-6"/> |
||
165 | </Offset> |
||
166 | </Anchor> |
||
167 | </Anchors> |
||
168 | <TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/> |
||
169 | </Texture> |
||
170 | </Layer> |
||
171 | <Layer level="OVERLAY"> |
||
172 | <Texture file="Interface\Minimap\MiniMap-TrackingBorder"> |
||
173 | <Size> |
||
174 | <AbsDimension x="56" y="56"/> |
||
175 | </Size> |
||
176 | <Anchors> |
||
177 | <Anchor point="TOPLEFT"/> |
||
178 | </Anchors> |
||
179 | </Texture> |
||
180 | </Layer> |
||
181 | </Layers> |
||
182 | <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
||
183 | <Scripts> |
||
184 | <OnLoad> |
||
185 | this:RegisterForClicks("LeftButtonUp","RightButtonUp"); |
||
186 | </OnLoad> |
||
187 | <OnMouseDown> |
||
188 | ButtonholeAd_Minimap_Texture:SetTexCoord(0,1,0,1); |
||
189 | </OnMouseDown> |
||
190 | <OnMouseUp> |
||
191 | ButtonholeAd_Minimap_Texture:SetTexCoord(.075,.925,.075,.925); |
||
192 | </OnMouseUp> |
||
193 | <OnClick> |
||
194 | ButtonholeAd_Minimap_OnClick(arg1); |
||
195 | ButtonholeAd_Minimap_Texture:SetTexCoord(.075,.925,.075,.925); |
||
196 | </OnClick> |
||
197 | <OnEnter> |
||
198 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
199 | GameTooltip:SetText("Buttonhole Advanced"); |
||
200 | GameTooltip:AddLine("Right click for more info."); |
||
201 | GameTooltip:Show(); |
||
202 | </OnEnter> |
||
203 | <OnLeave> |
||
204 | GameTooltip:Hide(); |
||
205 | </OnLeave> |
||
206 | <OnMouseWheel> |
||
207 | ButtonholeAd_Classic_Wheel(arg1); |
||
208 | </OnMouseWheel> |
||
209 | </Scripts> |
||
210 | </Button> |
||
211 | |||
212 | </Ui> |