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="XPerl_Player_Pet.lua"/> |
||
4 | |||
5 | <!-- Pet Frame --> |
||
6 | |||
7 | <Frame name="XPerl_Player_Pet" clampedToScreen="true" parent="UIParent" frameStrata="LOW" hidden="true" enableMouse="true" movable="true"> |
||
8 | <Size> |
||
9 | <!-- The size of this frame determines what can be clicked for the menu and moving, hence it is the same size as the name frame. --> |
||
10 | <AbsDimension x="140" y="50"/> |
||
11 | </Size> |
||
12 | <Anchors> |
||
13 | <Anchor point="TOPLEFT"> |
||
14 | <Offset> |
||
15 | <AbsDimension x="103" y="-89"/> |
||
16 | </Offset> |
||
17 | </Anchor> |
||
18 | </Anchors> |
||
19 | |||
20 | <!-- Script Events --> |
||
21 | <Scripts> |
||
22 | <OnLoad> |
||
23 | XPerl_Player_Pet_OnLoad() |
||
24 | </OnLoad> |
||
25 | </Scripts> |
||
26 | |||
27 | <Frames> |
||
28 | <!-- Portrait --> |
||
29 | <Frame name="$parent_PortraitFrame" inherits="XPerl_Portrait_Template"> |
||
30 | <Size> |
||
31 | <AbsDimension x="54" y="56"/> |
||
32 | </Size> |
||
33 | <Anchors> |
||
34 | <Anchor point="TOPLEFT"/> |
||
35 | </Anchors> |
||
36 | </Frame> |
||
37 | |||
38 | <!-- Pet Name --> |
||
39 | <Frame name="$parent_NameFrame"> |
||
40 | <Size> |
||
41 | <AbsDimension x="80" y="24"/> |
||
42 | </Size>f |
||
43 | <Anchors> |
||
44 | <Anchor point="TOPLEFT" relativeTo="$parent_PortraitFrame" relativePoint="TOPRIGHT"> |
||
45 | <Offset> |
||
46 | <AbsDimension x="-3" y="0"/> |
||
47 | </Offset> |
||
48 | </Anchor> |
||
49 | </Anchors> |
||
50 | <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
51 | <EdgeSize> |
||
52 | <AbsValue val="16"/> |
||
53 | </EdgeSize> |
||
54 | <TileSize> |
||
55 | <AbsValue val="32"/> |
||
56 | </TileSize> |
||
57 | <BackgroundInsets> |
||
58 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
59 | </BackgroundInsets> |
||
60 | </Backdrop> |
||
61 | <Layers> |
||
62 | <Layer level="OVERLAY"> |
||
63 | <!-- Combat Icon --> |
||
64 | <Texture name="$parent_ActivityStatus" file="Interface\CharacterFrame\UI-StateIcon" hidden="true"> |
||
65 | <Size> |
||
66 | <AbsDimension x="32" y="31"/> |
||
67 | </Size> |
||
68 | <Anchors> |
||
69 | <Anchor point="RIGHT"/> |
||
70 | </Anchors> |
||
71 | <TexCoords left="0.5" right = "1.0" top="0.0" bottom="0.5"/> |
||
72 | </Texture> |
||
73 | |||
74 | <!-- Warning Icon --> |
||
75 | <Texture name="$parent_Warning" file="Interface\Minimap\Ping\ping6" alphaMode="ADD" hidden="true"> |
||
76 | <Size> |
||
77 | <AbsDimension x="32" y="31"/> |
||
78 | </Size> |
||
79 | <Anchors> |
||
80 | <Anchor point="TOP" relativePoint="TOP"> |
||
81 | <Offset> |
||
82 | <AbsDimension x="0" y="2"/> |
||
83 | </Offset> |
||
84 | </Anchor> |
||
85 | </Anchors> |
||
86 | </Texture> |
||
87 | |||
88 | <FontString name="$parent_NameBarText" inherits="GameFontNormalSmall" text="Error!" justifyH="LEFT"> |
||
89 | <Anchors> |
||
90 | <Anchor point="TOPLEFT"> |
||
91 | <Offset> |
||
92 | <AbsDimension x="6" y="0"/> |
||
93 | </Offset> |
||
94 | </Anchor> |
||
95 | <Anchor point="BOTTOMRIGHT"> |
||
96 | <Offset> |
||
97 | <AbsDimension x="0" y="1"/> |
||
98 | </Offset> |
||
99 | </Anchor> |
||
100 | </Anchors> |
||
101 | </FontString> |
||
102 | |||
103 | </Layer> |
||
104 | </Layers> |
||
105 | </Frame> |
||
106 | |||
107 | <!--Level Frame--> |
||
108 | |||
109 | <Frame name="$parent_LevelFrame"> |
||
110 | <Size> |
||
111 | <AbsDimension x="27" y="24"/> |
||
112 | </Size> |
||
113 | <Anchors> |
||
114 | <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parent_PortraitFrame"> |
||
115 | <Offset> |
||
116 | <AbsDimension x="2" y="0"/> |
||
117 | </Offset> |
||
118 | </Anchor> |
||
119 | </Anchors> |
||
120 | <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
121 | <EdgeSize> |
||
122 | <AbsValue val="16"/> |
||
123 | </EdgeSize> |
||
124 | <TileSize> |
||
125 | <AbsValue val="32"/> |
||
126 | </TileSize> |
||
127 | <BackgroundInsets> |
||
128 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
129 | </BackgroundInsets> |
||
130 | </Backdrop> |
||
131 | <Layers> |
||
132 | <Layer level="OVERLAY"> |
||
133 | <FontString name="$parentText" inherits="GameFontNormalSmall" text="Error!" setAllPoints="true"/> |
||
134 | </Layer> |
||
135 | </Layers> |
||
136 | </Frame> |
||
137 | |||
138 | <!-- Pet Happiness Frame --> |
||
139 | |||
140 | <Frame name="$parent_HappyFrame" hidden="true" topLevel="true"> --frameStrata="MEDIUM"> |
||
141 | <Size> |
||
142 | <AbsDimension x="34" y="34"/> |
||
143 | </Size> |
||
144 | <Anchors> |
||
145 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" relativeTo="$parent_PortraitFrame"> |
||
146 | <Offset> |
||
147 | <AbsDimension x="2" y="0"/> |
||
148 | </Offset> |
||
149 | </Anchor> |
||
150 | </Anchors> |
||
151 | <Backdrop bgFile="Interface\Addons\XPerl\Images\XPerl_FrameBack" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
152 | <EdgeSize> |
||
153 | <AbsValue val="16"/> |
||
154 | </EdgeSize> |
||
155 | <TileSize> |
||
156 | <AbsValue val="32"/> |
||
157 | </TileSize> |
||
158 | <BackgroundInsets> |
||
159 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
160 | </BackgroundInsets> |
||
161 | </Backdrop> |
||
162 | <Frames> |
||
163 | <Frame name="$parent_PetHappiness"> |
||
164 | <Size> |
||
165 | <AbsDimension x="27" y="27"/> |
||
166 | </Size> |
||
167 | <Anchors> |
||
168 | <Anchor point="CENTER" /> |
||
169 | </Anchors> |
||
170 | <Layers> |
||
171 | <Layer level="BACKGROUND"> |
||
172 | <Texture name="$parentTexture" file="Interface\PetPaperDollFrame\UI-PetHappiness" setAllPoints="true"> |
||
173 | <Size> |
||
174 | <AbsDimension x="27" y="27"/> |
||
175 | </Size> |
||
176 | <TexCoords left="0" right="0.1875" top="0" bottom="0.359375"/> |
||
177 | </Texture> |
||
178 | </Layer> |
||
179 | </Layers> |
||
180 | <Scripts> |
||
181 | <OnLoad> |
||
182 | this:RegisterForDrag("LeftButton"); |
||
183 | </OnLoad> |
||
184 | <OnDragStart> |
||
185 | if (XPerlLocked == 0) then |
||
186 | XPerl_Player_Pet:StartMoving() |
||
187 | end |
||
188 | </OnDragStart> |
||
189 | <OnDragStop> |
||
190 | XPerl_Player_Pet:StopMovingOrSizing() |
||
191 | </OnDragStop> |
||
192 | <OnEnter> |
||
193 | if ( this.tooltip ) then |
||
194 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
195 | GameTooltip:SetText(this.tooltip); |
||
196 | if ( this.tooltipDamage ) then |
||
197 | GameTooltip:AddLine(this.tooltipDamage, "", 1, 1, 1); |
||
198 | end |
||
199 | if ( this.tooltipLoyalty ) then |
||
200 | GameTooltip:AddLine(this.tooltipLoyalty, "", 1, 1, 1); |
||
201 | end |
||
202 | GameTooltip:Show(); |
||
203 | end |
||
204 | </OnEnter> |
||
205 | <OnLeave> |
||
206 | XPerl_PlayerTipHide() |
||
207 | </OnLeave> |
||
208 | </Scripts> |
||
209 | </Frame> |
||
210 | </Frames> |
||
211 | </Frame> |
||
212 | |||
213 | <!-- Pet Stats --> |
||
214 | <Frame name="$parent_StatsFrame" inherits="XPerl_StatsXP_Template"> |
||
215 | <Size> |
||
216 | <AbsDimension x="80" y="34"/> |
||
217 | </Size> |
||
218 | <Anchors> |
||
219 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_NameFrame"> |
||
220 | <Offset> |
||
221 | <AbsDimension x="0" y="2"/> |
||
222 | </Offset> |
||
223 | </Anchor> |
||
224 | </Anchors> |
||
225 | </Frame> |
||
226 | |||
227 | <!-- Buffs Frame --> |
||
228 | <Frame name="$parent_BuffFrame"> |
||
229 | <Size> |
||
230 | <AbsDimension x="100" y="34"/> |
||
231 | </Size> |
||
232 | <Anchors> |
||
233 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_PortraitFrame"> |
||
234 | <Offset> |
||
235 | <AbsDimension x="3" y="0"/> |
||
236 | </Offset> |
||
237 | </Anchor> |
||
238 | </Anchors> |
||
239 | </Frame> |
||
240 | |||
241 | <Button name="$parent_CastClickOverlay" topLevel="true"> --frameStrata="MEDIUM"> |
||
242 | <HighlightTexture file="Interface\Addons\XPerl\Images\XPerl_Highlight" alphaMode="ADD"> |
||
243 | <TexCoords left="0.25" right="0.75" top="0" bottom="0.5"/> |
||
244 | </HighlightTexture> |
||
245 | <Anchors> |
||
246 | <Anchor point="TOPLEFT" relativeTo="$parent_PortraitFrame"/> |
||
247 | <Anchor point="BOTTOMRIGHT" relativeTo="$parent_StatsFrame"/> |
||
248 | </Anchors> |
||
249 | <Scripts> |
||
250 | <OnLoad> |
||
251 | this:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up') |
||
252 | this:RegisterForDrag("LeftButton") |
||
253 | </OnLoad> |
||
254 | <OnClick> |
||
255 | XPerl_Player_Pet_OnClick(arg1) |
||
256 | </OnClick> |
||
257 | <OnDragStart> |
||
258 | if (XPerlLocked == 0) then |
||
259 | XPerl_Player_Pet:StartMoving() |
||
260 | end |
||
261 | </OnDragStart> |
||
262 | <OnDragStop> |
||
263 | XPerl_Player_Pet:StopMovingOrSizing() |
||
264 | </OnDragStop> |
||
265 | <OnEnter> |
||
266 | GameTooltip_SetDefaultAnchor(GameTooltip, this) |
||
267 | GameTooltip:SetUnit("pet") |
||
268 | </OnEnter> |
||
269 | <OnLeave> |
||
270 | XPerl_PlayerTipHide() |
||
271 | </OnLeave> |
||
272 | </Scripts> |
||
273 | </Button> |
||
274 | </Frames> |
||
275 | </Frame> |
||
276 | </Ui> |