CCG/Example: Behavior

From TrainzOnline
< CCG
Revision as of 17:50, 8 June 2011 by Pev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Behavior

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

no image available

Required Files

config.txt - The config file for the asset.

thumb.jpg - The thumbnail image for this asset. A 240x180 jpeg.

html_type.tga - The icon graphic file to be displayed.

behaviour.gs - The script file for the asset.


Config.txt File Listing

username              "testBehaviour"
kind                  "behavior"
kuid                  <kuid:171456:100035>
script                "behaviour"
class                 "DisplayHTMLRule"
trainz-build          2.9
category-class        "YH"
category-region       "00"
category-era          "2000s"
description           "Test Behaviour 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"
}
  
kuid-table
{
}
thumbnails
{
  0
    {
       image          "thumb.jpg"
       width          64
       height         64
    }
}


Download this asset

This asset is available for download from the TRS2006website at: http://files.auran.com/TRS2006/Downloads/Example_Download.zip.


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools