-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDifficultBulletinBoardOptionFrame.xml
109 lines (97 loc) · 3.87 KB
/
DifficultBulletinBoardOptionFrame.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
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<!-- Main Frame -->
<Frame name="DifficultBulletinBoardOptionFrame" parent="UIParent" hidden="true" movable="true" enableMouse="true"
clampedToScreen="true">
<Size>
<AbsDimension x="500" y="700"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"/>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parent_ExpansionLabel" inherits="GameFontHighlight" justifyH="LEFT"
text="Difficult Bulletin Board Options">
<Size>
<AbsDimension x="0" y="0"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<!-- Close Button -->
<Frames>
<Button name="DifficultBulletinBoard_Option_CloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="DifficultBulletinBoardOptionFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="3" y="3"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
DifficultBulletinBoardOptionFrame:Hide();
</OnClick>
</Scripts>
</Button>
<!-- ScrollFrame is in .lua -->
<Button name="$parent_ResetButton" inherits="UIPanelButtonTemplate" text="Reset to Default">
<Size>
<AbsDimension x="130" y="40"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="10"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
DifficultBulletinBoard_ResetVariablesAndReload()
</OnClick>
</Scripts>
</Button>
<Button name="$parent_MyButton" inherits="UIPanelButtonTemplate" text="Save and Reload">
<Size>
<AbsDimension x="130" y="40"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-10" y="10"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
DifficultBulletinBoard_SaveVariablesAndReload()
</OnClick>
</Scripts>
</Button>
</Frames>
<!-- Scripts for Dragging -->
<Scripts>
<OnMouseDown>
if not DifficultBulletinBoardOptionFrame.isMoving then
DifficultBulletinBoardOptionFrame:StartMoving();
DifficultBulletinBoardOptionFrame.isMoving = true;
end
</OnMouseDown>
<OnMouseUp>
if DifficultBulletinBoardOptionFrame.isMoving then
DifficultBulletinBoardOptionFrame:StopMovingOrSizing();
DifficultBulletinBoardOptionFrame.isMoving = false;
end
</OnMouseUp>
</Scripts>
</Frame>
</Ui>