-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDifficultBulletinBoardOptionFrame.xml
134 lines (121 loc) · 5.1 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
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
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<!-- Main Frame -->
<Frame name="DifficultBulletinBoardOptionFrame" resizable="true" parent="UIParent" hidden="true" movable="true" enableMouse="true"
clampedToScreen="true">
<ResizeBounds>
<minResize x="470" y="400" />
</ResizeBounds>
<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>
DifficultBulletinBoard_ToggleOptionFrame();
</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>
<!-- Resize Grip -->
<Button name="$DifficultBulletinBoardOptionFrameResizeButton">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
</Anchor>
</Anchors>
<NormalTexture file="Interface\AddOns\DifficultBulletinBoard\icons\UI-ChatIM-SizeGrabber-Up.tga" />
<PushedTexture file="Interface\AddOns\DifficultBulletinBoard\icons\UI-ChatIM-SizeGrabber-Down.tga" />
<HighlightTexture file="Interface\AddOns\DifficultBulletinBoard\icons\UI-ChatIM-SizeGrabber-Highlight.tga" alphaMode="ADD" />
<Scripts>
<OnMouseDown>
DifficultBulletinBoardOptionFrame:StartSizing("BOTTOMRIGHT");
</OnMouseDown>
<OnMouseUp>
DifficultBulletinBoardOptionFrame:StopMovingOrSizing();
</OnMouseUp>
</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>