]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menu/templates.menu
fix cheat
[divverent/nexuiz.git] / data / menu / 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            [DefaultSliderBarSize]
74         sizeSlider      [DefaultSliderSize]
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 Template List List
101 {
102         fontSize        [DefaultFontSize]
103         color           [DefaultTextColor]
104         colorSelected   [DefaultSelTextColor]
105         colorPressed    [DefaultPreTextColor]
106         colorInactive   [DefaultInaTextColor]
107         alphas_x        [DefaultTextAlpha]
108         alphas_y        [DefaultSelTextAlpha]
109         alphas_z        [DefaultPreTextAlpha]
110         alphaInactive   [DefaultInaTextAlpha]
111         drawFlags_x     [DefaultTextDrawFlag]
112         drawFlags_y     [DefaultSelTextDrawFlag]
113         drawFlags_z     [DefaultPreTextDrawFlag]
114         drawFlagInactive [DefaultInaTextDrawFlag]
115         soundSelected   [DefaultSelectSound]
116         soundPressed    [DefaultPressSound]
117 }
118 DeriveTemplate TextButton ValueButton
119 {
120         type    "Item_ValueButton"
121 }
122 DeriveTemplate PictureButton PictureValueButton
123 {
124         type    "Item_ValueButton"
125 }
126 DeriveTemplate Label MultiLabel
127 {
128         type    "Item_MultiLabel"
129 }
130 DeriveTemplate TextButton SwitchButton
131 {
132         type    "Item_SwitchButton"
133 }
134 DeriveTemplate Picture Gecko
135 {
136         type    "Item_Gecko"
137 }
138 //////////////////////////////////////////////////////////////////////////////////
139 // Derived items
140 //////////////////////////////////////////////////////////////////////////////////
141 Template Arrangement Composition
142 {
143         flag            [FlagEmbedded]
144 }
145 //////////////////////////////////////////////////////////////////////////////////
146 // Specialized items
147 //////////////////////////////////////////////////////////////////////////////////
148 Template DataLink_ValueSwitch DataLink_OnOffSwitch
149 {
150         minValue        0.0
151         maxValue        1.0
152         descList        "'Off' 'On'"
153         link            "##up"
154 }
155 Template DataLink_Value DataLink_ZeroOneValue
156 {
157         minValue        0.0
158         maxValue        1.0
159         stepValue       0.05
160         link            "##up"
161 }
162 Template DataLink_Value DataLink_SettingValue
163 {
164         minValue        0.0
165         maxValue        9999.0
166         stepValue       0.01
167         link            "##up"
168 }
169 Template DataLink_Text DataLink_SettingText
170 {
171         maxValue        9
172         link            "##down"
173
174         Template DataLink_TextValue DataLink_TextValue
175         {
176                 link    "##up prev"
177         }
178 }
179 //////////////////////////////////////////////////////////////////////////////////
180 // Nexuiz specialized items
181 //////////////////////////////////////////////////////////////////////////////////
182 #define Nex_DefaultHorzDirection        '20 0 0'
183 #define Nex_DefaultVertDirection        '0 10 0'
184 Template Automation_Job Nex_Automation_Option_Slider
185 {
186         action Nex_Automation_Option_Slider
187 }
188 Template Automation_Job Nex_Automation_Option_EditBox
189 {
190         action Nex_Automation_Option_EditBox
191 }
192 Template Automation_Job Nex_Automation_Option_Switch
193 {
194         action Nex_Automation_Option_Switch
195 }
196 DeriveTemplate Composition Nex_Composition
197 {
198         direction       [Nex_DefaultHorzDirection]
199 }
200 DeriveTemplate Picture Nex_Line
201 {
202         picture "gfx/m_dot"
203         size    "200 10"
204 }
205 Item Custom Nex_Void
206 {
207         size    "200 12"
208         flag    [FlagNoSelect]
209 }
210
211 DeriveTemplate TextButton Nex_KeyButton
212 {
213         type    "Item_Nex_KeyButton"
214 }
215 DeriveTemplate MultiLabel Nex_Credits
216 {
217         type    "Item_Nex_Credits"
218 }
219 DeriveTemplate Label Nex_HostCache_StringField
220 {
221         type    "Item_Nex_HostCache_StringField"
222 }
223 DeriveTemplate Label Nex_HostCache_ValueField
224 {
225         type    "Item_Nex_HostCache_ValueField"
226 }
227 DeriveTemplate Label Nex_HostCache_Players
228 {
229         type    "Item_Nex_HostCache_Players"
230 }
231 DeriveTemplate Label Nex_HostCache_Ping
232 {
233         type    "Item_Nex_HostCache_Ping"
234 }
235 DeriveTemplate PictureButton Nex_HostCache_Entry
236 {
237         normal          "$gfx/white"
238         drawFlags       [DrawFlagModulate]
239         type            "Item_Nex_HostCache_Entry"
240 }
241 DeriveTemplate Nex_Composition Nex_Option_Slider
242 {
243         DeriveTemplate Nex_Automation_Option_Slider Automation
244         {}
245         DeriveTemplate TextButton       Description
246         {}
247         DeriveTemplate Slider           Slider
248         {
249                 action  Nex_Action_TestOnChange
250         }
251         DeriveTemplate ValueButton      Value
252         {}
253 }
254 DeriveTemplate Nex_Composition Nex_Option_Switch
255 {
256         DeriveTemplate Nex_Automation_Option_Switch Automation
257         {}
258         DeriveTemplate TextButton       Description
259         {}
260         DeriveTemplate SwitchButton     Switch
261         {
262                 action  Nex_Action_TestOnChange
263         }
264 }
265 DeriveTemplate Nex_Composition Nex_Option_EditBox
266 {
267         DeriveTemplate Nex_Automation_Option_EditBox Automation
268         {}
269         DeriveTemplate TextButton Description
270         {}
271         DeriveTemplate EditBox EditBox
272         {
273                 size    '260 12'
274                 action  Nex_Action_TestOnChange
275                 select  Nex_Action_TestOnSelect
276         }
277 }