KIND Texture
From TrainzOnline
(Difference between revisions)
(→Example Config.txt: annotate, tablize approximating config.txt spacings) |
(→Example Config.txt: tweak) |
||
Line 15: | Line 15: | ||
*Texture files within a config.txt file such as the below ''MUST NOT'' have the ''''.txt'''' extension, or CM will generate an error. | *Texture files within a config.txt file such as the below ''MUST NOT'' have the ''''.txt'''' extension, or CM will generate an error. | ||
<tt> | <tt> | ||
− | {|width="100%" text-align="center" float="center" bgcolor="# | + | {|width="100%" text-align="center" float="center" bgcolor="#FAFAFC" <!-- |
+ | #F0F8FF" ---> padding="9px" | ||
|- border="1" | |- border="1" | ||
| '''Tag or structure braces''' || '''Data fields''' | | '''Tag or structure braces''' || '''Data fields''' |
Revision as of 00:16, 29 June 2013
KIND Texture exposes a simple texture as an asset. These can be referenced by KUID for use as a custom corona, for example.
Contents |
KIND Hierarchy
Parent Classes
Child Classes
- none.
Supported Tags
TBD.
Example Config.txt
- Texture files are ASCII specification files (text format) instructing ContentManager (CM) how to render each single texture.
- Texture files have a ".texture.txt" name extension within the assets' folder
- Texture files within a config.txt file such as the below MUST NOT have the '.txt' extension, or CM will generate an error.
Tag or structure braces | Data fields |
kuid | <kuid:56113:1267> |
trainz-build | 2.5 |
category-class | "JO" |
category-region | "AU" |
category-era | "2000s;2010s" |
username | "testTexture" |
kind | "texture" |
texture | "eg.texture" |
thumbnails | |
{ | |
0 | |
{ | |
image | "thumb.jpg" |
width | 240 |
height | 180 |
} | |
} |
The above "texture" tag specifies a Texture file located within the asset folder.