-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWebDKP_Award_Frame.xml
113 lines (109 loc) · 3.44 KB
/
WebDKP_Award_Frame.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
<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">
<!-- ================================================
MAIN FRAME
=================================================-->
<Frame name="WebDKP_AwardFrame" toplevel="true" parent="UIParent" movable="true" hidden="true">
<!-- EVENT HANDLERS FOR THE MASTER FRAME -->
<Scripts>
<OnMouseDown>
this:StartMoving();
</OnMouseDown>
<OnMouseUp>
this:StopMovingOrSizing();
</OnMouseUp>
</Scripts>
<Size>
<AbsDimension x="425" y="125"/>
</Size>
<Anchors>
<Anchor point="LEFT"/>
</Anchors>
<Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<!-- HEADER / ADDON TITLE-->
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentTitle" inherits="GameFontNormal" text="Award ZeddZorandor thisisareallylongitemname for 10000 dkp?">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<!-- FRAMES (contains all gui elements -->
<Frames>
<EditBox name="$parentCost" inherits="WebDKPEditBoxTemplate">
<Size>
<AbsDimension x="70" y="32"></AbsDimension>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetParent():GetName().."Cost"):SetAutoFocus( false );
</OnLoad>
</Scripts>
</EditBox>
<Button name="$parentYes" inherits="OptionsButtonTemplate" text="Yes">
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="BOTTOM" relativeTo="$parentCost">
<Offset>
<AbsDimension x="-5" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="75" y="25"/>
</Size>
<Scripts>
<OnClick>
local cost = getglobal(this:GetParent():GetName().."Cost"):GetText();
if(cost == nil) then
cost = 0;
end
WebDKP_AutoAward(cost);
PlaySound("LOOTWINDOWCOINSOUND");
WebDKP_AwardFrame:Hide();
</OnClick>
</Scripts>
</Button>
<Button name="$parentNo" inherits="OptionsButtonTemplate" text="No">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOM" relativeTo="$parentCost">
<Offset>
<AbsDimension x="5" y="-10"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="75" y="25"/>
</Size>
<Scripts>
<OnClick>
PlaySound("igMainMenuClose");
WebDKP_AwardFrame:Hide();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>