CCG/Kind: HTML-Asset

From TrainzOnline
< CCG
Jump to: navigation, search

KIND: HTML-ASSET

A html-asset can be referenced from the scripts and from some of the Surveyor rules (i.e. you select the html-asset by name, then type in the name of the *.html file in the small edit box).


A typical example of KIND: html-asset in use is the in-game tutorial.

The general setup is very simple, you bundle your config.txt along with one or more .html pages.

Config.txt

               kind html-asset
               username "my html page"
               kuid <KUID2:####:#####:0>

CCG tut html.jpg

  <HTML>
      <BODY>
          <IMG SRC='images/tut_1a.jpg'>
      </BODY>
  </HTML>
Personal tools