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 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="CT_RASlashCmds.lua"/> |
||
4 | <Button name="CT_RA_SlashCmdSlashTemplate" hidden="true" virtual="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="500" y="40"/> |
||
7 | </Size> |
||
8 | <Layers> |
||
9 | <Layer level="BACKGROUND"> |
||
10 | <FontString name="$parentText" inherits="GameFontNormal"> |
||
11 | <Anchors> |
||
12 | <Anchor point="TOPLEFT"> |
||
13 | <Offset> |
||
14 | <AbsDimension x="27" y="-4"/> |
||
15 | </Offset> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | </FontString> |
||
19 | <FontString name="$parentAvailable" inherits="GameFontNormalSmall"> |
||
20 | <Anchors> |
||
21 | <Anchor point="TOPLEFT" relativeTo="$parentText" relativePoint="BOTTOMLEFT"> |
||
22 | <Offset> |
||
23 | <AbsDimension x="0" y="-2"/> |
||
24 | </Offset> |
||
25 | </Anchor> |
||
26 | </Anchors> |
||
27 | </FontString> |
||
28 | <FontString name="$parentDescription" justifyH="LEFT" justifyV="TOP" inherits="ChatFontNormal"> |
||
29 | <Size> |
||
30 | <AbsDimension x="470" y="20"/> |
||
31 | </Size> |
||
32 | <Anchors> |
||
33 | <Anchor point="TOPLEFT" relativeTo="$parentAvailable" relativePoint="BOTTOMLEFT"> |
||
34 | <Offset> |
||
35 | <AbsDimension x="0" y="0"/> |
||
36 | </Offset> |
||
37 | </Anchor> |
||
38 | </Anchors> |
||
39 | </FontString> |
||
40 | <Texture file="Interface\QuestFrame\UI-Quest-BulletPoint"> |
||
41 | <Size> |
||
42 | <AbsDimension x="16" y="16"/> |
||
43 | </Size> |
||
44 | <Anchors> |
||
45 | <Anchor point="TOPLEFT"> |
||
46 | <Offset> |
||
47 | <AbsDimension x="5" y="-2"/> |
||
48 | </Offset> |
||
49 | </Anchor> |
||
50 | </Anchors> |
||
51 | </Texture> |
||
52 | </Layer> |
||
53 | </Layers> |
||
54 | <Scripts> |
||
55 | <OnClick> |
||
56 | if ( not DEFAULT_CHAT_FRAME.editBox:IsVisible() ) then |
||
57 | DEFAULT_CHAT_FRAME.editBox:Show(); |
||
58 | DEFAULT_CHAT_FRAME.editBox.setText = 1; |
||
59 | DEFAULT_CHAT_FRAME.editBox.text = this.slashCommand; |
||
60 | |||
61 | if ( (DEFAULT_CHAT_FRAME.editBox.stickyType == "PARTY") and (GetNumPartyMembers() == 0) ) then |
||
62 | DEFAULT_CHAT_FRAME.editBox.chatType = "SAY"; |
||
63 | ChatEdit_UpdateHeader(DEFAULT_CHAT_FRAME.editBox); |
||
64 | elseif ( (DEFAULT_CHAT_FRAME.editBox.stickyType == "RAID") and (GetNumRaidMembers() == 0) ) then |
||
65 | DEFAULT_CHAT_FRAME.editBox.chatType = "SAY"; |
||
66 | ChatEdit_UpdateHeader(DEFAULT_CHAT_FRAME.editBox); |
||
67 | end |
||
68 | end |
||
69 | </OnClick> |
||
70 | </Scripts> |
||
71 | <HighlightTexture file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD"> |
||
72 | <TexCoords left="0" right="1.0" top="0" bottom="0.578125"/> |
||
73 | </HighlightTexture> |
||
74 | </Button> |
||
75 | <Frame name="CT_RA_SlashCmdFrame" movable="true" parent="UIParent" hidden="true"> |
||
76 | <Size> |
||
77 | <AbsDimension x="550" y="500"/> |
||
78 | </Size> |
||
79 | <Anchors> |
||
80 | <Anchor point="CENTER"/> |
||
81 | </Anchors> |
||
82 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
83 | <BackgroundInsets> |
||
84 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
85 | </BackgroundInsets> |
||
86 | <TileSize> |
||
87 | <AbsValue val="32"/> |
||
88 | </TileSize> |
||
89 | <EdgeSize> |
||
90 | <AbsValue val="32"/> |
||
91 | </EdgeSize> |
||
92 | </Backdrop> |
||
93 | <Layers> |
||
94 | <Layer level="ARTWORK"> |
||
95 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
96 | <Size> |
||
97 | <AbsDimension x="256" y="64"/> |
||
98 | </Size> |
||
99 | <Anchors> |
||
100 | <Anchor point="TOP"> |
||
101 | <Offset> |
||
102 | <AbsDimension x="0" y="12"/> |
||
103 | </Offset> |
||
104 | </Anchor> |
||
105 | </Anchors> |
||
106 | </Texture> |
||
107 | <FontString name="$parentHeaderText" inherits="GameFontNormal" text="Slash Commands"> |
||
108 | <Anchors> |
||
109 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
110 | <Offset> |
||
111 | <AbsDimension x="0" y="-14"/> |
||
112 | </Offset> |
||
113 | </Anchor> |
||
114 | </Anchors> |
||
115 | </FontString> |
||
116 | </Layer> |
||
117 | </Layers> |
||
118 | <Frames> |
||
119 | <Frame name="$parentDrag"> |
||
120 | <Size> |
||
121 | <AbsDimension x="150" y="32"/> |
||
122 | </Size> |
||
123 | <Anchors> |
||
124 | <Anchor point="TOP"> |
||
125 | <Offset> |
||
126 | <AbsDimension x="-12" y="12"/> |
||
127 | </Offset> |
||
128 | </Anchor> |
||
129 | </Anchors> |
||
130 | <Scripts> |
||
131 | <OnMouseDown> |
||
132 | if ( arg1 == "LeftButton" ) then |
||
133 | this:GetParent():StartMoving(); |
||
134 | elseif ( arg1 == "RightButton" ) then |
||
135 | this:GetParent():ClearAllPoints(); |
||
136 | this:GetParent():SetPoint("CENTER", "UIParent", "CENTER"); |
||
137 | end |
||
138 | </OnMouseDown> |
||
139 | <OnMouseUp> |
||
140 | this:GetParent():StopMovingOrSizing(); |
||
141 | </OnMouseUp> |
||
142 | <OnEnter> |
||
143 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
144 | GameTooltip:SetText("Left-click to drag\nRight-click to reset"); |
||
145 | </OnEnter> |
||
146 | <OnLeave> |
||
147 | GameTooltip:Hide(); |
||
148 | </OnLeave> |
||
149 | </Scripts> |
||
150 | </Frame> |
||
151 | <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
152 | <Size> |
||
153 | <AbsDimension x="500" y="430"/> |
||
154 | </Size> |
||
155 | <Anchors> |
||
156 | <Anchor point="TOPLEFT"> |
||
157 | <Offset> |
||
158 | <AbsDimension x="15" y="-30"/> |
||
159 | </Offset> |
||
160 | </Anchor> |
||
161 | </Anchors> |
||
162 | <ScrollChild> |
||
163 | <Frame name="$parentCmds"> |
||
164 | <Size> |
||
165 | <AbsDimension x="500" y="430"/> |
||
166 | </Size> |
||
167 | <Anchors> |
||
168 | <Anchor point="TOPLEFT"/> |
||
169 | </Anchors> |
||
170 | <Frames> |
||
171 | <Button name="$parentCmd1" inherits="CT_RA_SlashCmdSlashTemplate"> |
||
172 | <Anchors> |
||
173 | <Anchor point="TOPLEFT"/> |
||
174 | </Anchors> |
||
175 | </Button> |
||
176 | <Button name="$parentCmd2" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
177 | <Button name="$parentCmd3" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
178 | <Button name="$parentCmd4" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
179 | <Button name="$parentCmd5" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
180 | <Button name="$parentCmd6" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
181 | <Button name="$parentCmd7" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
182 | <Button name="$parentCmd8" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
183 | <Button name="$parentCmd9" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
184 | <Button name="$parentCmd10" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
185 | <Button name="$parentCmd11" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
186 | <Button name="$parentCmd12" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
187 | <Button name="$parentCmd13" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
188 | <Button name="$parentCmd14" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
189 | <Button name="$parentCmd15" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
190 | <Button name="$parentCmd16" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
191 | <Button name="$parentCmd17" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
192 | <Button name="$parentCmd18" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
193 | <Button name="$parentCmd19" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
194 | <Button name="$parentCmd20" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
195 | <Button name="$parentCmd21" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
196 | <Button name="$parentCmd22" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
197 | <Button name="$parentCmd23" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
198 | <Button name="$parentCmd24" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
199 | <Button name="$parentCmd25" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
200 | <Button name="$parentCmd26" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
201 | <Button name="$parentCmd27" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
202 | <Button name="$parentCmd28" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
203 | <Button name="$parentCmd29" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
204 | <Button name="$parentCmd30" inherits="CT_RA_SlashCmdSlashTemplate"/> |
||
205 | </Frames> |
||
206 | </Frame> |
||
207 | </ScrollChild> |
||
208 | </ScrollFrame> |
||
209 | <Button name="$parentCloseButton" hidden="false" inherits="GameMenuButtonTemplate" text="Close"> |
||
210 | <Size> |
||
211 | <AbsDimension x="125" y="25"/> |
||
212 | </Size> |
||
213 | <Anchors> |
||
214 | <Anchor point="BOTTOM" > |
||
215 | <Offset> |
||
216 | <AbsDimension x="0" y="15"/> |
||
217 | </Offset> |
||
218 | </Anchor> |
||
219 | </Anchors> |
||
220 | <Scripts> |
||
221 | <OnClick> |
||
222 | HideUIPanel(this:GetParent()); |
||
223 | </OnClick> |
||
224 | <OnHide> |
||
225 | PlaySound("UChatScrollButton"); |
||
226 | </OnHide> |
||
227 | </Scripts> |
||
228 | </Button> |
||
229 | </Frames> |
||
230 | </Frame> |
||
231 | </Ui> |