-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrame.xml
112 lines (111 loc) · 5.16 KB
/
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
<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">
<!-- A data row for a single person in the raid -->
<StatusBar name="Sunderstruck_RowTemplate" hidden="true" virtual="true">
<Size y="20" />
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="TOPRIGHT" />
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parent_Name" inherits="GameFontNormal" text="testing123456789">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
</FontString>
</Layer>
<Layer level="BACKGROUND">
<Texture name="$parent_Background">
<Anchors>
<Anchor point="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" />
</Anchors>
<Color r="0" g="0" b="0" a="0.5" />
</Texture>
</Layer>
</Layers>
</StatusBar>
<!-- Main frame -->
<ScrollFrame name="Sunderstruck_Frame" parent="UIParent" movable="true" enablemouse="true" resizable="true" frameStrata="low" virtual="true">
<Size x="150" y="100" />
<ResizeBounds>
<minResize x="80" y="50"/>
<maxResize x="400" y="400"/>
</ResizeBounds>
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<Scripts>
<OnLoad>
this:SetClampedToScreen(true)
this:SetVerticalScroll(0)
</OnLoad>
<OnMouseDown>
if arg1 == "LeftButton" and not Sunderstruck_Vars.lock then
this:StartMoving()
end
</OnMouseDown>
<OnMouseUp>
this:StopMovingOrSizing()
</OnMouseUp>
</Scripts>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parent_Background">
<Color r="0" g="0" b="0" a="0.3"/>
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<!-- Resize button -->
<Frames>
<Button name="$parent_Resize" frameStrata="HIGH">
<Size x="14" y="14" />
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" />
</Anchors>
<Scripts>
<OnMouseDown>
this:GetParent():StartSizing()
</OnMouseDown>
<OnMouseUp>
this:GetParent():StopMovingOrSizing()
</OnMouseUp>
</Scripts>
<NormalTexture file="Interface\AddOns\Sunderstruck\Images\UI-ChatIM-SizeGrabber-Up"/>
<PushedTexture file="Interface\AddOns\Sunderstruck\Images\UI-ChatIM-SizeGrabber-Down"/>
<HighlightTexture file="Interface\AddOns\Sunderstruck\Images\UI-ChatIM-SizeGrabber-Highlight" alphaMode="ADD"/>
</Button>
</Frames>
<ScrollChild>
<Frame name="$parent_Rows">
<Frames>
<StatusBar name="$parent1" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent2" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent3" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent4" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent5" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent6" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent7" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent8" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent9" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent10" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent11" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent12" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent13" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent14" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent15" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent16" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent17" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent18" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent19" inherits="Sunderstruck_RowTemplate" />
<StatusBar name="$parent20" inherits="Sunderstruck_RowTemplate" />
</Frames>
</Frame>
</ScrollChild>
</ScrollFrame>
</UI>