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/"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
4 <!--
5 Version: 3.8.0 (Kangaroo)
6 Revision: $Id: TinyMoneyFrame.xml 632 2005-12-18 14:36:34Z norganna $
7  
8 License:
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13  
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18  
19 You should have received a copy of the GNU General Public License
20 along with this program(see GLP.txt); if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 -->
23 <Script file="TinyMoneyFrame.lua"/>
24  
25 <Frame name="TinyMoneyFrameTemplate" virtual="true">
26 <Size>
27 <AbsDimension x="128" y="10"/>
28 </Size>
29 <Frames>
30 <Button name="$parentCopperButton">
31 <Size>
32 <AbsDimension x="14" y="10"/>
33 </Size>
34 <Anchors>
35 <Anchor point="RIGHT">
36 <Offset>
37 <AbsDimension x="-10" y="0"/>
38 </Offset>
39 </Anchor>
40 </Anchors>
41 <Scripts>
42 <OnClick>
43 local parent = this:GetParent();
44 OpenCoinPickupFrame(1, MoneyTypeInfo[parent.moneyType].UpdateFunc(), parent);
45 parent.hasPickup = 1;
46 </OnClick>
47 </Scripts>
48 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
49 <Size>
50 <AbsDimension x="10" y="10"/>
51 </Size>
52 <Anchors>
53 <Anchor point="RIGHT"/>
54 </Anchors>
55 <TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
56 </NormalTexture>
57 <NormalText name="$parentText" inherits="GameFontNormalSmall" justifyH="RIGHT">
58 <Anchors>
59 <Anchor point="RIGHT">
60 <Offset>
61 <AbsDimension x="-12" y="0"/>
62 </Offset>
63 </Anchor>
64 </Anchors>
65 </NormalText>
66 <PushedTextOffset>
67 <AbsDimension x="0" y="0"/>
68 </PushedTextOffset>
69 </Button>
70 <Button name="$parentSilverButton">
71 <Size>
72 <AbsDimension x="14" y="10"/>
73 </Size>
74 <Anchors>
75 <Anchor point="RIGHT" relativeTo="$parentCopperButton" relativePoint="LEFT">
76 <Offset>
77 <AbsDimension x="-6" y="0"/>
78 </Offset>
79 </Anchor>
80 </Anchors>
81 <Scripts>
82 <OnClick>
83 local parent = this:GetParent();
84 OpenCoinPickupFrame(COPPER_PER_SILVER, MoneyTypeInfo[parent.moneyType].UpdateFunc(), parent);
85 parent.hasPickup = 1;
86 </OnClick>
87 </Scripts>
88 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
89 <Size>
90 <AbsDimension x="10" y="10"/>
91 </Size>
92 <Anchors>
93 <Anchor point="RIGHT"/>
94 </Anchors>
95 <TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
96 </NormalTexture>
97 <NormalText name="$parentText" inherits="GameFontNormalSmall" justifyH="RIGHT">
98 <Anchors>
99 <Anchor point="RIGHT">
100 <Offset>
101 <AbsDimension x="-12" y="0"/>
102 </Offset>
103 </Anchor>
104 </Anchors>
105 </NormalText>
106 <PushedTextOffset>
107 <AbsDimension x="0" y="0"/>
108 </PushedTextOffset>
109 </Button>
110 <Button name="$parentGoldButton">
111 <Size>
112 <AbsDimension x="14" y="10"/>
113 </Size>
114 <Anchors>
115 <Anchor point="RIGHT" relativeTo="$parentSilverButton" relativePoint="LEFT">
116 <Offset>
117 <AbsDimension x="-6" y="0"/>
118 </Offset>
119 </Anchor>
120 </Anchors>
121 <Scripts>
122 <OnClick>
123 local parent = this:GetParent();
124 OpenCoinPickupFrame(COPPER_PER_GOLD, MoneyTypeInfo[parent.moneyType].UpdateFunc(), parent);
125 parent.hasPickup = 1;
126 </OnClick>
127 </Scripts>
128 <NormalTexture file="Interface\MoneyFrame\UI-MoneyIcons">
129 <Size>
130 <AbsDimension x="10" y="10"/>
131 </Size>
132 <Anchors>
133 <Anchor point="RIGHT"/>
134 </Anchors>
135 <TexCoords left="0" right="0.25" top="0" bottom="1"/>
136 </NormalTexture>
137 <NormalText name="$parentText" inherits="GameFontNormalSmall" justifyH="LEFT">
138 <Anchors>
139 <Anchor point="LEFT"/>
140 </Anchors>
141 </NormalText>
142 <PushedTextOffset>
143 <AbsDimension x="0" y="0"/>
144 </PushedTextOffset>
145 </Button>
146 </Frames>
147 <Scripts>
148 <OnLoad>
149 SmallMoneyFrame_OnLoad();
150 </OnLoad>
151 <OnEvent>
152 MoneyFrame_OnEvent();
153 </OnEvent>
154 <OnShow>
155 TinyMoneyFrame_UpdateMoney();
156 </OnShow>
157 <OnHide>
158 if ( this.hasPickup == 1 ) then
159 CoinPickupFrame:Hide();
160 this.hasPickup = 0;
161 end
162 </OnHide>
163 </Scripts>
164 </Frame>
165 </Ui>