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/..\FrameXML\UI.xsd"> |
2 | <Script file="FishingOptionsFrame.lua"/> |
||
3 | <CheckButton name="FishingBuddyCheckButtonTemplate" virtual="true"> |
||
4 | <Size> |
||
5 | <AbsDimension x="24" y="24"/> |
||
6 | </Size> |
||
7 | <Layers> |
||
8 | <Layer level="ARTWORK"> |
||
9 | <FontString name="$parentText" inherits="GameFontNormalSmall"> |
||
10 | <Anchors> |
||
11 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
12 | <Offset> |
||
13 | <AbsDimension x="-2" y="0"/> |
||
14 | </Offset> |
||
15 | </Anchor> |
||
16 | </Anchors> |
||
17 | </FontString> |
||
18 | </Layer> |
||
19 | </Layers> |
||
20 | <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/> |
||
21 | <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/> |
||
22 | <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/> |
||
23 | <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/> |
||
24 | <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/> |
||
25 | <HitRectInsets> |
||
26 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
27 | </HitRectInsets> |
||
28 | <Scripts> |
||
29 | <OnShow> |
||
30 | FishingBuddy.CheckButton_OnShow(); |
||
31 | </OnShow> |
||
32 | <OnClick> |
||
33 | FishingBuddy.CheckButton_OnClick(); |
||
34 | </OnClick> |
||
35 | <OnEnter> |
||
36 | FishingBuddy.CheckButton_OnEnter(); |
||
37 | </OnEnter> |
||
38 | <OnLeave> |
||
39 | FishingBuddy.CheckButton_OnLeave(); |
||
40 | </OnLeave> |
||
41 | </Scripts> |
||
42 | </CheckButton> |
||
43 | <Frame name="FishingOptionsFrame" |
||
44 | setAllPoints="true" enableMouse="true" |
||
45 | inherits="FishingBuddySmallHeaderTemplate" |
||
46 | parent="FishingBuddyFrame" hidden="true"> |
||
47 | <HitRectInsets> |
||
48 | <AbsInset left="0" right="30" top="0" bottom="75"/> |
||
49 | </HitRectInsets> |
||
50 | <Frames> |
||
51 | <CheckButton name="FishingBuddyOption_ShowNewFishies" inherits="FishingBuddyCheckButtonTemplate"> |
||
52 | <Anchors> |
||
53 | <Anchor point="TOPLEFT"> |
||
54 | <Offset> |
||
55 | <AbsDimension x="32" y="-80"/> |
||
56 | </Offset> |
||
57 | </Anchor> |
||
58 | </Anchors> |
||
59 | </CheckButton> |
||
60 | <CheckButton name="FishingBuddyOption_WatchFishies" inherits="FishingBuddyCheckButtonTemplate"> |
||
61 | <Anchors> |
||
62 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_ShowNewFishies" relativePoint="BOTTOMLEFT"> |
||
63 | <Offset> |
||
64 | <AbsDimension x="0" y="2"/> |
||
65 | </Offset> |
||
66 | </Anchor> |
||
67 | </Anchors> |
||
68 | </CheckButton> |
||
69 | <CheckButton name="FishingBuddyOption_WatchCurrentZone" inherits="FishingBuddyCheckButtonTemplate"> |
||
70 | <Anchors> |
||
71 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchFishies" relativePoint="BOTTOMLEFT"> |
||
72 | <Offset> |
||
73 | <AbsDimension x="16" y="2"/> |
||
74 | </Offset> |
||
75 | </Anchor> |
||
76 | </Anchors> |
||
77 | </CheckButton> |
||
78 | <CheckButton name="FishingBuddyOption_WatchCurrentSkill" inherits="FishingBuddyCheckButtonTemplate"> |
||
79 | <Anchors> |
||
80 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchCurrentZone" relativePoint="BOTTOMLEFT"> |
||
81 | <Offset> |
||
82 | <AbsDimension x="0" y="2"/> |
||
83 | </Offset> |
||
84 | </Anchor> |
||
85 | </Anchors> |
||
86 | </CheckButton> |
||
87 | <CheckButton name="FishingBuddyOption_WatchOnlyWhenFishing" inherits="FishingBuddyCheckButtonTemplate"> |
||
88 | <Anchors> |
||
89 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchCurrentSkill" relativePoint="BOTTOMLEFT"> |
||
90 | <Offset> |
||
91 | <AbsDimension x="0" y="2"/> |
||
92 | </Offset> |
||
93 | </Anchor> |
||
94 | </Anchors> |
||
95 | </CheckButton> |
||
96 | <CheckButton name="FishingBuddyOption_WatchFishPercent" inherits="FishingBuddyCheckButtonTemplate"> |
||
97 | <Anchors> |
||
98 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchOnlyWhenFishing" relativePoint="BOTTOMLEFT"> |
||
99 | <Offset> |
||
100 | <AbsDimension x="0" y="2"/> |
||
101 | </Offset> |
||
102 | </Anchor> |
||
103 | </Anchors> |
||
104 | </CheckButton> |
||
105 | <CheckButton name="FishingBuddyOption_SortByPercent" inherits="FishingBuddyCheckButtonTemplate"> |
||
106 | <Anchors> |
||
107 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_WatchFishPercent" relativePoint="BOTTOMLEFT"> |
||
108 | <Offset> |
||
109 | <AbsDimension x="-16" y="2"/> |
||
110 | </Offset> |
||
111 | </Anchor> |
||
112 | </Anchors> |
||
113 | </CheckButton> |
||
114 | <CheckButton name="FishingBuddyOption_EasyCast" inherits="FishingBuddyCheckButtonTemplate"> |
||
115 | <Anchors> |
||
116 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_SortByPercent" relativePoint="BOTTOMLEFT"> |
||
117 | <Offset> |
||
118 | <AbsDimension x="0" y="2"/> |
||
119 | </Offset> |
||
120 | </Anchor> |
||
121 | </Anchors> |
||
122 | </CheckButton> |
||
123 | <Frame name="FishingBuddyOption_EasyCastKeys" inherits="UIDropDownMenuTemplate" hidden="false"> |
||
124 | <Anchors> |
||
125 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyCast" relativePoint="TOPLEFT"> |
||
126 | <Offset> |
||
127 | <AbsDimension x="180" y="0"/> |
||
128 | </Offset> |
||
129 | </Anchor> |
||
130 | </Anchors> |
||
131 | <Layers> |
||
132 | <Layer level="BACKGROUND"> |
||
133 | <FontString name="$parentLabel" inherits="GameFontNormalSmall"> |
||
134 | <Anchors> |
||
135 | <Anchor point="TOPRIGHT" relativePoint="TOPLEFT"> |
||
136 | <Offset> |
||
137 | <AbsDimension x="10" y="-6"/> |
||
138 | </Offset> |
||
139 | </Anchor> |
||
140 | </Anchors> |
||
141 | </FontString> |
||
142 | </Layer> |
||
143 | </Layers> |
||
144 | <Scripts> |
||
145 | <OnLoad> |
||
146 | FishingBuddy.OptionsFrame.MenuSetup("EasyCastKeys"); |
||
147 | </OnLoad> |
||
148 | </Scripts> |
||
149 | </Frame> |
||
150 | <CheckButton name="FishingBuddyOption_FastCast" inherits="FishingBuddyCheckButtonTemplate"> |
||
151 | <Anchors> |
||
152 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyCast" relativePoint="BOTTOMLEFT"> |
||
153 | <Offset> |
||
154 | <AbsDimension x="16" y="2"/> |
||
155 | </Offset> |
||
156 | </Anchor> |
||
157 | </Anchors> |
||
158 | </CheckButton> |
||
159 | <CheckButton name="FishingBuddyOption_EasyLures" inherits="FishingBuddyCheckButtonTemplate"> |
||
160 | <Anchors> |
||
161 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_FastCast" relativePoint="BOTTOMLEFT"> |
||
162 | <Offset> |
||
163 | <AbsDimension x="0" y="2"/> |
||
164 | </Offset> |
||
165 | </Anchor> |
||
166 | </Anchors> |
||
167 | </CheckButton> |
||
168 | <CheckButton name="FishingBuddyOption_STVTimer" inherits="FishingBuddyCheckButtonTemplate"> |
||
169 | <Anchors> |
||
170 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EasyLures" relativePoint="BOTTOMLEFT"> |
||
171 | <Offset> |
||
172 | <AbsDimension x="-16" y="2"/> |
||
173 | </Offset> |
||
174 | </Anchor> |
||
175 | </Anchors> |
||
176 | </CheckButton> |
||
177 | <CheckButton name="FishingBuddyOption_EnhanceFishingSounds" inherits="FishingBuddyCheckButtonTemplate"> |
||
178 | <Anchors> |
||
179 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_STVTimer" relativePoint="BOTTOMLEFT"> |
||
180 | <Offset> |
||
181 | <AbsDimension x="0" y="2"/> |
||
182 | </Offset> |
||
183 | </Anchor> |
||
184 | </Anchors> |
||
185 | </CheckButton> |
||
186 | <CheckButton name="FishingBuddyOption_UseButtonHole" inherits="FishingBuddyCheckButtonTemplate"> |
||
187 | <Anchors> |
||
188 | <Anchor point="TOPLEFT" relativeTo="FishingBuddyOption_EnhanceFishingSounds" relativePoint="BOTTOMLEFT"> |
||
189 | <Offset> |
||
190 | <AbsDimension x="0" y="2"/> |
||
191 | </Offset> |
||
192 | </Anchor> |
||
193 | </Anchors> |
||
194 | </CheckButton> |
||
195 | <!-- Thanks to bc_TrackingMenu for this slider code --> |
||
196 | <Slider name="FishingBuddyMinimapPosSlider" inherits="OptionsSliderTemplate"> |
||
197 | <Size> |
||
198 | <AbsDimension x="290" y="17"/> |
||
199 | </Size> |
||
200 | <Anchors> |
||
201 | <Anchor point="BOTTOM" relative="$parent" relativePoint="BOTTOM"> |
||
202 | <Offset> |
||
203 | <AbsDimension x="-10" y="88"/> |
||
204 | </Offset> |
||
205 | </Anchor> |
||
206 | </Anchors> |
||
207 | <Scripts> |
||
208 | <OnLoad> |
||
209 | getglobal(this:GetName().."Text"):SetText(FishingBuddy.MINIMAPBUTTONPLACEMENT); |
||
210 | getglobal(this:GetName().."High"):SetText(); |
||
211 | getglobal(this:GetName().."Low"):SetText(); |
||
212 | this:SetMinMaxValues(0, 360); |
||
213 | this:SetValueStep(1); |
||
214 | this.tooltipText = FishingBuddy.MINIMAPBUTTONPLACEMENTTOOLTIP; |
||
215 | </OnLoad> |
||
216 | <OnShow> |
||
217 | local where = FishingBuddy.GetSetting("MinimapButtonPosition"); |
||
218 | if (where) then |
||
219 | this:SetValue(where); |
||
220 | end |
||
221 | </OnShow> |
||
222 | <OnValueChanged> |
||
223 | where = this:GetValue(); |
||
224 | getglobal(this:GetName().."Text"):SetText(FishingBuddy.MINIMAPBUTTONPLACEMENT .. " - "..this:GetValue().."\194\176"); |
||
225 | FishingBuddy.SetSetting("MinimapButtonPosition", where); |
||
226 | FishingBuddyMinimapButton_MoveButton(); |
||
227 | </OnValueChanged> |
||
228 | </Scripts> |
||
229 | </Slider> |
||
230 | <CheckButton name="FishingBuddyOption_MinimapButtonVisible" inherits="FishingBuddyCheckButtonTemplate"> |
||
231 | <Anchors> |
||
232 | <Anchor point="BOTTOMLEFT" relativeTo="FishingBuddyMinimapPosSlider" relativePoint="TOPLEFT"> |
||
233 | <Offset> |
||
234 | <AbsDimension x="-4" y="16"/> |
||
235 | </Offset> |
||
236 | </Anchor> |
||
237 | </Anchors> |
||
238 | </CheckButton> |
||
239 | </Frames> |
||
240 | <Scripts> |
||
241 | <OnLoad> |
||
242 | this:RegisterEvent("VARIABLES_LOADED"); |
||
243 | </OnLoad> |
||
244 | <OnEvent> |
||
245 | FishingBuddy.OptionsFrame.Setup(); |
||
246 | </OnEvent> |
||
247 | <OnHide> |
||
248 | FishingBuddy.WatchUpdate(); |
||
249 | FishingBuddy.UpdateMinimap(); |
||
250 | </OnHide> |
||
251 | <OnMouseWheel> |
||
252 | return; |
||
253 | </OnMouseWheel> |
||
254 | </Scripts> |
||
255 | </Frame> |
||
256 | </Ui> |