-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSafeQueue.xml
82 lines (81 loc) · 3.25 KB
/
SafeQueue.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
<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">
<Frame name="SafeQueuePopupTemplate" toplevel="true" enableKeyboard="true" enableMouse="true" frameStrata="DIALOG" hidden="true" hyperlinksEnabled="true" virtual="true">
<Size>
<AbsDimension x="320" y="124"/>
</Size>
<Scripts>
<OnEvent>
self[event](self, ...)
</OnEvent>
<OnLoad>
self.queues = {}
self:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
local BACKDROP_DIALOG_32_32 = BACKDROP_DIALOG_32_32 or {
bgFile = [[Interface\DialogFrame\UI-DialogBox-Background]],
edgeFile = [[Interface\DialogFrame\UI-DialogBox-Border]],
tile = true,
tileSize = 32,
edgeSize = 32,
insets = { left = 11, right = 12, top = 12, bottom = 11 },
}
if BackdropTemplateMixin then Mixin(self, BackdropTemplateMixin) end
self:SetBackdrop(BACKDROP_DIALOG_32_32)
</OnLoad>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" parentKey="text" inherits="GameFontHighlight">
<Size>
<AbsDimension x="290" y="0"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-26"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentSubText" parentKey="SubText" inherits="GameFontNormal">
<Size x="290" y="0"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent.text" relativePoint="BOTTOM" x="0" y="-13"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
<NormalTexture file="Interface\Buttons\UI-Panel-HideButton-Up"/>
<PushedTexture file="Interface\Buttons\UI-Panel-HideButton-Down"/>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-3" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentEnterButton" inherits="UIPanelButtonTemplate, SecureActionButtonTemplate" registerForClicks="LeftButtonUp" text="ENTER_BATTLE" parentKey="EnterButton">
<Size x="128" y="21"/>
<Attributes>
<Attribute name="type" value="macro"/>
</Attributes>
<Scripts>
<PreClick>
self:GetParent():SetMacroText()
</PreClick>
</Scripts>
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="26"/>
</Anchors>
</Button>
</Frames>
</Frame>
<Frame name="SafeQueue" inherits="SafeQueuePopupTemplate" parent="UIParent" id="1">
<Anchors>
<Anchor point="TOP" x="0" y="-135"/>
</Anchors>
</Frame>
</Ui>