vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--
2 path: /PetFeeder/
3 filename: PetFeederFrame.xml
4 author:
5 created: Sat, 17 Jan 2005 16:09:00 -0800
6 updated: Sun, 30 Jan 2005 15:16:00 -0800
7  
8 -->
9 <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/
10 ..\FrameXML\UI.xsd">
11 <Script file="PetFeederFrame.lua"/>
12  
13 <GameTooltip name="PetFeederTooltip" inherits="GameTooltipTemplate">
14 <Scripts>
15 <Onload>
16 this:SetOwner(this, "ANCHOR_NONE");
17 </Onload>
18 </Scripts>
19 </GameTooltip>
20 <GameTooltip name="PetFeederDisplayTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
21  
22 <Button name="PetFeederFrameTabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
23 <Scripts>
24 <OnLoad>
25 this:SetFrameLevel(this:GetFrameLevel() + 4);
26 </OnLoad>
27 <OnClick>
28 PanelTemplates_Tab_OnClick(PetFeederFrame);
29 PetFeederTab_OnClick();
30 </OnClick>
31 <OnShow>
32 PanelTemplates_TabResize(10);
33 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 30);
34 </OnShow>
35 </Scripts>
36 </Button>
37  
38 <CheckButton name="PetFeeder_Template_CheckBt" enableMouse="true" virtual="true">
39 <Size>
40 <AbsDimension x="24" y="24"/>
41 </Size>
42 <!--
43 <Anchors>
44 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"/>
45 </Anchors>
46 -->
47 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
48 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
49 <DisabledTexture file="Interface\Buttons\UI-CheckBox-Up"/>
50 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Up"/>
51 <NormalText inherits="GameFontNormalSmall" justifyH="LEFT">
52 <Anchors>
53 <Anchor point="LEFT" relativePoint="RIGHT"/>
54 </Anchors>
55 </NormalText>
56 <HighlightText inherits="GameFontHighlightSmall" justifyH="LEFT">
57 <Anchors>
58 <Anchor point="LEFT" relativePoint="RIGHT"/>
59 </Anchors>
60 </HighlightText>
61 <DisabledText inherits="GameFontDisableSmall" justifyH="LEFT">
62 <Anchors>
63 <Anchor point="LEFT" relativePoint="RIGHT"/>
64 </Anchors>
65 </DisabledText>
66 <PushedTextOffset>
67 <AbsDimension x="2" y="-2"/>
68 </PushedTextOffset>
69 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
70 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
71 <Scripts>
72 <OnEnter>
73 if ( this.tooltipText ) then
74 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
75 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
76 end
77 if ( this.tooltipRequirement ) then
78 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
79 GameTooltip:Show();
80 end
81 </OnEnter>
82 <OnLeave>
83 GameTooltip:Hide();
84 </OnLeave>
85 <OnClick>
86 getglobal(this:GetName().."_Update")(this:GetChecked());
87 </OnClick>
88 </Scripts>
89 </CheckButton>
90  
91 <!-- Frame to handle all core events -->
92 <Frame name="PetFeederLoadingFrame">
93 <Scripts>
94 <OnLoad>
95 PetFeederLoadingFrame_OnLoad();
96 </OnLoad>
97 <OnEvent>
98 PetFeederLoadingFrame_OnEvent(event,arg1,arg2);
99 </OnEvent>
100 <OnUpdate>
101 PetFeederLoadingFrame_OnUpdate();
102 </OnUpdate>
103 </Scripts>
104 </Frame>
105  
106 <Frame name="PetFeederFrame" toplevel="true" movable="true" parent="UIParent" hidden="true">
107 <Size>
108 <AbsDimension x="384" y="512"/>
109 </Size>
110 <Anchors>
111 <Anchor point="TOPLEFT">
112 <Offset>
113 <AbsDimension x="0" y="-104"/>
114 </Offset>
115 </Anchor>
116 </Anchors>
117 <HitRectInsets>
118 <AbsInset left="0" right="30" top="0" bottom="45"/>
119 </HitRectInsets>
120 <Layers>
121 <Layer level="BACKGROUND">
122 <Texture file="Interface\QuestFrame\UI-QuestLog-BookIcon">
123 <Size>
124 <AbsDimension x="64" y="64"/>
125 </Size>
126 <Anchors>
127 <Anchor point="TOPLEFT">
128 <Offset>
129 <AbsDimension x="6" y="-4"/>
130 </Offset>
131 </Anchor>
132 </Anchors>
133 </Texture>
134 </Layer>
135 <Layer level="ARTWORK">
136 <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
137 <Size>
138 <AbsDimension x="256" y="256"/>
139 </Size>
140 <Anchors>
141 <Anchor point="TOPLEFT">
142 <Offset>
143 <AbsDimension x="2" y="-1"/>
144 </Offset>
145 </Anchor>
146 </Anchors>
147 </Texture>
148 <Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
149 <Size>
150 <AbsDimension x="128" y="256"/>
151 </Size>
152 <Anchors>
153 <Anchor point="TOPRIGHT">
154 <Offset>
155 <AbsDimension x="2" y="-1"/>
156 </Offset>
157 </Anchor>
158 </Anchors>
159 </Texture>
160 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
161 <Size>
162 <AbsDimension x="256" y="256"/>
163 </Size>
164 <Anchors>
165 <Anchor point="BOTTOMLEFT">
166 <Offset>
167 <AbsDimension x="2" y="-1"/>
168 </Offset>
169 </Anchor>
170 </Anchors>
171 </Texture>
172 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
173 <Size>
174 <AbsDimension x="128" y="256"/>
175 </Size>
176 <Anchors>
177 <Anchor point="BOTTOMRIGHT">
178 <Offset>
179 <AbsDimension x="2" y="-1"/>
180 </Offset>
181 </Anchor>
182 </Anchors>
183 </Texture>
184 <FontString name="PetFeederTitleText" inherits="GameFontHighlight" text="PETFEEDER_TITLE">
185 <Size>
186 <AbsDimension x="300" y="14"/>
187 </Size>
188 <Anchors>
189 <Anchor point="TOP" relativeTo="PetFeederFrame" relativePoint="TOP">
190 <Offset>
191 <AbsDimension x="0" y="-17"/>
192 </Offset>
193 </Anchor>
194 </Anchors>
195 </FontString>
196 </Layer>
197 </Layers>
198 <Frames>
199 <Button name="PetFeederCloseButton" inherits="UIPanelCloseButton">
200 <Anchors>
201 <Anchor point="CENTER" relativeTo="PetFeederFrame" relativePoint="TOPRIGHT">
202 <Offset>
203 <AbsDimension x="-44" y="-26"/>
204 </Offset>
205 </Anchor>
206 </Anchors>
207 <Scripts>
208 <OnLoad>
209 this:SetFrameLevel(this:GetFrameLevel() + 4);
210 </OnLoad>
211 </Scripts>
212 </Button>
213 <Button name="PetFeederFrameTab1" inherits="PetFeederFrameTabButtonTemplate" id="1" text="PETFEEDER_TAB_LIST">
214 <Anchors>
215 <Anchor point="CENTER" relativePoint="BOTTOMLEFT">
216 <Offset>
217 <AbsDimension x="65" y="61"/>
218 </Offset>
219 </Anchor>
220 </Anchors>
221 </Button>
222 <Button name="PetFeederFrameTab2" inherits="PetFeederFrameTabButtonTemplate" id="2" text="PETFEEDER_TAB_APPROVED">
223 <Anchors>
224 <Anchor point="LEFT" relativeTo="PetFeederFrameTab1" relativePoint="RIGHT">
225 <Offset>
226 <AbsDimension x="-15" y="0"/>
227 </Offset>
228 </Anchor>
229 </Anchors>
230 </Button>
231 <Button name="PetFeederFrameTab3" inherits="PetFeederFrameTabButtonTemplate" id="3" text="PETFEEDER_TAB_UNLIKED">
232 <Anchors>
233 <Anchor point="LEFT" relativeTo="PetFeederFrameTab2" relativePoint="RIGHT">
234 <Offset>
235 <AbsDimension x="-15" y="0"/>
236 </Offset>
237 </Anchor>
238 </Anchors>
239 </Button>
240  
241 </Frames>
242 <Scripts>
243 <OnLoad>
244 PFChatParse_OnLoad();
245 PetFeederFrame_OnLoad();
246 </OnLoad>
247 <OnEvent>
248 PFChatParse_OnEvent(event);
249 PetFeederFrame_OnEvent(event,arg1);
250 </OnEvent>
251 <OnShow>
252 PetFeederFrame_OnShow();
253 </OnShow>
254 <OnHide>
255 PetFeederFrame_OnHide();
256 </OnHide>
257 </Scripts>
258 </Frame>
259 </Ui>