-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGlueDialog.xml
178 lines (178 loc) · 5 KB
/
GlueDialog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<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/
..\FrameXML\UI.xsd">
<Script file="GlueDialog.lua"/>
<Button name="GlueDialogButtonTemplate" virtual="true">
<Size>
<AbsDimension x="220" y="40"/>
</Size>
<Scripts>
<OnClick>
GlueDialog_OnClick(self:GetID());
</OnClick>
</Scripts>
<ButtonText>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont style="GlueFontNormal"/>
<HighlightFont style="GlueFontHighlight"/>
<DisabledFont style="GlueFontDisable"/>
<NormalTexture inherits="GluePanelButtonUpTexture"/>
<PushedTexture inherits="GluePanelButtonDownTexture"/>
<DisabledTexture inherits="GluePanelButtonDisabledTexture"/>
<HighlightTexture inherits="GluePanelButtonHighlightTexture"/>
</Button>
<Frame name="GlueDialog" toplevel="true" parent="GlueParent" setAllPoints="true" enableMouse="true" enableKeyboard="true" frameStrata="DIALOG" hidden="true">
<Frames>
<Frame name="GlueDialogBackground">
<Size>
<AbsDimension x="512" y="256"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="GlueDialogText" inherits="GlueFontNormalLarge">
<Size>
<AbsDimension x="450" y="0"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-16"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="GlueDialogAlertIcon" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew" hidden="true">
<Size>
<AbsDimension x="48" y="48"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="24" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<SimpleHTML name="GlueDialogHTML" hyperlinkFormat="|cff06ff07|H%s|h[%s]|h|r" hidden="true">
<Size>
<AbsDimension x="450" y="30"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnHyperlinkClick>
LaunchURL(link);
</OnHyperlinkClick>
</Scripts>
<FontString inherits="GlueFontNormalLarge" spacing="2"/>
<FontStringHeader1 inherits="GlueFontNormalLarge" spacing="4"/>
<FontStringHeader2 inherits="GlueFontHighlight" spacing="4"/>
</SimpleHTML>
<Button name="GlueDialogButton1" inherits="GlueDialogButtonTemplate" id="1"/>
<Button name="GlueDialogButton2" inherits="GlueDialogButtonTemplate" id="2"/>
<Button name="GlueDialogButton3" inherits="GlueDialogButtonTemplate" id="3"/>
</Frames>
</Frame>
<EditBox name="$parentEditBox" historyLines="1" hidden="true">
<Size>
<AbsDimension x="130" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
<Size>
<AbsDimension x="75" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.29296875" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
<Size>
<AbsDimension x="75" y="32"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.70703125" right="1.0" top="0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnterPressed>
StaticPopup_EditBoxOnEnterPressed();
</OnEnterPressed>
<OnEscapePressed>
StaticPopup_EditBoxOnEscapePressed();
</OnEscapePressed>
</Scripts>
<FontString inherits="GlueFontHighlight"/>
</EditBox>
</Frames>
<Scripts>
<OnLoad>
GlueDialog_OnLoad(self);
</OnLoad>
<OnShow>
GlueDialog_OnShow(self);
self:Raise();
</OnShow>
<OnUpdate>
GlueDialog_OnUpdate(self, elapsed);
</OnUpdate>
<OnEvent>
GlueDialog_OnEvent(self, event, ...);
</OnEvent>
<OnHide>
GlueDialog_OnHide();
</OnHide>
<OnKeyDown>
GlueDialog_OnKeyDown(key);
</OnKeyDown>
</Scripts>
</Frame>
</Ui>