modding:config_system_documentation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
modding:config_system_documentation [06/10/2020 14:49]
admin [Metadata Attribute]
modding:config_system_documentation [06/10/2020 14:50]
admin [Metadata Attribute]
Line 98: Line 98:
 Each property can have a metadata string attributed to it (only declared in default/base configs). This metadata is mainly used by the config editor to properly display the config properties. Each property can have a metadata string attributed to it (only declared in default/base configs). This metadata is mainly used by the config editor to properly display the config properties.
  
-for example in the following default config example you can see that the "Texture" property do have the "texture" metadata. This means that only a texture resource type can be set for this property. +For example in the following default config example you can see that the "Texture" property do have the "texture" metadata. This means that only a texture resource type can be set for this property.
  
 +\\
 +<code xml>
 +<?xml version="1.0"?>
 +<config type="terraintexturelayer" default="true">
 +    <property name="Texture" type="resourcepath" value="Nature_Terrain/Textures/T_Ground01_AD.dds" metadata="texture" description="Resource path of the texture to be used by this layer" />
 +    ...
 +</code>
 +\\
  
 Here is a table that shows what metadata needs to be specified according to each property types: Here is a table that shows what metadata needs to be specified according to each property types:
  • modding/config_system_documentation.txt
  • Last modified: 06/10/2020 14:51
  • by admin