CCG/HTML-Asset

From TrainzOnline
< CCG(Difference between revisions)
Jump to: navigation, search
(New page: ==KIND: HTML-ASSET== ===Description=== An html-asset example is the ingame tutorial. The config.txt file references one or more .html pages. The html-asset can be referenced from the scr...)
 
m (kind html-asset fixed in sample)
 
Line 14: Line 14:
  
 
A TYPICAL ASSET OF THIS KIND MAY HAVE THE FOLLOWING TAGS:
 
A TYPICAL ASSET OF THIS KIND MAY HAVE THE FOLLOWING TAGS:
  <font color="red">html-asset</font>
+
  <font color="red">
 +
kind                      ''"html-asset"''</font>
 
  kuid                      ''kuid''
 
  kuid                      ''kuid''
 
  trainz-build              ''data''
 
  trainz-build              ''data''
Line 21: Line 22:
 
  category-era              ''data''
 
  category-era              ''data''
 
  username                  ''data''
 
  username                  ''data''
kind                      ''data''
 
 
  <font color="red">thumbnails</font>
 
  <font color="red">thumbnails</font>
 
  <font color="green">0</font>
 
  <font color="green">0</font>

Latest revision as of 04:32, 7 November 2012

Contents

[edit] KIND: HTML-ASSET

[edit] Description

An html-asset example is the ingame tutorial. The config.txt file references one or more .html pages. The html-asset can be referenced from the scripts and from some of the Surveyor rules.

[edit] Container Structure

A well formed html-asset kind has the following container structure:

CCG html asset dir.jpg

See Chapter 7 for an example asset of this kind.


A TYPICAL ASSET OF THIS KIND MAY HAVE THE FOLLOWING TAGS:


kind                      "html-asset"
kuid                      kuid
trainz-build              data
category-class            data
category-region           data
category-era              data
username                  data
thumbnails
0
image                     file
width                     data
height                    data


[edit] TAGS AND CONTAINERS

The following tags are further defined in Chapter 5:

kuid
Generated automatically by Content Manager.
trainz-build
Automatically set to 2.9 for 2009 assets.
category-class
Should by "YH" - HTML-Asset. See the "Maps & Scenarios" section Category Class.
category-region
See Category Region for a list of valid category-region values.
category-era
See Category Era for a list of valid category-era values.
username
Asset username. Though this asset doesn't appear in the Surveyor menu, the username is used to identify the asset in the "Content Manager Plus" and "Content Creator Plus" programs.
kind
Must be "html-asset".


[edit] THIS KIND SUPPORTS THE FOLLOWING:

CONTAINERS
String Table, Chinese String Table, Czech String Table, Dutch String Table, French String Table, German String Table, Italian String Table, Polish String Table, Russian String Table, Spanish String Table, KUID Table, Obsolete Table, Thumbnails, Privileges, Extensions.
TAGS
kuid, trainz-build, category-class, category-region, category-era, username, kind, author, category-keyword, contact-email, contact-website, description, description-cn, description-cz, description-de, description-es, description-fr, description-it, description-pl, description-nl, description-ru, license, organisation, username-cn, username-cz, username-de, username-es, username-fr, username-it, username-nl, username-pl, username-ru.


[edit] Return to CCG Index

Content Creator's Guide

Personal tools