KIND Behavior

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m
m
Line 58: Line 58:
 
==Categories==
 
==Categories==
 
[[Category:Asset KIND]]
 
[[Category:Asset KIND]]
 +
[[Category:TBD]]

Revision as of 21:54, 10 February 2013

KIND Behavior is a a configurable behavior module that forms part of a session.

Contents

KIND Hierarchy

Parent Classes

Child Classes

  • none.


Supported Tags

Each Behavior asset supports the following tags. Each tag is shown here with its default value.

  • none.


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
   }
 }

Downloads

Attach sample files here?


Categories

Personal tools