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 <Include file="Bag.xml"/>
6 <Include file="Item.xml"/>
7  
8 <Script file="Frame.lua"/>
9  
10 <!-- An inventory frame template -->
11 <Button name="BagnonFrameTemplate" frameStrata="HIGH" movable="true" enableMouse="true" parent="UIParent" hidden="true" virtual="true">
12  
13 <Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border">
14 <BackgroundInsets>
15 <AbsInset left="4" right="4" top="4" bottom="4"/>
16 </BackgroundInsets>
17 <TileSize>
18 <AbsValue val="16"/>
19 </TileSize>
20 <EdgeSize>
21 <AbsValue val="16"/>
22 </EdgeSize>
23 </Backdrop>
24  
25 <Frames>
26 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
27 <Anchors>
28 <Anchor point="TOPRIGHT">
29 <Offset>
30 <AbsDimension x="-2" y="-2"/>
31 </Offset>
32 </Anchor>
33 </Anchors>
34 </Button>
35  
36 <Button name="$parentTitle">
37 <Anchors>
38 <Anchor point="TOPLEFT">
39 <Offset>
40 <AbsDimension x="10" y="-2"/>
41 </Offset>
42 </Anchor>
43 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCloseButton" relativePoint="BOTTOMLEFT">
44 <Offset>
45 <AbsDimension x="-2" y="4"/>
46 </Offset>
47 </Anchor>
48 </Anchors>
49  
50 <ButtonText setAllPoints="true"/>
51 <NormalFont font="GameFontNormal" justifyH="LEFT"/>
52 <HighlightFont font="GameFontHighlight" justifyH="LEFT"/>
53  
54 <Scripts>
55 <OnLoad>
56 this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
57 </OnLoad>
58 <OnDoubleClick>
59 BagnonFrame_OnDoubleClick(this:GetParent());
60 </OnDoubleClick>
61 <OnDragStart>
62 BagnonFrame_StartMoving(this:GetParent());
63 </OnDragStart>
64 <OnMouseDown>
65 BagnonFrame_StartMoving(this:GetParent());
66 </OnMouseDown>
67 <OnMouseUp>
68 BagnonFrame_OnClick(this:GetParent(), arg1);
69 BagnonFrame_StopMoving(this:GetParent());
70 </OnMouseUp>
71 <OnEnter>
72 BagnonFrame_OnEnter();
73 </OnEnter>
74 <OnLeave>
75 BagnonFrame_OnLeave();
76 </OnLeave>
77 </Scripts>
78 </Button>
79  
80 <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false">
81 <Anchors>
82 <Anchor point="BOTTOMRIGHT">
83 <Offset>
84 <AbsDimension x="0" y="10"/>
85 </Offset>
86 </Anchor>
87 </Anchors>
88  
89 <!-- this frame is used for giving the money frame tooltips properly -->
90 <Frames>
91 <Button name="$parentHoverFrame" setAllPoints="true">
92 <Scripts>
93 <OnLoad>
94 this:SetFrameLevel(this:GetFrameLevel() + 1);
95 </OnLoad>
96 <OnClick>
97 BagnonFrameMoney_OnClick();
98 </OnClick>
99 <OnEnter>
100 BagnonFrameMoney_OnEnter();
101 </OnEnter>
102 <OnLeave>
103 BagnonFrameMoney_OnLeave();
104 </OnLeave>
105 </Scripts>
106 </Button>
107 </Frames>
108  
109 <Scripts>
110 <OnShow>
111 if(not this:GetParent().player or this:GetParent().player == UnitName("player") ) then
112 MoneyFrame_UpdateMoney();
113 end
114 </OnShow>
115 </Scripts>
116 </Frame>
117 </Frames>
118  
119 <Scripts>
120 <OnMouseDown>
121 BagnonFrame_StartMoving(this);
122 </OnMouseDown>
123 <OnMouseUp>
124 BagnonFrame_StopMoving(this);
125 </OnMouseUp>
126 <OnHide>
127 BagnonFrame_OnHide();
128 </OnHide>
129 </Scripts>
130 </Button>
131 </Ui>