]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/templates.menu
Adding my current version of the scmenu to the nexuiz cvs.
[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
173 DeriveTemplate Label Nex_HostCache_StringField
174 {
175         type    "Item_Nex_HostCache_StringField"
176 }
177 DeriveTemplate Label Nex_HostCache_ValueField
178 {
179         type    "Item_Nex_HostCache_ValueField"
180 }
181 DeriveTemplate Label Nex_HostCache_Players
182 {
183         type    "Item_Nex_HostCache_Players"
184 }
185 DeriveTemplate TextButton Nex_HostCache_Entry
186 {
187         normal          "$gfx/white"
188         drawFlags       [DrawFlagModulate]
189         type            "Item_Nex_HostCache_Entry"
190 }
191
192 DeriveTemplate Nex_Composition Nex_Option_Slider
193 {
194         DeriveTemplate Nex_Automation_Option_Slider Automation
195         {}
196         DeriveTemplate TextButton       Description
197         {}
198         DeriveTemplate Slider           Slider
199         {
200                 action  Nex_Action_TestOnChange
201         }
202         DeriveTemplate ValueButton      Value
203         {}
204 }
205 DeriveTemplate Composition Nex_Option_Switch
206         {
207                 direction       [Nex_DefaultHorzDirection]
208
209                 DeriveTemplate Nex_Automation_Option_Switch Automation
210                 {}
211                 DeriveTemplate TextButton       Description
212                 {}
213                 DeriveTemplate SwitchButton     Switch
214                 {
215                         action  Nex_Action_TestOnChange
216                 }
217         }