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="PopoutOptions.lua"/> |
||
4 | |||
5 | <Frame name="YatlasPopoutOptions" hidden="true" enableMouse="true"> |
||
6 | <Size> |
||
7 | <AbsDimension x="256" y="532"/> |
||
8 | </Size> |
||
9 | <Frames> |
||
10 | <CheckButton name="YatlasButtonEnable" inherits="UICheckButtonTemplate"> |
||
11 | <Size> |
||
12 | <AbsDimension x="24" y="24"/> |
||
13 | </Size> |
||
14 | <Anchors> |
||
15 | <Anchor point="TOPLEFT"> |
||
16 | <Offset> |
||
17 | <AbsDimension x="24" y="-70" /> |
||
18 | </Offset> |
||
19 | </Anchor> |
||
20 | </Anchors> |
||
21 | <NormalText name="$parentText2" inherits="GameFontHighlight" justifyH="LEFT" text="YATLAS_OPTIONS_ENABLEBUTTON"> |
||
22 | <Size> |
||
23 | <AbsDimension x="275" y="16"/> |
||
24 | </Size> |
||
25 | <Anchors> |
||
26 | <Anchor point="LEFT"> |
||
27 | <Offset> |
||
28 | <AbsDimension x="24" y="0"/> |
||
29 | </Offset> |
||
30 | </Anchor> |
||
31 | </Anchors> |
||
32 | </NormalText> |
||
33 | <Scripts> |
||
34 | <OnLoad> |
||
35 | this:SetFrameLevel(this:GetFrameLevel() + 4); |
||
36 | this:RegisterEvent("VARIABLES_LOADED"); |
||
37 | </OnLoad> |
||
38 | <OnEvent> |
||
39 | this:SetChecked(YatlasOptions.ShowButton); |
||
40 | </OnEvent> |
||
41 | <OnClick> |
||
42 | if (this:GetChecked()) then |
||
43 | YatlasOptions.ShowButton = true; |
||
44 | else |
||
45 | YatlasOptions.ShowButton = false; |
||
46 | end |
||
47 | YatlasButton_Update(YatlasFrame) |
||
48 | </OnClick> |
||
49 | </Scripts> |
||
50 | </CheckButton> |
||
51 | <Slider name="YatlasButtonSlider" inherits="OptionsSliderTemplate"> |
||
52 | <Size> |
||
53 | <AbsDimension x="180" y="16"/> |
||
54 | </Size> |
||
55 | <Anchors> |
||
56 | <Anchor point="TOPLEFT"> |
||
57 | <Offset> |
||
58 | <AbsDimension x="32" y="-120" /> |
||
59 | </Offset> |
||
60 | </Anchor> |
||
61 | </Anchors> |
||
62 | <Scripts> |
||
63 | <OnLoad> |
||
64 | this:SetFrameLevel(this:GetFrameLevel() + 4); |
||
65 | getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_BUTTONPOS); |
||
66 | getglobal(this:GetName().."High"):SetText(); |
||
67 | getglobal(this:GetName().."Low"):SetText(); |
||
68 | YatlasButtonSlider:SetMinMaxValues(0,360); |
||
69 | YatlasButtonSlider:SetValueStep(1); |
||
70 | </OnLoad> |
||
71 | <OnValueChanged> |
||
72 | YatlasButton_SetPosition(YatlasButtonSlider:GetValue()) |
||
73 | if(this:IsVisible()) then |
||
74 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
75 | GameTooltip:SetText(format(YATLAS_OPTIONS_BUTTONPOS_TIP, |
||
76 | YatlasButtonSlider:GetValue())); |
||
77 | end |
||
78 | </OnValueChanged> |
||
79 | <OnEnter> |
||
80 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
81 | GameTooltip:SetText(format(YATLAS_OPTIONS_BUTTONPOS_TIP, |
||
82 | YatlasButtonSlider:GetValue())); |
||
83 | </OnEnter> |
||
84 | <OnLeave> |
||
85 | GameTooltip:Hide(); |
||
86 | </OnLeave> |
||
87 | </Scripts> |
||
88 | </Slider> |
||
89 | <Slider name="YatlasAlphaSlider" inherits="OptionsSliderTemplate"> |
||
90 | <Size> |
||
91 | <AbsDimension x="180" y="16"/> |
||
92 | </Size> |
||
93 | <Anchors> |
||
94 | <Anchor point="TOPLEFT"> |
||
95 | <Offset> |
||
96 | <AbsDimension x="32" y="-180" /> |
||
97 | </Offset> |
||
98 | </Anchor> |
||
99 | </Anchors> |
||
100 | <Scripts> |
||
101 | <OnLoad> |
||
102 | this:SetFrameLevel(this:GetFrameLevel() + 4); |
||
103 | getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_ALPHA); |
||
104 | getglobal(this:GetName().."High"):SetText(); |
||
105 | getglobal(this:GetName().."Low"):SetText(); |
||
106 | YatlasAlphaSlider:SetMinMaxValues(.1,1); |
||
107 | YatlasAlphaSlider:SetValueStep(.05); |
||
108 | </OnLoad> |
||
109 | <OnValueChanged> |
||
110 | YatlasFrame:SetAlpha(YatlasAlphaSlider:GetValue()); |
||
111 | YatlasOptions.Alpha = YatlasAlphaSlider:GetValue(); |
||
112 | </OnValueChanged> |
||
113 | </Scripts> |
||
114 | </Slider> |
||
115 | <Slider name="YatlasIconSizeSlider" inherits="OptionsSliderTemplate"> |
||
116 | <Size> |
||
117 | <AbsDimension x="180" y="16"/> |
||
118 | </Size> |
||
119 | <Anchors> |
||
120 | <Anchor point="TOPLEFT"> |
||
121 | <Offset> |
||
122 | <AbsDimension x="32" y="-240" /> |
||
123 | </Offset> |
||
124 | </Anchor> |
||
125 | </Anchors> |
||
126 | <Scripts> |
||
127 | <OnLoad> |
||
128 | this:SetFrameLevel(this:GetFrameLevel() + 4); |
||
129 | getglobal(this:GetName().."Text"):SetText(YATLAS_OPTIONS_ICONSIZE); |
||
130 | getglobal(this:GetName().."High"):SetText(); |
||
131 | getglobal(this:GetName().."Low"):SetText(); |
||
132 | YatlasIconSizeSlider:SetMinMaxValues(8,36); |
||
133 | YatlasIconSizeSlider:SetValueStep(1); |
||
134 | </OnLoad> |
||
135 | <OnValueChanged> |
||
136 | YatlasOptions.Frames.YatlasFrame.IconSize = YatlasIconSizeSlider:GetValue(); |
||
137 | YAOverlay_Update(YatlasFrame); |
||
138 | </OnValueChanged> |
||
139 | </Scripts> |
||
140 | </Slider> |
||
141 | <CheckButton name="YatlasCoordBEnable" inherits="UICheckButtonTemplate"> |
||
142 | <Size> |
||
143 | <AbsDimension x="24" y="24"/> |
||
144 | </Size> |
||
145 | <Anchors> |
||
146 | <Anchor point="TOPLEFT"> |
||
147 | <Offset> |
||
148 | <AbsDimension x="24" y="-300" /> |
||
149 | </Offset> |
||
150 | </Anchor> |
||
151 | </Anchors> |
||
152 | <NormalText name="$parentText2" inherits="GameFontHighlight" justifyH="LEFT" text="YATLAS_OPTIONS_ENABLECOORD"> |
||
153 | <Size> |
||
154 | <AbsDimension x="275" y="16"/> |
||
155 | </Size> |
||
156 | <Anchors> |
||
157 | <Anchor point="LEFT"> |
||
158 | <Offset> |
||
159 | <AbsDimension x="24" y="0"/> |
||
160 | </Offset> |
||
161 | </Anchor> |
||
162 | </Anchors> |
||
163 | </NormalText> |
||
164 | <Scripts> |
||
165 | <OnLoad> |
||
166 | this:SetFrameLevel(this:GetFrameLevel() + 4); |
||
167 | this:RegisterEvent("VARIABLES_LOADED"); |
||
168 | </OnLoad> |
||
169 | <OnEvent> |
||
170 | this:SetChecked(YatlasOptions.ShowCursorCoords); |
||
171 | </OnEvent> |
||
172 | <OnClick> |
||
173 | if (this:GetChecked()) then |
||
174 | YatlasOptions.ShowCursorCoords = true; |
||
175 | else |
||
176 | YatlasOptions.ShowCursorCoords = false; |
||
177 | YatlasPopoutDataCoordText:SetText(""); |
||
178 | end |
||
179 | </OnClick> |
||
180 | </Scripts> |
||
181 | </CheckButton> |
||
182 | |||
183 | </Frames> |
||
184 | <Scripts> |
||
185 | <OnLoad> |
||
186 | -- FIXME...this isn't right |
||
187 | this:SetPoint("TOPLEFT","YatlasPopoutFrameHolder","TOPLEFT",0,-4); |
||
188 | this:SetFrameStrata("DIALOG"); |
||
189 | this:SetParent(YatlasPopoutFrameHolder); |
||
190 | </OnLoad> |
||
191 | </Scripts> |
||
192 | </Frame> |
||
193 | </Ui> |