/
MinimalScrollBar.xml
141 lines (139 loc) · 5.95 KB
/
MinimalScrollBar.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
135
136
137
138
139
140
141
<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="MinimalScrollBar.lua"/>
<Frame name="MinimalScrollBarStepperScripts" mixin="MinimalScrollBarStepperScriptsMixin" virtual="true">
<Scripts>
<OnEnter method="OnEnter"/>
<OnLeave method="OnLeave"/>
<OnMouseDown method="OnMouseDown"/>
<OnMouseUp method="OnMouseUp"/>
<OnEnable method="OnEnable"/>
<OnDisable method="OnDisable"/>
</Scripts>
</Frame>
<EventFrame name="MinimalScrollBar" inherits="VerticalScrollBarTemplate" virtual="true">
<Size x="8" y="560"/>
<KeyValues>
<KeyValue key="thumbAnchor" value="TOP" type="string"/>
<!--Actual minimum is 16 but is inflated for usability.-->
<KeyValue key="minThumbExtent" value="23" type="number"/>
</KeyValues>
<Frames>
<Frame parentKey="Track" enableMouse="true">
<Size x="8"/>
<Anchors>
<Anchor point="TOP" y="-19"/>
<Anchor point="BOTTOM" y="19"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture parentKey="Begin" atlas="minimal-scrollbar-track-top" useAtlasSize="true">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="End" atlas="minimal-scrollbar-track-bottom" useAtlasSize="true">
<Anchors>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="Middle" atlas="!minimal-scrollbar-track-middle" useAtlasSize="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Begin" relativePoint="BOTTOMLEFT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.End" relativePoint="TOPRIGHT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<EventButton parentKey="Thumb" mixin="MinimalScrollBarThumbScriptsMixin" enableMouse="true">
<Size x="8"/>
<HitRectInsets>
<AbsInset left="-4" right="-4" top="-4" bottom="-4"/>
</HitRectInsets>
<KeyValues>
<KeyValue key="upBeginTexture" value="minimal-scrollbar-small-thumb-top" type="string"/>
<KeyValue key="upMiddleTexture" value="minimal-scrollbar-small-thumb-middle" type="string"/>
<KeyValue key="upEndTexture" value="minimal-scrollbar-small-thumb-bottom" type="string"/>
<KeyValue key="overBeginTexture" value="minimal-scrollbar-small-thumb-top-over" type="string"/>
<KeyValue key="overMiddleTexture" value="minimal-scrollbar-small-thumb-middle-over" type="string"/>
<KeyValue key="overEndTexture" value="minimal-scrollbar-small-thumb-bottom-over" type="string"/>
<KeyValue key="downBeginTexture" value="minimal-scrollbar-small-thumb-top-down" type="string"/>
<KeyValue key="downMiddleTexture" value="minimal-scrollbar-small-thumb-middle-down" type="string"/>
<KeyValue key="downEndTexture" value="minimal-scrollbar-small-thumb-bottom-down" type="string"/>
<KeyValue key="mouseDownSoundKitID" value="SOUNDKIT.U_CHAT_SCROLL_BUTTON" type="global"/>
</KeyValues>
<Layers>
<Layer level="ARTWORK">
<Texture parentKey="Begin" atlas="minimal-scrollbar-small-thumb-top" useAtlasSize="true">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="End" atlas="minimal-scrollbar-small-thumb-bottom" useAtlasSize="true">
<Anchors>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture parentKey="Middle" atlas="minimal-scrollbar-small-thumb-middle" useAtlasSize="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Begin" relativePoint="BOTTOMLEFT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.End" relativePoint="TOPRIGHT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad method="OnLoad"/>
<OnSizeChanged method="OnSizeChanged"/>
<OnEnter method="OnEnter"/>
<OnLeave method="OnLeave"/>
<OnMouseDown method="OnMouseDown"/>
<OnMouseUp method="OnMouseUp"/>
<OnEnable method="OnEnable"/>
<OnDisable method="OnDisable"/>
</Scripts>
</EventButton>
</Frames>
</Frame>
<EventButton parentKey="Back" inherits="MinimalScrollBarStepperScripts">
<Anchors>
<Anchor point="TOP"/>
</Anchors>
<KeyValues>
<KeyValue key="direction" value="ScrollControllerMixin.Directions.Decrease" type="global"/>
<KeyValue key="normalTexture" value="minimal-scrollbar-arrow-top" type="string"/>
<KeyValue key="overTexture" value="minimal-scrollbar-arrow-top-over" type="string"/>
<KeyValue key="downTexture" value="minimal-scrollbar-arrow-top-down" type="string"/>
<KeyValue key="disabledTexture" value="minimal-scrollbar-arrow-top" type="string"/>
<KeyValue key="mouseDownSoundKitID" value="SOUNDKIT.SOULBINDS_SCROLLBAR_BUTTON" type="global"/>
</KeyValues>
<Size x="17" y="11"/>
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Texture"/>
</Layer>
</Layers>
</EventButton>
<EventButton parentKey="Forward" inherits="MinimalScrollBarStepperScripts">
<KeyValues>
<KeyValue key="direction" value="ScrollControllerMixin.Directions.Increase" type="global"/>
<KeyValue key="normalTexture" value="minimal-scrollbar-arrow-bottom" type="string"/>
<KeyValue key="overTexture" value="minimal-scrollbar-arrow-bottom-over" type="string"/>
<KeyValue key="downTexture" value="minimal-scrollbar-arrow-bottom-down" type="string"/>
<KeyValue key="disabledTexture" value="minimal-scrollbar-bottom-top" type="string"/>
<KeyValue key="mouseDownSoundKitID" value="SOUNDKIT.SOULBINDS_SCROLLBAR_BUTTON" type="global"/>
</KeyValues>
<Size x="17" y="11"/>
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Texture"/>
</Layer>
</Layers>
</EventButton>
</Frames>
</EventFrame>
</Ui>