]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/templates.menu
Change 'cd volume' to 'music volume'
[divverent/nexuiz.git] / scmenu / templates.menu
1 // Property of Alientrap
2 //
3 // Templates
4
5 //////////////////////////////////////////////////////////////////////////////////
6 // Basic default templates (setting default properties)
7 //////////////////////////////////////////////////////////////////////////////////
8 Template Rect Rect
9 {
10         size            [InfiniteVector]
11         alpha           1.0
12         drawFlag        [DrawFlagNormal]
13         color           '1.0 1.0 1.0'
14 }
15 Template Label Label
16 {
17         color           [DefaultTextColor]
18         alpha           [DefaultTextAlpha]
19         drawFlag        [DefaultTextDrawFlag]
20         fontSize        [DefaultFontSize]
21 }
22 Template Picture Picture
23 {
24         color           [DefaultPicColor]
25         alpha           [DefaultPicAlpha]
26         drawFlag        [DefaultPicDrawFlag]
27 }
28 Template Button TextButton
29 {
30         fontSize        [DefaultFontSize]
31         color           [DefaultTextColor]
32         colorSelected   [DefaultSelTextColor]
33         colorPressed    [DefaultPreTextColor]
34         alphas_x        [DefaultTextAlpha]
35         alphas_y        [DefaultSelTextAlpha]
36         alphas_z        [DefaultPreTextAlpha]
37         drawFlags_x     [DefaultTextDrawFlag]
38         drawFlags_y     [DefaultSelTextDrawFlag]
39         drawFlags_z     [DefaultPreTextDrawFlag]
40         soundSelected   [DefaultSelectSound]
41         soundPressed    [DefaultPressSound]
42 }
43 Template Button PictureButton
44 {
45         color           [DefaultPicColor]
46         colorSelected   [DefaultSelPicColor]
47         colorPressed    [DefaultPrePicColor]
48         alphas_x        [DefaultPicAlpha]
49         alphas_y        [DefaultSelPicAlpha]
50         alphas_z        [DefaultPrePicAlpha]
51         drawFlags_x     [DefaultPicDrawFlag]
52         drawFlags_y     [DefaultSelPicDrawFlag]
53         drawFlags_z     [DefaultPrePicDrawFlag]
54         soundSelected   [DefaultSelectSound]
55         soundPressed    [DefaultPressSound]
56 }
57 Template Slider Slider
58 {
59         color           [DefaultPicColor]
60         //colorSelected [DefaultSelPicColor]
61         colorSelected   "0.9 0.9 1.0"
62         alphas_x        [DefaultPicAlpha]
63         alphas_y        [DefaultSelPicAlpha]
64         drawFlags_x     [DefaultPicDrawFlag]
65         drawFlags_y     [DefaultSelPicDrawFlag]
66         soundSelected   [DefaultSelectSound]
67         soundIncrease   [DefaultIncreaseSound]
68         soundDecrease   [DefaultDecreaseSound]
69         picture         [DefaultSliderBar]
70         pictureSlider   [DefaultSlider]
71         proportions     [DefaultProportions]
72         direction       [DefaultDirection]
73         size            '144 12'
74         sizeSlider      '12 12'
75 }
76 Template EditBox EditBox
77 {
78         fontSize        [DefaultFontSize]
79         color           [DefaultTextColor]
80         colorSelected   [DefaultTextColor]
81         colorPressed    [DefaultPreTextColor]
82         alphas_x        [DefaultTextAlpha]
83         alphas_y        [DefaultSelTextAlpha]
84         alphas_z        [DefaultPreTextAlpha]
85         drawFlags_x     [DefaultTextDrawFlag]
86         drawFlags_y     [DefaultSelTextDrawFlag]
87         drawFlags_z     [DefaultPreTextDrawFlag]
88         colorCursor     [DefaultCursorColor]
89         colorCursorFlash [DefaultCursorFlashColor]
90         alphasCursor_x  [DefaultTextAlpha]
91         alphasCursor_y  [DefaultSelTextAlpha]
92         drawFlagsCursor_x [DefaultTextDrawFlag]
93         drawFlagsCursor_y [DefaultSelTextDrawFlag]
94         sizeCursor      [DefaultCursorSize]
95         sizeCursorFlash [DefaultCursorFlashSize]
96         soundSelected   [DefaultSelectSound]
97         soundMove       [DefaultIncreaseSound]
98         soundKey        [DefaultDecreaseSound]
99 }
100 DeriveTemplate TextButton ValueButton
101 {
102         type    "Item_ValueButton"
103 }
104 DeriveTemplate Label MultiLabel
105 {
106         type    "Item_MultiLabel"
107 }
108 DeriveTemplate TextButton SwitchButton
109 {
110         type    "Item_SwitchButton"
111 }
112 //////////////////////////////////////////////////////////////////////////////////
113 // Derived items
114 //////////////////////////////////////////////////////////////////////////////////
115 Template Arrangement Composition
116 {
117         flag            [FlagEmbedded]
118 }
119 //////////////////////////////////////////////////////////////////////////////////
120 // Specialized items
121 //////////////////////////////////////////////////////////////////////////////////
122 Template DataLink_ValueSwitch DataLink_OnOffSwitch
123 {
124         minValue        0.0
125         maxValue        1.0
126         descList        "'Off' 'On'"
127         link            "##up"
128 }
129 Template DataLink_Value DataLink_ZeroOneValue
130 {
131         minValue        0.0
132         maxValue        1.0
133         stepValue       0.05
134         link            "##up"
135 }
136 //////////////////////////////////////////////////////////////////////////////////
137 // Nexuiz specialized items
138 //////////////////////////////////////////////////////////////////////////////////
139 #define Nex_DefaultHorzDirection        '10 0 0'
140 #define Nex_DefaultVertDirection        '0 10 0'
141 Template Automation_Job Nex_Automation_Option_Slider
142 {
143         action Nex_Automation_Option_Slider
144 }
145 Template Automation_Job Nex_Automation_Option_EditBox
146 {
147         action Nex_Automation_Option_EditBox
148 }
149 Template Automation_Job Nex_Automation_Option_Switch
150 {
151         action Nex_Automation_Option_Switch
152 }
153 DeriveTemplate Composition Nex_Composition
154 {
155         direction       [Nex_DefaultHorzDirection]
156 }
157 DeriveTemplate Picture Nex_Line
158 {
159         picture "gfx/m_dot"
160         size    "200 10"
161 }
162 Item Custom Nex_Void
163 {
164         size    "200 12"
165         flag    [FlagNoSelect]
166 }
167
168 DeriveTemplate TextButton Nex_KeyButton
169 {
170         type    "Item_Nex_KeyButton"
171 }
172 DeriveTemplate MultiLabel Nex_Credits
173 {
174         type    "Item_Nex_Credits"
175 }
176 DeriveTemplate Label Nex_HostCache_StringField
177 {
178         type    "Item_Nex_HostCache_StringField"
179 }
180 DeriveTemplate Label Nex_HostCache_ValueField
181 {
182         type    "Item_Nex_HostCache_ValueField"
183 }
184 DeriveTemplate Label Nex_HostCache_Players
185 {
186         type    "Item_Nex_HostCache_Players"
187 }
188 DeriveTemplate PictureButton Nex_HostCache_Entry
189 {
190         normal          "$gfx/white"
191         drawFlags       [DrawFlagModulate]
192         type            "Item_Nex_HostCache_Entry"
193 }
194
195 DeriveTemplate Nex_Composition Nex_Option_Slider
196 {
197         DeriveTemplate Nex_Automation_Option_Slider Automation
198         {}
199         DeriveTemplate TextButton       Description
200         {}
201         DeriveTemplate Slider           Slider
202         {
203                 action  Nex_Action_TestOnChange
204         }
205         DeriveTemplate ValueButton      Value
206         {}
207 }
208 DeriveTemplate Composition Nex_Option_Switch
209 {
210         direction       [Nex_DefaultHorzDirection]
211
212         DeriveTemplate Nex_Automation_Option_Switch Automation
213         {}
214         DeriveTemplate TextButton       Description
215         {}
216         DeriveTemplate SwitchButton     Switch
217         {
218                 action  Nex_Action_TestOnChange
219         }
220 }