vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <?xml-stylesheet type="text/xsl" href="/css/wowui.xsl"?> |
2 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
||
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
4 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> |
||
5 | |||
6 | <Script file="localisation.lua"/> |
||
7 | <Script file="LevelRange.lua"/> |
||
8 | |||
9 | <!-- Hook OnLoad and OnEvent --> |
||
10 | <Frame name="LevelRangeFrame" parent="UIParent" hidden="true"> |
||
11 | <Scripts> |
||
12 | <OnLoad> |
||
13 | LevelRange_OnLoad(); |
||
14 | </OnLoad> |
||
15 | <OnEvent> |
||
16 | LevelRange_OnEvent(event); |
||
17 | </OnEvent> |
||
18 | </Scripts> |
||
19 | </Frame> |
||
20 | |||
21 | <!-- Create a new tooltip for this AddOn, so the original WorldMap tip still works --> |
||
22 | <GameTooltip name="LevelRangeTooltip" parent="WorldMapFrame" hidden="true" |
||
23 | frameStrata="TOOLTIP" inherits="GameTooltipTemplate"> |
||
24 | <Scripts> |
||
25 | <OnLoad> |
||
26 | this:SetBackdropBorderColor( |
||
27 | TOOLTIP_DEFAULT_COLOR.r, |
||
28 | TOOLTIP_DEFAULT_COLOR.g, |
||
29 | TOOLTIP_DEFAULT_COLOR.b, |
||
30 | |||
31 | ); |
||
32 | this:SetBackdropColor( |
||
33 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, |
||
34 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, |
||
35 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, |
||
36 | |||
37 | ); |
||
38 | </OnLoad> |
||
39 | </Scripts> |
||
40 | </GameTooltip> |
||
41 | <!-- Configuration checkbox template --> |
||
42 | <CheckButton name="LevelRangeOptionsCheckButtonTemplate" |
||
43 | inherits="UICheckButtonTemplate" virtual="true"> |
||
44 | <Scripts> |
||
45 | <OnClick> |
||
46 | if (this:GetChecked()) then |
||
47 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
48 | else |
||
49 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
50 | end |
||
51 | LevelRangeOptionsCheckButton_OnClick(); |
||
52 | </OnClick> |
||
53 | <OnEnter> |
||
54 | if (this.tooltipText) then |
||
55 | GameTooltip_AddNewbieTip(this.tooltipText, 1, 1, 1); |
||
56 | end |
||
57 | </OnEnter> |
||
58 | <OnLeave> |
||
59 | GameTooltip:Hide(); |
||
60 | </OnLeave> |
||
61 | </Scripts> |
||
62 | </CheckButton> |
||
63 | |||
64 | <!-- Configuration window --> |
||
65 | <Frame name="LevelRangeOptionsFrame" toplevel="true" frameStrata="DIALOG" |
||
66 | movable="true" enableMouse="true" hidden="true" parent="UIParent" |
||
67 | enableKeyboard="true"> |
||
68 | <Size> |
||
69 | <AbsDimension x="350" y="195"/> |
||
70 | </Size> |
||
71 | <Anchors> |
||
72 | <Anchor point="CENTER"/> |
||
73 | </Anchors> |
||
74 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" |
||
75 | edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
76 | <BackgroundInsets> |
||
77 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
78 | </BackgroundInsets> |
||
79 | <TileSize> |
||
80 | <AbsValue val="32"/> |
||
81 | </TileSize> |
||
82 | <EdgeSize> |
||
83 | <AbsValue val="32"/> |
||
84 | </EdgeSize> |
||
85 | </Backdrop> |
||
86 | <Layers> |
||
87 | <Layer level="ARTWORK"> |
||
88 | <Texture name="LevelRangeOptionsFrameHeader" |
||
89 | file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
90 | <Size> |
||
91 | <AbsDimension x="300" y="64"/> |
||
92 | </Size> |
||
93 | <Anchors> |
||
94 | <Anchor point="TOP"> |
||
95 | <Offset> |
||
96 | <AbsDimension x="0" y="12"/> |
||
97 | </Offset> |
||
98 | </Anchor> |
||
99 | </Anchors> |
||
100 | </Texture> |
||
101 | <FontString inherits="GameFontNormal" name="LevelRangeOptionsFrameTitle" |
||
102 | text="LevelRange Options"> |
||
103 | <Anchors> |
||
104 | <Anchor point="TOP" relativeTo="LevelRangeOptionsFrameHeader"> |
||
105 | <Offset> |
||
106 | <AbsDimension x="0" y="-14"/> |
||
107 | </Offset> |
||
108 | </Anchor> |
||
109 | </Anchors> |
||
110 | </FontString> |
||
111 | </Layer> |
||
112 | </Layers> |
||
113 | <Frames> |
||
114 | |||
115 | <!-- Option #1; row 1, column 1 --> |
||
116 | <CheckButton name="$parentOpt1" |
||
117 | inherits="LevelRangeOptionsCheckButtonTemplate"> |
||
118 | <Anchors> |
||
119 | <Anchor point="TOPLEFT"> |
||
120 | <Offset> |
||
121 | <AbsDimension x="25" y="-25"/> |
||
122 | </Offset> |
||
123 | </Anchor> |
||
124 | </Anchors> |
||
125 | </CheckButton> |
||
126 | |||
127 | <!-- Option #2; row 2, column 1 --> |
||
128 | <CheckButton name="$parentOpt2" |
||
129 | inherits="LevelRangeOptionsCheckButtonTemplate"> |
||
130 | <Anchors> |
||
131 | <Anchor point="TOPLEFT"> |
||
132 | <Offset> |
||
133 | <AbsDimension x="45" y="-55"/> |
||
134 | </Offset> |
||
135 | </Anchor> |
||
136 | </Anchors> |
||
137 | </CheckButton> |
||
138 | |||
139 | <!-- Option #3; row 3, column 1 --> |
||
140 | <CheckButton name="$parentOpt3" |
||
141 | inherits="LevelRangeOptionsCheckButtonTemplate"> |
||
142 | <Anchors> |
||
143 | <Anchor point="TOPLEFT"> |
||
144 | <Offset> |
||
145 | <AbsDimension x="45" y="-85"/> |
||
146 | </Offset> |
||
147 | </Anchor> |
||
148 | </Anchors> |
||
149 | </CheckButton> |
||
150 | |||
151 | <!-- Option #4; row 4, column 1 --> |
||
152 | <CheckButton name="$parentOpt4" |
||
153 | inherits="LevelRangeOptionsCheckButtonTemplate"> |
||
154 | <Anchors> |
||
155 | <Anchor point="TOPLEFT"> |
||
156 | <Offset> |
||
157 | <AbsDimension x="45" y="-115"/> |
||
158 | </Offset> |
||
159 | </Anchor> |
||
160 | </Anchors> |
||
161 | </CheckButton> |
||
162 | |||
163 | <Button name="LevelRangeOptionsFrameClose" |
||
164 | inherits="OptionsButtonTemplate" text="Close"> |
||
165 | <Anchors> |
||
166 | <Anchor point="BOTTOM"> |
||
167 | <Offset> |
||
168 | <AbsDimension x="0" y="16"/> |
||
169 | </Offset> |
||
170 | </Anchor> |
||
171 | </Anchors> |
||
172 | <Scripts> |
||
173 | <OnClick> |
||
174 | PlaySound("gsTitleOptionOK"); |
||
175 | HideUIPanel(LevelRangeOptionsFrame); |
||
176 | </OnClick> |
||
177 | </Scripts> |
||
178 | </Button> |
||
179 | </Frames> |
||
180 | <Scripts> |
||
181 | <OnShow> |
||
182 | LevelRangeOptionsFrame_OnShow(); |
||
183 | </OnShow> |
||
184 | <OnHide> |
||
185 | LevelRangeOptionsFrame_OnHide(); |
||
186 | </OnHide> |
||
187 | </Scripts> |
||
188 | </Frame> |
||
189 | </Ui> |