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/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <!-- A bag frame template --> |
||
6 | <Button name="BagnonBagFrame" frameStrata="MEDIUM" movable="true" enableMouse="true" parent="UIParent" hidden="true" virtual="true"> |
||
7 | |||
8 | <Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border"> |
||
9 | <BackgroundInsets> |
||
10 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
11 | </BackgroundInsets> |
||
12 | <TileSize> |
||
13 | <AbsValue val="16"/> |
||
14 | </TileSize> |
||
15 | <EdgeSize> |
||
16 | <AbsValue val="16"/> |
||
17 | </EdgeSize> |
||
18 | </Backdrop> |
||
19 | |||
20 | <Frames> |
||
21 | <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> |
||
22 | <Anchors> |
||
23 | <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT"> |
||
24 | <Offset> |
||
25 | <AbsDimension x="-2" y="-2"/> |
||
26 | </Offset> |
||
27 | </Anchor> |
||
28 | </Anchors> |
||
29 | </Button> |
||
30 | |||
31 | <Button name="$parentTitle"> |
||
32 | <Anchors> |
||
33 | <Anchor point="TOPLEFT"> |
||
34 | <Offset> |
||
35 | <AbsDimension x="12" y="-4"/> |
||
36 | </Offset> |
||
37 | </Anchor> |
||
38 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentCloseButton" relativePoint="BOTTOMLEFT"> |
||
39 | <Offset> |
||
40 | <AbsDimension x="-2" y="6"/> |
||
41 | </Offset> |
||
42 | </Anchor> |
||
43 | </Anchors> |
||
44 | |||
45 | <NormalText font="GameFontNormal" justifyH="LEFT" setAllPoints="true"/> |
||
46 | <HighlightText font="GameFontHighlight" justifyH="LEFT" setAllPoints="true"/> |
||
47 | |||
48 | <Scripts> |
||
49 | <OnLoad> |
||
50 | this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp"); |
||
51 | </OnLoad> |
||
52 | <OnDoubleClick> |
||
53 | BagnonCore_OnDoubleClick(this:GetParent()); |
||
54 | </OnDoubleClick> |
||
55 | <OnDragStart> |
||
56 | BagnonCore_StartMoving(this:GetParent()); |
||
57 | </OnDragStart> |
||
58 | <OnMouseDown> |
||
59 | BagnonCore_StartMoving(this:GetParent()); |
||
60 | </OnMouseDown> |
||
61 | <OnMouseUp> |
||
62 | BagnonCore_OnClick(this:GetParent(), arg1); |
||
63 | BagnonCore_StopMoving(this:GetParent()); |
||
64 | </OnMouseUp> |
||
65 | <OnEnter> |
||
66 | BagnonCore_OnEnter(); |
||
67 | </OnEnter> |
||
68 | <OnLeave> |
||
69 | BagnonCore_OnLeave(); |
||
70 | </OnLeave> |
||
71 | </Scripts> |
||
72 | </Button> |
||
73 | |||
74 | <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false"> |
||
75 | <Anchors> |
||
76 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
||
77 | <Offset> |
||
78 | <AbsDimension x="0" y="10"/> |
||
79 | </Offset> |
||
80 | </Anchor> |
||
81 | </Anchors> |
||
82 | |||
83 | <Frames> |
||
84 | <Button name="$parentHoverFrame"> |
||
85 | <Anchors> |
||
86 | <Anchor point="TOPLEFT"/> |
||
87 | <Anchor point="BOTTOMRIGHT"/> |
||
88 | </Anchors> |
||
89 | |||
90 | <Scripts> |
||
91 | <OnLoad> |
||
92 | this:SetFrameLevel(this:GetFrameLevel() + 1); |
||
93 | </OnLoad> |
||
94 | <OnClick> |
||
95 | BagnonCoreMoney_OnClick(); |
||
96 | </OnClick> |
||
97 | <OnEnter> |
||
98 | BagnonCoreMoney_OnEnter(); |
||
99 | </OnEnter> |
||
100 | <OnLeave> |
||
101 | BagnonCoreMoney_OnLeave(); |
||
102 | </OnLeave> |
||
103 | </Scripts> |
||
104 | </Button> |
||
105 | </Frames> |
||
106 | |||
107 | <Scripts> |
||
108 | <OnShow> |
||
109 | if(not this:GetParent().player or this:GetParent().player == UnitName("player") ) then |
||
110 | MoneyFrame_UpdateMoney(); |
||
111 | end |
||
112 | </OnShow> |
||
113 | </Scripts> |
||
114 | </Frame> |
||
115 | </Frames> |
||
116 | |||
117 | <Scripts> |
||
118 | <OnMouseDown> |
||
119 | BagnonCore_StartMoving(this); |
||
120 | </OnMouseDown> |
||
121 | <OnMouseUp> |
||
122 | BagnonCore_StopMoving(this); |
||
123 | </OnMouseUp> |
||
124 | <OnHide> |
||
125 | BagnonCore_OnHide(); |
||
126 | </OnHide> |
||
127 | </Scripts> |
||
128 | </Button> |
||
129 | |||
130 | <!-- Global Event Handler --> |
||
131 | <Frame name="BagnonEvents" hidden="true"> |
||
132 | <Scripts> |
||
133 | <OnLoad> |
||
134 | BagnonEvents_OnLoad(); |
||
135 | </OnLoad> |
||
136 | <OnEvent> |
||
137 | BagnonEvents_OnEvent(event); |
||
138 | </OnEvent> |
||
139 | </Scripts> |
||
140 | </Frame> |
||
141 | </Ui> |