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 | |||
3 | <Frame name="DiscordLib_MainFrame" hidden="false" parent="UIParent"> |
||
4 | <Scripts> |
||
5 | <OnLoad> |
||
6 | DiscordLib_Main_OnLoad(); |
||
7 | </OnLoad> |
||
8 | <OnEvent> |
||
9 | DiscordLib_Main_OnEvent(event); |
||
10 | </OnEvent> |
||
11 | <OnUpdate> |
||
12 | DiscordLib_Main_OnUpdate(arg1); |
||
13 | DL_Update_Timers(arg1); |
||
14 | </OnUpdate> |
||
15 | </Scripts> |
||
16 | </Frame> |
||
17 | |||
18 | <GameTooltip name="DiscordLib_Tooltip" frameStrata="TOOLTIP" hidden="false" inherits="GameTooltipTemplate"> |
||
19 | <Anchors> |
||
20 | <Anchor point="BOTTOM" relativePoint="TOP"> |
||
21 | <Offset><AbsDimension x="0" y="100"/></Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | </GameTooltip> |
||
25 | |||
26 | <GameTooltip name="DiscordLib_AuraTooltip" frameStrata="TOOLTIP" hidden="false" inherits="GameTooltipTemplate"> |
||
27 | <Anchors> |
||
28 | <Anchor point="BOTTOM" relativePoint="TOP"> |
||
29 | <Offset><AbsDimension x="0" y="100"/></Offset> |
||
30 | </Anchor> |
||
31 | </Anchors> |
||
32 | </GameTooltip> |
||
33 | |||
34 | <EditBox name="DiscordLib_MacroBox" inherits="ChatFrameEditBoxTemplate" parent="UIParent" letters="2048" hidden="true"> |
||
35 | <Scripts> |
||
36 | <OnLoad> |
||
37 | -- Preventing an error message at log-in |
||
38 | </OnLoad> |
||
39 | </Scripts> |
||
40 | </EditBox> |
||
41 | |||
42 | <Button name="DL_ColorCopy" inherits="UIPanelButtonTemplate" hidden="false" parent="ColorPickerFrame" text="DL_COPYTEXT"> |
||
43 | <Size><AbsDimension x="75" y="22"/></Size> |
||
44 | <Anchors> |
||
45 | <Anchor point="BOTTOMLEFT" relativeTo="ColorPickerFrame" relativePoint="TOPLEFT"> |
||
46 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
47 | </Anchor> |
||
48 | </Anchors> |
||
49 | <Scripts> |
||
50 | <OnClick> |
||
51 | local r, g, b = ColorPickerFrame:GetColorRGB(); |
||
52 | if ColorPickerFrame.hasOpacity then |
||
53 | local a = OpacitySliderFrame:GetValue(); |
||
54 | DL_SAVED_COLOR = {r=r, g=g, b=b, a=a}; |
||
55 | else |
||
56 | DL_SAVED_COLOR = {r=r, g=g, b=b}; |
||
57 | end |
||
58 | </OnClick> |
||
59 | </Scripts> |
||
60 | </Button> |
||
61 | |||
62 | <Button name="DL_ColorPaste" inherits="UIPanelButtonTemplate" hidden="false" parent="ColorPickerFrame" text="DL_PASTETEXT"> |
||
63 | <Size><AbsDimension x="75" y="22"/></Size> |
||
64 | <Anchors> |
||
65 | <Anchor point="BOTTOMRIGHT" relativeTo="ColorPickerFrame" relativePoint="TOPRIGHT"> |
||
66 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
67 | </Anchor> |
||
68 | </Anchors> |
||
69 | <Scripts> |
||
70 | <OnClick> |
||
71 | if (DL_SAVED_COLOR) then |
||
72 | ColorPickerFrame:SetColorRGB(DL_SAVED_COLOR.r, DL_SAVED_COLOR.g, DL_SAVED_COLOR.b); |
||
73 | if DL_SAVED_COLOR.a and ColorPickerFrame.hasOpacity then |
||
74 | OpacitySliderFrame:SetValue(DL_SAVED_COLOR.a); |
||
75 | end |
||
76 | end |
||
77 | </OnClick> |
||
78 | </Scripts> |
||
79 | </Button> |
||
80 | |||
81 | <Frame name="DL_ScriptErrors" inherits="DiscordLib_DialogueBackdropTemplate" frameStrata="DIALOG" hidden="true"> |
||
82 | <Size><AbsDimension x="384" y="256"/></Size> |
||
83 | <Anchors> |
||
84 | <Anchor point="CENTER"/> |
||
85 | </Anchors> |
||
86 | <Frames> |
||
87 | <Button inherits="UIPanelButtonTemplate" text="OK"> |
||
88 | <Size><AbsDimension x="75" y="24"/></Size> |
||
89 | <Anchors> |
||
90 | <Anchor point="BOTTOM"> |
||
91 | <Offset><AbsDimension x="0" y="15"/></Offset> |
||
92 | </Anchor> |
||
93 | </Anchors> |
||
94 | <Scripts> |
||
95 | <OnClick> |
||
96 | DL_ScriptErrors_OK_OnClick(); |
||
97 | </OnClick> |
||
98 | </Scripts> |
||
99 | </Button> |
||
100 | </Frames> |
||
101 | <Layers> |
||
102 | <Layer level="ARTWORK"> |
||
103 | <FontString name="DL_ScriptErrors_Message" inherits="GameFontRedLarge" justifyH="CENTER" justifyV="TOP"> |
||
104 | <Size> |
||
105 | <AbsDimension x="360" y="232"/> |
||
106 | </Size> |
||
107 | <Anchors> |
||
108 | <Anchor point="TOP"> |
||
109 | <Offset> |
||
110 | <AbsDimension x="0" y="-16"/> |
||
111 | </Offset> |
||
112 | </Anchor> |
||
113 | </Anchors> |
||
114 | </FontString> |
||
115 | </Layer> |
||
116 | </Layers> |
||
117 | <Scripts> |
||
118 | <OnLoad> |
||
119 | this:SetBackdropColor(0, 0, 0); |
||
120 | </OnLoad> |
||
121 | </Scripts> |
||
122 | </Frame> |
||
123 | |||
124 | <EditBox name="DL_ColorBoxTemplate" letters="5" autoFocus="false" inherits="InputBoxTemplate" frameStrata="DIALOG" parent="ColorPickerFrame" virtual="true"> |
||
125 | <Size><AbsDimension x="60" y="25"/></Size> |
||
126 | <Scripts> |
||
127 | <OnEscapePressed> |
||
128 | this:ClearFocus(); |
||
129 | DL_ColorBox_UpdateDisplay(); |
||
130 | </OnEscapePressed> |
||
131 | <OnEnterPressed> |
||
132 | this:ClearFocus(); |
||
133 | DL_ColorBox_UpdateDisplay(); |
||
134 | </OnEnterPressed> |
||
135 | <OnTextChanged> |
||
136 | DL_ColorBox_UpdateColor(); |
||
137 | </OnTextChanged> |
||
138 | <OnEditFocusGained> |
||
139 | DL_COLORBOX_FOCUS = 1; |
||
140 | </OnEditFocusGained> |
||
141 | <OnEditFocusLost> |
||
142 | DL_COLORBOX_FOCUS = nil; |
||
143 | </OnEditFocusLost> |
||
144 | </Scripts> |
||
145 | <Layers> |
||
146 | <Layer level="ARTWORK"> |
||
147 | <FontString name="$parent_Label" inherits="GameFontNormal"> |
||
148 | <Color r="1.0" g="1.0" b="1.0"/> |
||
149 | <Anchors> |
||
150 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
151 | <Offset><AbsDimension x="-5" y="0"/></Offset> |
||
152 | </Anchor> |
||
153 | </Anchors> |
||
154 | </FontString> |
||
155 | </Layer> |
||
156 | </Layers> |
||
157 | </EditBox> |
||
158 | |||
159 | <EditBox name="DL_RedBox" inherits="DL_ColorBoxTemplate" id="1"> |
||
160 | <Anchors> |
||
161 | <Anchor point="TOPLEFT"> |
||
162 | <Offset><AbsDimension x="235" y="-70"/></Offset> |
||
163 | </Anchor> |
||
164 | </Anchors> |
||
165 | <Scripts> |
||
166 | <OnLoad> |
||
167 | DL_RedBox_Label:SetText("R:"); |
||
168 | </OnLoad> |
||
169 | <OnTabPressed> |
||
170 | DL_GreenBox:SetFocus(); |
||
171 | </OnTabPressed> |
||
172 | </Scripts> |
||
173 | </EditBox> |
||
174 | <EditBox name="DL_GreenBox" inherits="DL_ColorBoxTemplate" id="2"> |
||
175 | <Anchors> |
||
176 | <Anchor point="TOP" relativeTo="DL_RedBox" relativePoint="BOTTOM"/> |
||
177 | </Anchors> |
||
178 | <Scripts> |
||
179 | <OnLoad> |
||
180 | DL_GreenBox_Label:SetText("G:"); |
||
181 | </OnLoad> |
||
182 | <OnTabPressed> |
||
183 | DL_BlueBox:SetFocus(); |
||
184 | </OnTabPressed> |
||
185 | </Scripts> |
||
186 | </EditBox> |
||
187 | <EditBox name="DL_BlueBox" inherits="DL_ColorBoxTemplate" id="3"> |
||
188 | <Anchors> |
||
189 | <Anchor point="TOP" relativeTo="DL_GreenBox" relativePoint="BOTTOM"/> |
||
190 | </Anchors> |
||
191 | <Scripts> |
||
192 | <OnLoad> |
||
193 | DL_BlueBox_Label:SetText("B:"); |
||
194 | </OnLoad> |
||
195 | <OnTabPressed> |
||
196 | DL_RedBox:SetFocus(); |
||
197 | </OnTabPressed> |
||
198 | </Scripts> |
||
199 | </EditBox> |
||
200 | |||
201 | </Ui> |