-
Notifications
You must be signed in to change notification settings - Fork 2
/
ScriptEd.xml
113 lines (113 loc) · 3.01 KB
/
ScriptEd.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">
<Script file="ScriptEd.lua" />
<Frame name="BrScriptFrame" inherits="BasicFrameTemplate" parent="BRConfigFrame" toplevel="true" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="400" y="400" />
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset x="0" y="0" />
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true">
<Size>
<AbsDimension x="0" y="0" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
</TitleRegion>
<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>
<Frames>
<ScrollFrame name="BrScriptFrameScroll" inherits="UIPanelScrollFrameTemplate" toplevel="true">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="20" y="-30" />
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-60" y="30" />
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="100" y="300" />
</Size>
<ScrollChild>
<EditBox name="BrScriptEditor" letters="99999" multiLine="true" autoFocus="true" enableMouse="true">
<Size x="320" y="800" />
<Scripts>
<OnLoad>
this:SetAutoFocus(false);
this:SetTextInsets(0, 8, 0, 0);
</OnLoad>
<OnShow>
this:SetTextInsets(0, 8, 0, 0);
this:SetFocus();
BuffReminder.BrScriptEditor_OnShow();
</OnShow>
</Scripts>
<FontString inherits="ChatFontNormal" />
</EditBox>
</ScrollChild>
</ScrollFrame>
<Button name="$parentAcceptButton" inherits="GameMenuButtonTemplate" text="Accept">
<Size x="90" y="24" />
<Anchors>
<Anchor point="BOTTOM">
<Offset x="-80" y="18" />
</Anchor>
</Anchors>
<Scripts>
<OnClick>
BrScriptFrame:Hide();
BuffReminder.SaveScript();
</OnClick>
</Scripts>
</Button>
<Button name="$parentCancelButton" inherits="GameMenuButtonTemplate" text="Cancel">
<Size x="90" y="24" />
<Anchors>
<Anchor point="BOTTOM">
<Offset x="80" y="18" />
</Anchor>
</Anchors>
<Scripts>
<OnClick>
BrScriptFrame:Hide();
BrScriptEditor:SetText("");
</OnClick>
</Scripts>
</Button>
</Frames>
<Layers>
<Layer level="BACKGROUND">
<Texture>
<Color r="0.2" g="0.2" b="0" a="0.95" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="6" y="-6" />
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset x="-6" y="6" />
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
</Ui>