KIND Texture-group

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Updated to reference .texture files instead of image files directly)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Defines a group of textures as an asset that can be referenced from another asset or via scripting.
+
[[KIND Texture-group]] defines a group of textures as an asset that can be referenced from another asset or via scripting.
  
Sample config.txt:
+
[[Image:Example.jpg]]
  
[[TagName_Kuid|kuid]] <kuid:171456:100034>
+
==KIND Hierarchy==
  [[TagName_Trainz-build|trainz-build]] 2.5
+
===Parent Classes===
  [[TagName_Category-class|category-class]] "JO"
+
* [[KIND TrainzBaseSpec]]
  [[TagName_Category-region|category-region]] "AU"
+
===Child Classes===
  [[TagName_Category-era|category-era]] "1810s"
+
* ''none.''
  [[TagName_Username|username]] "testTextureGroup"
+
 
  [[TagName_Kind|kind]] "texture-group"
+
==Supported Tags==
  [[TagName_Description|description]] "Test texture group."
+
''TBD''
  [[%22Textures%22_container|textures]]
+
 
 +
==Example Config.txt==
 +
 
 +
 
 +
kuid <kuid:171456:100034>
 +
  trainz-build 3.5
 +
  category-class "JO"
 +
  category-region "AU"
 +
  category-era "1810s"
 +
  username "testTextureGroup"
 +
  kind "texture-group"
 +
  description "Test texture group."
 +
  textures
 
  {
 
  {
   0 "1.bmp"
+
   0 "1.texture"
   1 "2.bmp"
+
   1 "2.texture"
   2 "3.bmp"
+
   2 "3.texture"
 
  }
 
  }
  [[%22Thumbnails%22_container|thumbnails]]
+
  thumbnails
 
  {
 
  {
 
   0
 
   0
Line 26: Line 38:
 
   }
 
   }
 
  }
 
  }
 +
An example for the use of "texture-group" is a destination  board system. See [[HowTo/Implement_a_Destination_Sign_System|How to Implement a Destination Sign System]].
 +
 +
Note that as of TANE, all textures must be referenced as .texture files, not the image file (.bmp, .tga, etc) itself.
  
 
==Categories==
 
==Categories==
[[Category:Asset KIND]]
+
[[Category:Asset KIND|T]]
 +
[[Category:TBD]]

Latest revision as of 01:19, 23 June 2015

KIND Texture-group defines a group of textures as an asset that can be referenced from another asset or via scripting.

Example.jpg

Contents

[edit] KIND Hierarchy

[edit] Parent Classes

[edit] Child Classes

  • none.

[edit] Supported Tags

TBD

[edit] Example Config.txt

kuid <kuid:171456:100034>
trainz-build 3.5
category-class "JO"
category-region "AU"
category-era "1810s"
username "testTextureGroup"
kind "texture-group"
description "Test texture group."
textures
{
  0 "1.texture"
  1 "2.texture"
  2 "3.texture"
}
thumbnails
{
  0
  {
    image "thumb.jpg"
    width 240
    height 180
  }
}

An example for the use of "texture-group" is a destination board system. See How to Implement a Destination Sign System.

Note that as of TANE, all textures must be referenced as .texture files, not the image file (.bmp, .tga, etc) itself.

[edit] Categories

Personal tools