KIND Texture: Difference between revisions
From TrainzOnline
Jump to navigationJump to search
No edit summary |
→Example Config.txt: annotate, tablize approximating config.txt spacings |
||
| Line 11: | Line 11: | ||
==Example Config.txt== | ==Example Config.txt== | ||
*'''[[Texture file]]s''' 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. | |||
<tt> | |||
{|width="100%" text-align="center" float="center" bgcolor="#E6E6FA"<!--#F0F8FF" ---> | |||
|- border="1" | |||
| '''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" | |||
The "texture" tag specifies a [[Texture file]] located within the asset folder. | |- | ||
| kind || "texture" | |||
|- | |||
| '''texture || "eg.texture"''' | |||
|- | |||
| thumbnails|| | |||
|- | |||
| { || | |||
|- | |||
| 0|| | |||
|- | |||
| {|| | |||
|- | |||
| image || "thumb.jpg" | |||
|- | |||
| width || 240 | |||
|- | |||
| height || 180 | |||
|- | |||
| }|| | |||
|- | |||
| }|| | |||
|} | |||
</tt> | |||
The above "texture" tag specifies a [[Texture file]] located within the asset folder. | |||
==Categories== | ==Categories== | ||
[[Category:Asset KIND]] | [[Category:Asset KIND]] | ||
[[Category:TBD]] | [[Category:TBD]] | ||
Revision as of 14:08, 28 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.
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.