KIND Texture

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(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.
kuid <kuid:56113:1267>
+
*Texture files have a ".texture.txt" name extension within the assets' folder
trainz-build 2.5
+
*Texture files within a config.txt file such as the below ''MUST NOT'' have the ''''.txt'''' extension, or CM will generate an error.
category-class "JO"
+
<tt>
category-region "AU"
+
{|width="100%" text-align="center" float="center" bgcolor="#E6E6FA"<!--#F0F8FF" --->
category-era "2000s;2010s"
+
|- border="1"
username "testTexture"
+
| '''Tag or structure braces''' || '''Data fields'''
kind "texture"
+
|-
texture "eg.texture"
+
| kuid ||<kuid:56113:1267>
thumbnails
+
|-
{
+
| trainz-build || 2.5
  0
+
|-
  {
+
| category-class || "JO"
    image "thumb.jpg"
+
|-
    width 240
+
| category-region|| "AU"
    height 180
+
|-
  }
+
| 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||
 +
|-
 +
|  &nbsp; &nbsp; &nbsp; {||
 +
|-
 +
|  &nbsp; &nbsp; &nbsp;  image || "thumb.jpg"
 +
|-
 +
|  &nbsp; &nbsp; &nbsp;  width || 240
 +
|-
 +
|  &nbsp; &nbsp; &nbsp;  height || 180
 +
|-
 +
| &nbsp; &nbsp; &nbsp; }||
 +
|-
 +
| }||
 +
|}
 +
</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 00:08, 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.

Categories

Personal tools