]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/templates.menu
fixed 'eye gibbing repeatedly' bug (hopefully) and made gib code more consistent
[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 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 Label MultiLabel
123 {
124         type    "Item_MultiLabel"
125 }
126 DeriveTemplate TextButton SwitchButton
127 {
128         type    "Item_SwitchButton"
129 }
130 //////////////////////////////////////////////////////////////////////////////////
131 // Derived items
132 //////////////////////////////////////////////////////////////////////////////////
133 Template Arrangement Composition
134 {
135         flag            [FlagEmbedded]
136 }
137 //////////////////////////////////////////////////////////////////////////////////
138 // Specialized items
139 //////////////////////////////////////////////////////////////////////////////////
140 Template DataLink_ValueSwitch DataLink_OnOffSwitch
141 {
142         minValue        0.0
143         maxValue        1.0
144         descList        "'Off' 'On'"
145         link            "##up"
146 }
147 Template DataLink_Value DataLink_ZeroOneValue
148 {
149         minValue        0.0
150         maxValue        1.0
151         stepValue       0.05
152         link            "##up"
153 }
154 //////////////////////////////////////////////////////////////////////////////////
155 // Nexuiz specialized items
156 //////////////////////////////////////////////////////////////////////////////////
157 #define Nex_DefaultHorzDirection        '10 0 0'
158 #define Nex_DefaultVertDirection        '0 10 0'
159 Template Automation_Job Nex_Automation_Option_Slider
160 {
161         action Nex_Automation_Option_Slider
162 }
163 Template Automation_Job Nex_Automation_Option_EditBox
164 {
165         action Nex_Automation_Option_EditBox
166 }
167 Template Automation_Job Nex_Automation_Option_Switch
168 {
169         action Nex_Automation_Option_Switch
170 }
171 DeriveTemplate Composition Nex_Composition
172 {
173         direction       [Nex_DefaultHorzDirection]
174 }
175 DeriveTemplate Picture Nex_Line
176 {
177         picture "gfx/m_dot"
178         size    "200 10"
179 }
180 Item Custom Nex_Void
181 {
182         size    "200 12"
183         flag    [FlagNoSelect]
184 }
185
186 DeriveTemplate TextButton Nex_KeyButton
187 {
188         type    "Item_Nex_KeyButton"
189 }
190 DeriveTemplate MultiLabel Nex_Credits
191 {
192         type    "Item_Nex_Credits"
193 }
194 DeriveTemplate Label Nex_HostCache_StringField
195 {
196         type    "Item_Nex_HostCache_StringField"
197 }
198 DeriveTemplate Label Nex_HostCache_ValueField
199 {
200         type    "Item_Nex_HostCache_ValueField"
201 }
202 DeriveTemplate Label Nex_HostCache_Players
203 {
204         type    "Item_Nex_HostCache_Players"
205 }
206 DeriveTemplate PictureButton Nex_HostCache_Entry
207 {
208         normal          "$gfx/white"
209         drawFlags       [DrawFlagModulate]
210         type            "Item_Nex_HostCache_Entry"
211 }
212
213 DeriveTemplate Nex_Composition Nex_Option_Slider
214 {
215         DeriveTemplate Nex_Automation_Option_Slider Automation
216         {}
217         DeriveTemplate TextButton       Description
218         {}
219         DeriveTemplate Slider           Slider
220         {
221                 action  Nex_Action_TestOnChange
222         }
223         DeriveTemplate ValueButton      Value
224         {}
225 }
226 DeriveTemplate Composition Nex_Option_Switch
227 {
228         direction       [Nex_DefaultHorzDirection]
229
230         DeriveTemplate Nex_Automation_Option_Switch Automation
231         {}
232         DeriveTemplate TextButton       Description
233         {}
234         DeriveTemplate SwitchButton     Switch
235         {
236                 action  Nex_Action_TestOnChange
237         }
238 }