blob: 73b5fce55acfdefff161cd7bb0948102d4242e87 (
plain) (
blame)
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
|
<!-- =======================================================================================================
<Wasabi:TitleBar /> implmentation
Available parameters :
- All params for Group
- All params for Text
Required objects : (these objects are manipulated by the script, so overriding with script content inheritance
will require you to have these objects. Otherwise, you should be fine)
- Group id="wasabi.titlebar.streak.left"
- Group id="wasabi.titlebar.streak.right"
- Layer id="mousetrap" (this object shoud cover the content of the group)
======================================================================================================== -->
<groupdef id="wasabi.titlebar" xuitag="Wasabi:TitleBar" embed_xui="window.titlebar.title">
<group
id="wasabi.titlebar.streak"
instanceid="wasabi.titlebar.streak.left"
x="0" y="3"
w="95" h="9"
/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.active" w="-20"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.inactive" w="-20"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.active" x="-10"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.inactive" x="-10"/>
<text
id="window.titlebar.title"
x="100" y="1"
w="50" h="15"
default=":componentname"
font="Arial" fontsize="14"
color="titlebar.text.color"
shadowcolor="0,0,0"
shadowx="1" shadowy="1"
bold="1"
inactiveAlpha="128"
forceuppercase="1"
/>
<layer
id="window.titlebar.title.overlay"
x="100" y="4"
w="1" h="11"
image="wasabi.titlebar.overlay"
/>
<group
id="wasabi.titlebar.streak"
instanceid="wasabi.titlebar.streak.right"
x="155" y="3"
w="-155" relatw="1" h="9"
sysregion="1"
/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.active" x="10" w="-20"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.inactive" x="10" w="-20"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.active" x="0"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.inactive" x="0"/>
<layer id="mousetrap" x="0" y="0" w="0" h="0" relatw="1" relath="1" move="1"/>
<script id="titlebar" file="scripts/titlebar.maki" param="wasabi.titlebar.streak.left;window.titlebar.title;wasabi.titlebar.streak.right" />
</groupdef>
<!-- =======================================================================================================
This implements a title streak bar. Dependencies are limited to the wasabi.titlebar group, in other words, if you remove
the sendparams in the above group, none of these objects are required.
======================================================================================================== -->
<groupdef id="wasabi.titlebar.streak">
<layer
id="titlebar.left.active"
x="0" y="1"
image="wasabi.titlebar.left.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.center.active"
x="10" y="1" w="-10"
relatw="1"
image="wasabi.titlebar.center.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.right.active"
x="-10" y="1"
relatx="1"
image="wasabi.titlebar.right.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.left.inactive"
x="0" y="1"
image="wasabi.titlebar.left.inactive"
activeAlpha="0"
/>
<layer
id="titlebar.center.inactive"
x="10" y="1" w="-10"
relatw="1"
image="wasabi.titlebar.center.inactive"
activeAlpha="0"
/>
<layer
id="titlebar.right.inactive"
x="-10" relatx="1" y="1"
image="wasabi.titlebar.right.inactive"
activeAlpha="0"
/>
</groupdef>
|