Loading...
 

Creating menus



The Menu systemlink

New from Simutrans version 0.100.0
   

Definitions in the menuconf.tablink


General Toolslink



     general_tool[i]=a,b,c,k
i
Number of tool
a
Number of icon in menu.GeneralTools.pak
b
Number of cursor in cursor.GeneralTools.pak
c
Number of sound in sound.tab
k
Keyboard shortcut for the command



i
Tool
0
Inspection tool
1
Destroy/Remove tool
2
Raise land
3
Lower land
4
Landscaping tools
5
Restore natural slope
6
Place sign
7
Show/reset reserved ways
8
Transformer station
9
Found new city
10
Change city size
11
Plant tree
12
Add stop at end of schedule
13
Insert stop before current stop
14
Default way type (Uncertain, please check this!)
15
Bridge
16
Tunnel
17
Remove way
18
Way objects
19
Station/Extension buildings
20
Signals
21
Depots
22
Buildings
23
Countryside attractions
24
City attractions

 
i
Tool
from ver.
25
Build factories
26
Connect factories
27
Build HQ
28
Disallow player change
29
Add city car
30
Plant forest
31
Replace stop
32
Make stop public
33
Remove way objects 0.102.2
34
Underground display 0.102.2
35
Buy city buildings 0.102.2
36
Build city roads with timeline 0.102.2.2
37
WKZ_ERR_MESSAGE_TOOL 120.0.1
38
WKZ_CHANGE_WATER_HEIGHT 120.0.1
39
WKZ_SET_CLIMATE 120.0.1
40
WKZ_ROTATE_BUILDING 120.3
41
WKZ_MERGE_STOP 122.0
42
WKZ_EXEC_SCRIPT 122.0
43
WKZ_EXEC_TWO_CLICK_SCRIPT 122.0
44
WKZ_PLANT_GROUNDOBJ 123.0
45
WKZ_ADD_MESSAGE 123.0.2
46
WKZ_REMOVE_SIGNAL 123.0.2




Simple Toolslink



     simple_tool[i]=a,k
i
Number of tool
a
Number of icon in menu.SimpleTools.pak
k
Keyboard shortcut for the command



i
Tool
from ver.
0
Pause
1
Fast forward
2
Screenshot
3
Increase industry density
4
Undo way building
5
Change player
6
Skip a year
7
Change game speed
8
Zoom in
9
Zoom out
10
Show catchment area
11
Show names
12
Show grid
13
Hide trees
14
Hide buildings
15
Toggle underground mode
16
Rotate map 90°
17
End game
18
WKZ_FILL_TREES 0.101
19
Lighter/Darker 0.101
20
Show vehicle tooltips 0.102.2
21
Toggle stop pedestrians 0.102.2.2
22
Toggle city pedestrians 0.102.2.2

 
i
Tool
from ver.
23
WKZ_TRAFFIC_LEVEL  ?
24
WKZ_CONVOI_TOOL  ?
25
WKZ_LINE_TOOL  ?
26
WKZ_DEPOT_TOOL (internal use)  ?
27
WKZ_PWDHASH_TOOL (internal use)  ?
28
WKZ_SET_PLAYER_TOOL (internal use)  ?
29
WKZ_TRAFFIC_LIGHT_TOOL (internal use)  ?
30
WKZ_CHANGE_CITY_TOOL (internal use)  ?
31
WKZ_RENAME_TOOL (internal use)  ?
32
WKZ_ADD_MESSAGE_TOOL (internal use)  ?
33
WKZ_TOGGLE_RESERVATION  ?
34
WKZ_VIEW_OWNER  ?
35
WKZ_HIDE_UNDER_CURSOR  ?
36
WKZ_MOVE_MAP  ?
37
WKZ_ROLLUP_ALL_WIN r9408
38
WKZ_RECOLOUR_TOOL 123.0.2
39
WKZ_SHOW_FACTORY_STORAGE 123.0.2
40
WKZ_TOGGLE_CONTROL 123.0.2
{SPLIT}



Dialogue Toolslink



     simple_tool[i]=a,k
i
Number of tool
a
Number of icon in menu.DialogeTools.pak
k
Keyboard shortcut for the command



i
Tool
0
Help
1
Settings
2
Minimap
3
Line management
4
Messages
5
Finances
6
Player list
7
Display options
8
Sound options
9
Language options
10
Player colors
11
WKZ_JUMP
12
Load saved game
13
Save game
14
Station list
15
Vehicle list
16
City list
17
Goods list

 
i
Tool
from ver.
18
Factory list
19
List of Tourist attractions
20
Map editor Factories
21
Map editor Tourist attractions
22
Map editor City buildings
23
Map editor Trees
24
Enlarge map
25
List of player signs 0.102
26
Climate settings dialogue 0.102.2
27
Settings dialogue (simuconf.tab) 0.102.2.2
28
Network game dialogue 0.102.2.2
29
WKZ_THEMES 120.0
30
WKZ_SCENARIO 120.2
31
WKZ_SCENARIO_INFO 120.3
32
WKZ_LIST_DEPOT 122.0
33
WKZ_LIST_VEHICLE 122.0
34
WKZ_SCRIPT_TOOLS 122.0
35
WKZ_EDIT_GROUNDOBJ 123.0





Composing menueslink



     toolbar[i][a]=b,k,c,d,e
i
Number of menu
a
Number of position within menu
b
Value of called object
k
Number of menu button in menu.BarTools.pak
c
Default parameter
d
Name of menu
e
Name of help file

Toolbars must be numbered in sequence (i.e, no skipping of numbers)




i
Menu
0
Main menu
1
Landscaping tools
2
Railway tools
3
Monorail/Maglev tools
4
Tram tools
5
Road tools
6
Shipping tools
7
Airport tools
8
Special tools
9
Lists

 
b
Object
general_tool[i] Tool
simple_tool[i] Function
dialog_tool[i] Dialogue
toolbar[i] Menu
- Separator
ways(waytype) Way tools
signs(waytype) Signals
wayobj(waytype) Way objects
buildings(type) Buildings



ways(a,b)
a
Meaning
b
Meaning
1
Road
0
groundlevel
2
Railway
1
raised
for waytype=16 runway
3
Water
7
Tram tracks
5
Monorail
255
place holder (fences, walls etc.)
6
Maglev
7
Tram
8
Narrowgauge rail
16
Airport
128
Powerline


buildings(a,b)
a
Meaning
b
Meaning
0
unknown
0
unset
1
City attraction
1
Road
2
Countryside attraction
2
Railway
3
Memorial
3
Water
4
Factory
5
Monorail
5
City hall
6

6
other
7
Tram
7
HQ
8

11
Harbour
16
Airport
33
Depot
34
Stop
35
Extension

Value b in combination with a=11 / a=33 / a=34 / a=35

   
Top
Rate this page:

Contributors to this page: Andarix , Frank , IgorEliezer and system .
Page last modified on Thursday April 7, 2022 20:11:03 GMT-0000 by Andarix.

Online Users

11 online users

Newest Forum Posts

No records to display