KIND Controlset
From TrainzOnline
(Difference between revisions)
(→Supported Tags) |
(→Example Config.txt) |
||
Line 21: | Line 21: | ||
Sample [[config.txt file]] for a controlset asset, with the standard tags excluded for brevity: | Sample [[config.txt file]] for a controlset asset, with the standard tags excluded for brevity: | ||
− | + | kuid <kuid:401543:1100> | |
+ | kind "controlset" | ||
+ | username "Menu Controls" | ||
+ | trainz-build 3.6 | ||
+ | category-class "CS" | ||
+ | description "Keyboard shortcuts used within the Trainz menus" | ||
+ | |||
+ | thumbnails | ||
+ | { | ||
+ | 1 | ||
+ | { | ||
+ | image "thumbnail.jpg" | ||
+ | width 240 | ||
+ | height 180 | ||
+ | } | ||
+ | } | ||
+ | |||
+ | controls | ||
+ | { | ||
+ | routes-menu | ||
+ | { | ||
+ | name-token "routes-name" | ||
+ | desc-token "routes-desc" | ||
+ | event "routes-menu" | ||
+ | default-keys "r" | ||
+ | context "Menu" | ||
+ | } | ||
+ | |||
+ | new-route | ||
+ | { | ||
+ | name-token "new-route-name" | ||
+ | desc-token "new-route-desc" | ||
+ | event "new-route" | ||
+ | default-keys "n,c" | ||
+ | context "Menu" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | string-table | ||
+ | { | ||
+ | routes-name "Routes Menu" | ||
+ | routes-desc "Opens the routes menu" | ||
+ | new-route-name "New Route" | ||
+ | new-route-desc "Creates a new route in Surveyor" | ||
+ | } | ||
==Categories== | ==Categories== | ||
[[Category:Asset KIND]] | [[Category:Asset KIND]] |
Revision as of 13:39, 19 October 2011
KIND Controlset
Defines a set of input controls.
Contents |
Supported Tags
Each controlset asset supports the following tags. Each tag is shown here with its default value.
Supported Tags
Each traincar asset supports the following tags. Each tag is shown here with its default value.
kind "controlset" controls { }
controls
- Type: Controls container
- Desc: Specifies the various controls. Documented separately here.
Example Config.txt
Sample config.txt file for a controlset asset, with the standard tags excluded for brevity:
kuid <kuid:401543:1100> kind "controlset" username "Menu Controls" trainz-build 3.6 category-class "CS" description "Keyboard shortcuts used within the Trainz menus" thumbnails { 1 { image "thumbnail.jpg" width 240 height 180 } } controls { routes-menu { name-token "routes-name" desc-token "routes-desc" event "routes-menu" default-keys "r" context "Menu" } new-route { name-token "new-route-name" desc-token "new-route-desc" event "new-route" default-keys "n,c" context "Menu" } } string-table { routes-name "Routes Menu" routes-desc "Opens the routes menu" new-route-name "New Route" new-route-desc "Creates a new route in Surveyor" }