1# menuconf.tab
2#
3# Menu configuration for Simutrans
4#
5# author: Markus Pristovsek
6#
7# changes for pak128: FrankP, VS, DirrrtyDirk
8#
9
10# With this file, each menu/tool/toolbar can be assigned a meaning.
11# There are four different kind of tools:
12#  general_tools: like query, remove, alter land, ...
13#  click tools: pause, fast forward, ...
14#  dialoge tools: open a dialoge like minimap, settings, finances, ...
15#  toolbar tools: open toolbars like slope tools, road tools, ...
16
17icon_width = 32
18icon_height = 32
19
20
21# FIRST SECTION: general tools
22# these tools have an icon, a cursor, and maybe a sound
23# each entry has the form: general_tool[i]=a,b,c,k
24# i is the tool number (as seen below)
25# a is the icon as number in menu: menu.GeneralTools.pak
26# b is the cursor as number in cursor: cursor.GeneralTools.pak
27# c is the sound on success
28# k is the key to toggle this
29# ommitting a parameter will set default values (i.e. no image, no sound, no default string)
30# These are the default definition.
31#
32# currently define values for i
33# WKZ_ABFRAGE =            0
34# WKZ_REMOVER =            1
35# WKZ_RAISE_LAND =         2
36# WKZ_LOWER_LAND =         3
37# WKZ_SETSLOPE =           4
38# WKZ_RESTORESLOPE =       5
39# WKZ_MARKER =             6
40# WKZ_CLEAR_RESERVATION =  7
41# WKZ_TRANSFORMER =        8
42# WKZ_ADD_CITY =           9
43# WKZ_CHANGE_CITY_SIZE =  10
44# WKZ_PLANT_TREE =        11
45# WKZ_FAHRPLAN_ADD =      12 // only for internal use
46# WKZ_FAHRPLAN_INS =      13 // only for internal use
47# WKZ_WEGEBAU =           14 // parameter either string with name of number for default way
48# WKZ_BRUECKENBAU =       15
49# WKZ_TUNNELBAU =         16
50# WKZ_WAYREMOVER =        17
51# WKZ_WAYOBJ =            18
52# WKZ_STATION =           19
53# WKZ_ROADSIGN =          20
54# WKZ_DEPOT =             21
55# WKZ_BUILD_HAUS =        22
56# WKZ_LAND_CHAIN =        23
57# WKZ_CITY_CHAIN =        24
58# WKZ_BUILD_FACTORY =     25
59# WKZ_LINK_FACTORY =      26
60# WKZ_HEADQUARTER =       27
61# WKZ_LOCK_GAME =         28
62# WKZ_ADD_CITYCAR =       29
63# WKZ_FOREST =            30
64# WKZ_STOP_MOVER =        31
65# WKZ_MAKE_STOP_PUBLIC =  32
66# WKZ_REMOVE_WAYOBJ=      33
67# WKZ_UNDERGROUND_PICK =  34
68# WKZ_BUY_HOUSE =         35
69# WKZ_CITYROAD =          36
70# WKZ_CHANGE_WATER_HEIGHT=38
71# WKZ_SET_CLIMATE =		  39
72#
73#
74general_tool[0]=0,0,9,a
75general_tool[1]=1,1,14,r
76general_tool[2]=2,2,11,u
77general_tool[3]=3,3,11,d
78# general tool 4 needs a parameter => icon defined in toolbar but no cursor yet
79general_tool[4]=,4,11,
80general_tool[5]=4,4,11,
81general_tool[6]=5,5,9,M
82general_tool[7]=6,6,,b
83general_tool[8]=7,7,11,g
84general_tool[9]=8,8,11,C
85# general tool 10 needs a parameter + icon & cursor depends on it => not defined here
86general_tool[11]=9,9,9,§
87# define the cursor for schedule tools
88general_tool[12]=,10,,
89general_tool[13]=,10,,
90general_tool[14]=,,11,
91general_tool[15]=,,12,
92general_tool[16]=,,9,
93general_tool[17]=,1,11,
94general_tool[18]=,,11,
95general_tool[19]=,,11,
96general_tool[20]=,,11,
97general_tool[21]=,,11,
98general_tool[22]=,12,11,
99general_tool[23]=,12,11,
100general_tool[24]=,12,11,
101general_tool[25]=,12,11,
102# we do not use general tool 23...25 directly => undefined icons
103general_tool[26]=10,11,,
104general_tool[27]=11,12,,h
105general_tool[28]=12,7,,
106general_tool[29]=17,,,
107general_tool[30]=13,9,,
108general_tool[31]=14,11,,
109general_tool[32]=15,11,,
110general_tool[33]=18,1,11,
111general_tool[34]=,,11,
112general_tool[35]=16,13,11,K
113# cityroad (36) not set up here
114
115
116# SECOND SECTION: simple tools
117# since these tools act immeadiately
118# they have only an icon assigned
119# each entry has the form: dialoge_tool[i]=a,k
120# i is the tool number (as seen below)
121# a is the icon as number in menu: menu.SimpleTools.pak
122# k is the key to toggle this
123#
124# WKZ_PAUSE =               0
125# WKZ_FASTFORWARD =         1
126# WKZ_SCREENSHOT =          2
127# WKZ_INCREASE_INDUSTRY =   3
128# WKZ_UNDO =                4
129# WKZ_SWITCH_PLAYER =       5
130# WKZ_STEP_YEAR =           6
131# WKZ_CHANGE_GAME_SPEED =   7
132# WKZ_ZOOM_IN =             8
133# WKZ_ZOOM_OUT =            9
134# WKZ_SHOW_COVERAGE =      10
135# WKZ_SHOW_NAMES =         11
136# WKZ_SHOW_GRID =          12
137# WKZ_SHOW_TREES =         13
138# WKZ_SHOW_HOUSES =        14
139# WKZ_SHOW_UNDERGROUND =   15
140# WKZ_ROTATE90 =           16
141# WKZ_QUIT =               17
142# WKZ_FILL_TREES =         18
143# WKZ_DAYNIGHT_LEVEL =     19
144# WKZ_VEHICLE_TOOLTIPS =   20
145# WKZ_TOOGLE_PAX =         21
146# WKZ_TOOGLE_PEDESTRIANS = 22
147# WKZ_TRAFFIC_LEVEL =      23
148# WKZ_CONVOI_TOOL =        24
149# WKZ_LINE_TOOL =          25
150# WKZ_DEPOT_TOOL =         26 // only for internal use
151# WKZ_PWDHASH_TOOL =       27 // only for internal use
152# WKZ_SET_PLAYER_TOOL =    28 // only for internal use
153# WKZ_TRAFFIC_LIGHT_TOOL = 29 // only for internal use
154# WKZ_CHANGE_CITY_TOOL =   30 // only for internal use
155# WKZ_RENAME_TOOL =        31 // only for internal use
156# WKZ_ADD_MESSAGE_TOOL =   32 // only for internal use
157# WKZ_TOGGLE_RESERVATION = 33
158# WKZ_VIEW_OWNER =         34
159
160simple_tool[0]=0,p
161simple_tool[1]=1,W
162simple_tool[2]=2,c
163simple_tool[3]=3,
164simple_tool[4]=4,z
165simple_tool[5]=5,P
166simple_tool[6]=6,
167# simple tool 7 needs a parameter
168simple_tool[8]=7,>
169simple_tool[9]=8,<
170# lots of icons still not drawn ...
171simple_tool[10]=,v
172simple_tool[11]=,!
173simple_tool[12]=9,#
174simple_tool[13]=,%
175simple_tool[14]=,"
176simple_tool[15]=,U
177simple_tool[16]=4,R
178# Quit (17) removed due to people accidentally killing their games
179#simple_tool[17]=,X
180simple_tool[20]=,/
181simple_tool[34]=,O
182
183
184# THIRD SECTION: dialoge tools
185# since these tools immeadiately open only a dialoge,
186# they have only an icon assigned
187# each entry has the form: dialoge_tool[i]=a,k
188# i is the tool number (as seen below)
189# a is the icon as number in menu: menu.DialogeTools.pak
190# k is the key to toggle this
191#
192# WKZ_HELP =              0
193# WKZ_OPTIONEN =          1
194# WKZ_MINIMAP =           2
195# WKZ_LINEOVERVIEW =      3
196# WKZ_MESSAGE =           4
197# WKZ_FINANCES =          5
198# WKZ_PLAYERS =           6
199# WKZ_DISPLAYOPTIONS =    7
200# WKZ_SOUND =             8
201# WKZ_LANGUAGE =          9
202# WKZ_PLAYERCOLOR =      10
203# WKZ_JUMP =             11
204# WKZ_LOAD =             12
205# WKZ_SAVE =             13
206# WKZ_LIST_HALT =        14
207# WKZ_LIST_CONVOI =      15
208# WKZ_LIST_TOWN =        16
209# WKZ_LIST_GOODS =       17
210# WKZ_LIST_FACTORY =     18
211# WKZ_LIST_CURIOSITY =   19
212# WKZ_EDIT_FACTORY =     20
213# WKZ_EDIT_ATTRACTION =  21
214# WKZ_EDIT_HOUSE =       22
215# WKZ_EDIT_TREE =        23
216# WKZ_ENLARGE_MAP =      24
217# WKZ_LIST_LABEL =       25
218# WKZ_CLIMATES =         26
219# WKZ_SETTINGS =         27
220# WKZ_GAMEINFO_NETWORK = 28
221#
222dialog_tool[0]=0,?
223dialog_tool[1]=1,Q
224dialog_tool[2]=2,m
225dialog_tool[3]=3,w
226dialog_tool[4]=4,B
227dialog_tool[5]=5,f
228dialog_tool[6]=6,k
229dialog_tool[7]=7,
230dialog_tool[8]=8,
231dialog_tool[9]=9,
232dialog_tool[10]=10,
233dialog_tool[11]=11,J
234dialog_tool[12]=12,L
235dialog_tool[13]=13,S
236dialog_tool[14]=14,H
237dialog_tool[15]=15,V
238dialog_tool[16]=16,T
239dialog_tool[17]=17,G
240dialog_tool[18]=18,F
241dialog_tool[19]=19,A
242dialog_tool[20]=21,
243dialog_tool[21]=22,
244dialog_tool[22]=23,
245dialog_tool[23]=24,
246dialog_tool[24]=25,
247dialog_tool[25]=20,
248#dialog_tool[26]=
249dialog_tool[27]=,$
250dialog_tool[28]=26,n
251
252
253# FINAL SECTION: compose all tool bars
254# now the defintion of all tool bars
255# in general only toolbar[0] is needed, which is the main menu
256# all other toolbars are derived from it
257# Each entry is a[i],b,k,c,d
258# a[i] is either: general_tool[i], simple_tool[i], dialog_tool[i], toolbar[i], -, ways(waytype), signs(waytype), wayobj(waytype), stops(utype), depots(waytype)
259# b could be a different icon from the previous (if any) tool definition taken from menu.ToolbarTools.pak
260# k could be a different key binding
261# c is the default parameter
262# d is the helpfile name (only if a is toolbar[i])
263#
264# Entry without an icon will not be shown. Use - for seperator.
265#
266# following way types are defined (for nearly everything)
267# road_wt          =   1
268# track_wt         =   2
269# water_wt         =   3
270# monorail_wt      =   5
271# maglev_wt        =   6
272# tram_wt          =   7
273# narrowgauge_wt   =   8
274# air_wt           =  16
275# powerline_wt     = 128
276#
277# subtypes for ways(x,#)
278# flat = 0
279# elevated/runway = 1
280# tram = 7 (only for track)
281# special (eg. fence) = 255
282#
283# following building types are defined (for buildings(#))
284# unbekannt         =  0
285# attraction_city   =  1
286# attraction_land   =  2
287# denkmal           =  3
288# fabrik            =  4
289# rathaus           =  5
290# weitere           =  6
291# firmensitz        =  7
292# hafen             = 11
293# the following are in the form x,y with y= waytype (0 for none)
294# depot             = 33
295# generic_stop      = 34
296# generic_extension = 35
297#
298#
299# IMPORTANT: toolbar[2] must not be mentioned before toolbar[1]!
300# SPACES have a meaning here! Do not use spaces, if you did not intend so!
301#
302
303# toolbar[0] is always main menu
304toolbar[0][0]=dialog_tool[1]
305toolbar[0][1]=dialog_tool[2]
306toolbar[0][2]=general_tool[0]
307toolbar[0][3]=toolbar[1],0,,SLOPETOOLS,slopetools.txt
308toolbar[0][4]=toolbar[2],1,,RAILTOOLS,railtools.txt
309toolbar[0][5]=toolbar[3],2,,MONORAILTOOLS,monorailtools.txt
310toolbar[0][6]=toolbar[4],28,,MAGLEVTOOLS,maglevtools.txt
311toolbar[0][7]=toolbar[5],3,,TRAMTOOLS,tramtools.txt
312toolbar[0][8]=toolbar[6],4,,ROADTOOLS,roadtools.txt
313toolbar[0][9]=toolbar[7],5,,SHIPTOOLS,shiptools.txt
314toolbar[0][10]=toolbar[8],6,,AIRTOOLS,airtools.txt
315toolbar[0][11]=toolbar[9],31,,NARROWGAUGETOOLS,railtools.txt
316toolbar[0][12]=toolbar[10],7,,SPECIALTOOLS,special.txt
317toolbar[0][13]=general_tool[1]
318toolbar[0][14]=-
319toolbar[0][15]=dialog_tool[3]
320toolbar[0][16]=toolbar[11],24,,EDITTOOLS,edittools.txt
321toolbar[0][17]=toolbar[12],8,,LISTTOOLS,list.txt
322toolbar[0][18]=dialog_tool[4]
323toolbar[0][19]=dialog_tool[5]
324toolbar[0][20]=-
325toolbar[0][21]=simple_tool[2]
326toolbar[0][22]=simple_tool[0],,^p,
327toolbar[0][23]=simple_tool[1]
328toolbar[0][24]=dialog_tool[0]
329# invisible tools (here because they need a parameter or are added twice)
330toolbar[0][25]=-
331toolbar[0][26]=simple_tool[7],,.,+1
332toolbar[0][27]=simple_tool[7],,#44,-1
333# since ST r2031: allow manual change of daylight
334toolbar[0][28]=simple_tool[19],,+,+
335toolbar[0][29]=simple_tool[19],,-,-
336toolbar[0][30]=simple_tool[19],,*,4
337toolbar[0][31]=simple_tool[8]
338toolbar[0][32]=simple_tool[9]
339# underground slice mode modifications
340toolbar[0][33]=simple_tool[15],29,^U,K
341toolbar[0][34]=simple_tool[15],,END,I
342toolbar[0][35]=simple_tool[15],,HOME,D
343toolbar[0][36]=simple_tool[12]
344toolbar[0][37]=simple_tool[16]
345# network mode button
346toolbar[0][38]=-
347toolbar[0][39]=dialog_tool[28]
348
349# slope tools
350toolbar[1][0]=general_tool[2]
351toolbar[1][1]=general_tool[3]
352toolbar[1][2]=general_tool[4],10,,36 #southslope
353toolbar[1][3]=general_tool[4],11,,4 #northslope
354toolbar[1][4]=general_tool[4],12,,12 #westslope
355toolbar[1][5]=general_tool[4],13,,28 #eastslope
356toolbar[1][6]=general_tool[4],43,,72 #southslope x2
357toolbar[1][7]=general_tool[4],44,,8 #northslope x2
358toolbar[1][8]=general_tool[4],45,,24 #westslope x2
359toolbar[1][9]=general_tool[4],46,,56 #eastslope x2
360toolbar[1][10]=general_tool[4],14,,82 #all up slope
361toolbar[1][11]=general_tool[4],15,,83 #all down slope
362toolbar[1][12]=general_tool[5] #natural slope
363toolbar[1][13]=general_tool[38],34,,-1 #decrease water height
364toolbar[1][14]=general_tool[38],33,,+1 #increase water height
365toolbar[1][15]=general_tool[39],42,,0 #set climate water
366toolbar[1][16]=general_tool[39],35,,1 #set climate desert
367toolbar[1][17]=general_tool[39],37,,2 #set climate tropical
368toolbar[1][18]=general_tool[39],40,,3 #set climate mediterannean
369toolbar[1][19]=general_tool[39],36,,4 #set climate temperate
370toolbar[1][20]=general_tool[39],38,,5 #set climate tundra
371toolbar[1][21]=general_tool[39],39,,6 #set climate rocky
372toolbar[1][22]=general_tool[39],41,,7 #set climate arctic
373
374# railtools (waytype 2)
375toolbar[2][0]=ways(2,0)
376toolbar[2][1]=ways(2,1)
377toolbar[2][2]=bridges(2)
378toolbar[2][3]=tunnels(2)
379toolbar[2][4]=wayobjs(2)
380toolbar[2][5]=signs(2)
381toolbar[2][6]=general_tool[17],16,,2
382toolbar[2][7]=general_tool[33],,,2
383toolbar[2][8]=buildings(33,2)
384toolbar[2][9]=buildings(34,2)
385toolbar[2][10]=buildings(35,2)
386toolbar[2][11]=general_tool[14],,t,2
387toolbar[2][12]=general_tool[18],,e,2
388
389# monorailtools (waytype 5)
390toolbar[3][0]=ways(5,0)
391toolbar[3][1]=ways(5,1)
392toolbar[3][2]=bridges(5)
393toolbar[3][3]=tunnels(5)
394toolbar[3][4]=wayobjs(5)
395toolbar[3][5]=signs(5)
396toolbar[3][6]=general_tool[17],17,,5
397toolbar[3][7]=buildings(33,5)
398toolbar[3][8]=buildings(34,5)
399toolbar[3][9]=buildings(35,5)
400
401# maglevtools (waytype 6)
402toolbar[4][0]=ways(6,0)
403toolbar[4][1]=ways(6,1)
404toolbar[4][2]=bridges(6)
405toolbar[4][3]=tunnels(6)
406toolbar[4][4]=wayobjs(6)
407toolbar[4][5]=signs(6)
408toolbar[4][6]=general_tool[17],27,,6
409toolbar[4][7]=buildings(33,6)
410toolbar[4][8]=buildings(34,6)
411toolbar[4][9]=buildings(35,6)
412
413# tramtools (waytype 7)
414toolbar[5][0]=ways(7,0)
415toolbar[5][1]=ways(2,7)
416toolbar[5][2]=wayobjs(7)
417toolbar[5][3]=signs(7)
418toolbar[5][4]=general_tool[17],16,,2
419toolbar[5][5]=general_tool[33],,,2
420toolbar[5][6]=buildings(33,7)
421toolbar[5][7]=buildings(34,7)
422
423# road stops
424#toolbar[4][7]=buildings(34,1)
425
426# roadtools (waytype 1)
427toolbar[6][0]=ways(1,0)
428toolbar[6][1]=ways(1,1)
429toolbar[6][2]=bridges(1)
430toolbar[6][3]=tunnels(1)
431toolbar[6][4]=wayobjs(1)
432toolbar[6][5]=signs(1)
433toolbar[6][6]=general_tool[17],18,,1
434toolbar[6][7]=general_tool[33],,,1
435toolbar[6][8]=buildings(33,1)
436toolbar[6][9]=buildings(34,1)
437toolbar[6][10]=buildings(35,1)
438toolbar[6][11]=general_tool[14],,s,1
439
440# shiptools (waytype 3)
441toolbar[7][0]=ways(3,0)
442toolbar[7][1]=ways(3,1)
443toolbar[7][2]=bridges(3)
444toolbar[7][3]=tunnels(3)
445toolbar[7][4]=wayobjs(3)
446toolbar[7][5]=signs(3)
447toolbar[7][6]=general_tool[17],20,,3
448toolbar[7][7]=buildings(33,3)
449toolbar[7][8]=buildings(34,3)
450toolbar[7][9]=buildings(11,3)
451toolbar[7][10]=buildings(35,3)
452
453# airtools (waytype 16)
454toolbar[8][0]=ways(16,0)
455toolbar[8][1]=ways(16,1)
456toolbar[8][2]=bridges(16)
457toolbar[8][3]=wayobjs(16)
458toolbar[8][4]=signs(16)
459toolbar[8][5]=general_tool[17],21,,16
460toolbar[8][6]=buildings(33,16)
461toolbar[8][7]=buildings(34,16)
462toolbar[8][8]=buildings(35,16)
463
464# narrow gauge tools
465toolbar[9][0]=ways(8,0)
466toolbar[9][1]=ways(8,1)
467toolbar[9][2]=bridges(8)
468toolbar[9][3]=tunnels(8)
469toolbar[9][4]=wayobjs(8)
470toolbar[9][5]=signs(8)
471toolbar[9][6]=general_tool[17],32,,8
472toolbar[9][7]=general_tool[33],,,8
473toolbar[9][8]=buildings(33,8)
474toolbar[9][9]=buildings(34,8)
475toolbar[9][10]=buildings(35,8)
476
477# specialtools
478toolbar[10][0]=buildings(35,0)
479# fences are usually special railways
480toolbar[10][1]=ways(2,255)
481toolbar[10][2]=general_tool[11]
482toolbar[10][3]=ways(128,0)
483toolbar[10][4]=bridges(128)
484toolbar[10][5]=tunnels(128)
485toolbar[10][6]=general_tool[17],30,,128
486toolbar[10][7]=general_tool[8]
487toolbar[10][8]=general_tool[6]
488toolbar[10][9]=general_tool[31]
489toolbar[10][10]=general_tool[32]
490toolbar[10][11]=general_tool[14],,l,128
491toolbar[10][12]=general_tool[35]
492toolbar[10][13]=simple_tool[5]
493toolbar[10][14]=dialog_tool[6]
494
495# editor tools
496toolbar[11][0]=general_tool[10],22,,+100
497toolbar[11][1]=general_tool[10],23,,-100
498toolbar[11][2]=general_tool[9]
499toolbar[11][3]=general_tool[30]
500toolbar[11][4]=general_tool[36],25,,
501toolbar[11][5]=ways(3,255)
502toolbar[11][6]=simple_tool[3]
503toolbar[11][7]=dialog_tool[20],,(
504toolbar[11][8]=general_tool[26]
505toolbar[11][9]=dialog_tool[21]
506toolbar[11][10]=dialog_tool[22],,&
507toolbar[11][11]=dialog_tool[23]
508toolbar[11][12]=general_tool[29]
509toolbar[11][13]=simple_tool[6]
510toolbar[11][14]=dialog_tool[24]
511toolbar[11][15]=general_tool[28]
512
513# list tools
514toolbar[12][0]=dialog_tool[14]
515toolbar[12][1]=dialog_tool[15]
516toolbar[12][2]=dialog_tool[16]
517toolbar[12][3]=dialog_tool[17]
518toolbar[12][4]=dialog_tool[18]
519toolbar[12][5]=dialog_tool[19]
520toolbar[12][6]=dialog_tool[25]
521
522# EOF
523