vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
3 <!--
4 //////////////////////////////////////////////
5 //
6 // Nurfed_PlayerFrame.xml
7 // NurfedVersion++2004.10.14++
8 //
9 // Moves the player frame to the bottom
10 // left corner of the screen.
11 // Adds health, mana, and experience
12 // text, as well as hit point percentage
13 // and rested experience bonus to the right
14 // and below the default player frame.
15 // Adds graphical framework to accomodate
16 // the textual displays.
17 // Moves the right click player window
18 // to be viewable with the new player frame
19 // placement.
20 //
21 //////////////////////////////////////////////
22 -->
23 <!-- Script file with text display functions and functions to move player frame and right click menu -->
24 <Script file="Nurfed_PlayerFrame.lua"/>
25 <!-- Frame displays hp, mana, and exp text, and graphic overlays, and runs needed scripting -->
26 <Frame name="Nurfed_PlayerFrame" parent="PlayerFrame">
27 <Scripts>
28 <OnLoad>
29 <!-- Moving default player frame, registering for events -->
30 Nurfed_PlayerFrameOnLoad();
31 TargetFrame:ClearAllPoints();TargetFrame:SetPoint("LEFT", "PlayerFrame", "RIGHT", 100, 0);
32 </OnLoad>
33 <OnEvent>
34 <!-- Updating display values and moving target frame if pet frame is visible -->
35 Nurfed_PlayerFrameOnEvent(event);
36 </OnEvent>
37 </Scripts>
38 <Layers>
39 <Layer level="BACKGROUND">
40 <!-- Dark shading for right side graphic, under health and mana -->
41 <Texture name="Nurfed_PlayerFrameRightBackground">
42 <Size>
43 <AbsDimension x="81" y="42"/>
44 </Size>
45 <Anchors>
46 <Anchor point="TOPRIGHT" relativeTo="PlayerFrame">
47 <Offset>
48 <AbsDimension x="75" y="-23"/>
49 </Offset>
50 </Anchor>
51 </Anchors>
52 <Color r="0" g="0" b="0" a="0.5"/>
53 </Texture>
54 </Layer>
55 </Layers>
56 <Frames>
57 <Frame setAllPoints="true">
58 <Frames>
59 <Frame setAllPoints="true">
60 <Layers>
61 <Layer level="OVERLAY">
62 <!-- Overlay graphic to frame health, hp percentage, and mana text -->
63 <Texture name="Nurfed_PlayerFrameRight" file="Interface\AddOns\Nurfed_PlayerFrame\Nurfed_PlayerFrameRight">
64 <Size>
65 <AbsDimension x="128" y="128"/>
66 </Size>
67 <Anchors>
68 <Anchor point="TOPLEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
69 <Offset>
70 <AbsDimension x="220" y="-19"/>
71 </Offset>
72 </Anchor>
73 </Anchors>
74 </Texture>
75 <Texture name="Nurfed_PlayerFrameBottom" file="Interface\AddOns\Nurfed_PlayerFrame\Nurfed_PlayerFrameBottom.tga">
76 <Size>
77 <AbsDimension x="256" y="128"/>
78 </Size>
79 <Anchors>
80 <Anchor point="TOPLEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
81 <Offset>
82 <AbsDimension x="77" y="-60"/>
83 </Offset>
84 </Anchor>
85 </Anchors>
86 </Texture>
87 <!-- Player health text, 1234 / 1234 -->
88 <FontString name="Nurfed_PlayerHealthText" inherits="GameFontNormalSmall" text="Loading...">
89 <Size>
90 <AbsDimension x="100" y="10" />
91 </Size>
92 <Anchors>
93 <Anchor point="LEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
94 <Offset>
95 <AbsDimension x="215" y="-33"/>
96 </Offset>
97 </Anchor>
98 </Anchors>
99 </FontString>
100 <!-- Player health percentage, 100% -->
101 <FontString name="Nurfed_PlayerHealthPercent" inherits="GameFontNormalSmall" text="Loading...">
102 <Size>
103 <AbsDimension x="100" y="10" />
104 </Size>
105 <Anchors>
106 <Anchor point="LEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
107 <Offset>
108 <AbsDimension x="215" y="-47"/>
109 </Offset>
110 </Anchor>
111 </Anchors>
112 </FontString>
113 <!-- Player mana text, 1234 / 1234 -->
114 <FontString name="Nurfed_PlayerManaText" inherits="GameFontNormalSmall" text="Loading...">
115 <Size>
116 <AbsDimension x="100" y="10" />
117 </Size>
118 <Anchors>
119 <Anchor point="LEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
120 <Offset>
121 <AbsDimension x="215" y="-58"/>
122 </Offset>
123 </Anchor>
124 </Anchors>
125 </FontString>
126 <!-- Player experience, CurrentXP / MaxXP (+RestedXPBonus) -->
127 <FontString name="Nurfed_ExpAmount" inherits="GameFontNormalSmall" text="Loading...">
128 <Size>
129 <AbsDimension x="150" y="10" />
130 </Size>
131 <Anchors>
132 <Anchor point="CENTER" relativeTo="Nurfed_PlayerFrameBottom" relativePoint="CENTER">
133 <Offset>
134 <AbsDimension x="0" y="53"/>
135 </Offset>
136 </Anchor>
137 </Anchors>
138 <Color r="1" g="1" b="0"/>
139 </FontString>
140 </Layer>
141 </Layers>
142 </Frame>
143 <StatusBar name="Nurfed_PlayerFrameExpBar" inherits="TextStatusBar">
144 <Size>
145 <AbsDimension x="230" y="12"/>
146 </Size>
147 <Anchors>
148 <Anchor point="TOPLEFT" relativeTo="Nurfed_PlayerFrameBottom" relativePoint="TOPLEFT">
149 <Offset>
150 <AbsDimension x="0" y="-5"/>
151 </Offset>
152 </Anchor>
153 </Anchors>
154 <Scripts>
155 <OnLoad>
156 Nurfed_PlayerFrameExpBarOnLoad();
157 </OnLoad>
158 <OnEvent>
159 Nurfed_PlayerFrameExpBarOnEvent(event);
160 </OnEvent>
161 </Scripts>
162 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
163 <BarColor r="0.58" g="0.0" b="0.55"/>
164 <Frames>
165 <Frame name="Nurfed_PlayerFrameExpBarBackground">
166 <Scripts>
167 <OnLoad>
168 this:SetFrameLevel("1");
169 </OnLoad>
170 </Scripts>
171 <Layers>
172 <Layer level="BACKGROUND">
173 <!-- Dark shading for the bottom graphic, under experince -->
174 <Texture name="Nurfed_PlayerFrameLowerBackground1">
175 <Size>
176 <AbsDimension x="214" y="12"/>
177 </Size>
178 <Anchors>
179 <Anchor point="BOTTOM" relativeTo="PlayerFrame">
180 <Offset>
181 <AbsDimension x="84" y="23"/>
182 </Offset>
183 </Anchor>
184 </Anchors>
185 <Color r="0" g="0" b="0" a="0.5"/>
186 </Texture>
187 <Texture name="Nurfed_PlayerFrameLowerBackground2">
188 <Size>
189 <AbsDimension x="10" y="6"/>
190 </Size>
191 <Anchors>
192 <Anchor point="BOTTOM" relativeTo="PlayerFrame">
193 <Offset>
194 <AbsDimension x="-28" y="22"/>
195 </Offset>
196 </Anchor>
197 </Anchors>
198 <Color r="0" g="0" b="0" a="0.5"/>
199 </Texture>
200 </Layer>
201 </Layers>
202 </Frame>
203 </Frames>
204 </StatusBar>
205 </Frames>
206 </Frame>.
207 <!-- Transparent button frame to catch all clicks that would otherwise fall through to the default player button -->
208 <Button name="Nurfed_PlayerFrameClickCatcher" parent="Nurfed_PlayerFrame">
209 <Size>
210 <AbsDimension x="305" y="100"/>
211 </Size>
212 <Anchors>
213 <Anchor point="TOPLEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT"/>
214 </Anchors>
215 <Scripts>
216 <OnLoad>
217 <!-- Register for clicks -->
218 Nurfed_PlayerFrameClickCatchOnLoad();
219 </OnLoad>
220 <OnClick>
221 <!-- Handle clicks in the same way as the default window -->
222 Nurfed_PlayerFrameClickCatch(arg1);
223 </OnClick>
224 </Scripts>
225 </Button>
226 <Button name="Nurfed_PlayerFrameRestedTooltip" parent="Nurfed_PlayerFrame">
227 <Size>
228 <AbsDimension x="50" y="10"/>
229 </Size>
230 <Anchors>
231 <Anchor point="RIGHT" relativeTo="Nurfed_ExpAmount" relativePoint="RIGHT">
232 <Offset>
233 <AbsDimension x="0" y="0"/>
234 </Offset>
235 </Anchor>
236 </Anchors>
237 <Scripts>
238 <OnLoad>
239 this:SetFrameLevel("10");
240 </OnLoad>
241 <OnEnter>
242 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
243 GameTooltip:SetText("Total experience to be\ngained from rested state.", 1.0, 1.0, 1.0);
244 </OnEnter>
245 <OnLeave>
246 GameTooltip:Hide();
247 </OnLeave>
248 </Scripts>
249 </Button>
250 </Frames>
251 </Frame>
252 </Ui>