CCG/Kind: HTML-Asset

From TrainzOnline
< CCG(Difference between revisions)
Jump to: navigation, search
(New page: ==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 ...)
 

Latest revision as of 11:32, 2 June 2011

[edit] 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