KIND Behavior
From TrainzOnline
(Difference between revisions)
| Line 57: | Line 57: | ||
==Categories== | ==Categories== | ||
[[Category:Asset KIND|B]] | [[Category:Asset KIND|B]] | ||
| − | [[Category: | + | [[Category:Session Rules]] |
Latest revision as of 15:27, 11 October 2019
KIND Behavior assets are a configurable behavior module that forms part of a gameplay session. Within the Surveyor user interface, these are known as "Session Rules". For an introduction to using session rules see the Session Rules Overview. A list of all documented rules can be found here.
Contents |
[edit] KIND Hierarchy
[edit] Parent Classes
[edit] Child Classes
- none.
[edit] Supported Tags
Each Behavior asset supports the following tags. Each tag is shown here with its default value.
- none.
[edit] Example Config.txt
Sample config.txt file for a library asset:
username "testBehavior"
kind "behavior"
kuid <kuid:171456:100035>
script "behavior"
class "DisplayHTMLRule"
trainz-build 2.9
category-class "YH"
category-region "00"
category-era "2000s"
description "Test Behavior asset, displays an Html file."
icon-texture "html_type.tga"
string-table
{
html_description "Display page <a href=live://property/page>$0</a> of html asset <a href=live://property/asset>$1</a> in a new in-game window."
description "Display a page from a HTML asset in a browser window."
description_info "Display page $0 of html asset $1 in a new in-game window."
display-name-page "HTML page name"
display-desc-page "Name of HTML page without the .html extension"
display-name-asset "HTML asset"
display-desc-asset "HTML asset where the page can be found"
click_to_select "click to select"
}
thumbnails
{
0
{
image "thumb.jpg"
width 240
height 180
}
}
[edit] Downloads
Attach sample files here?