v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Graphics token

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 132: Line 132:
 
* condition
 
* condition
 
| Creature<br>Graphics
 
| Creature<br>Graphics
| Begins defining a layer set for a creature's graphics.  Valid values of ''condition'' are DEFAULT, PORTRAIT{{version|50.13}}, or CORPSE. Valid values for basic conditions may not work.{{verify}}
+
| Begins defining a layer set for a creature's graphics.  Valid values of ''condition'' are DEFAULT, PORTRAIT{{version|51.01}}, or any valid values  
  
 
|-
 
|-
| {{text_anchor|LS_PALETTE}}{{version|50.13}} ||
+
| {{text_anchor|LAYER_GROUP}} ||   || Layer<br>Group
*  name
+
| Begins defining a layer group. Only the first layer in a layer group with all its conditions satisfied will be rendered.
|| Layer<br>Set
 
|| Begins defining a palette for the layer set. Its name can be referenced by {{token|USE_PALETTE|g}}. Unlike the palettes used to render all [[descriptor color token]]s, it can be of arbitrary length.
 
 
 
|-
 
| {{text_anchor|LS_PALETTE_FILE}}{{version|50.13}} ||
 
* file name
 
| Palette
 
| The file name of the 8bit RGBA (sometimes called 32bit) in the <tt>/graphics/images</tt> folder of the mod, such as <tt>images/portraits/dwarf_portrait_body_palette.png</tt>.
 
 
 
|-
 
| {{text_anchor|LS_PALETTE_DEFAULT}}{{version|50.13}} ||
 
* integer
 
| Palette
 
| Defines the default row of a layer set palette, conventionally 0. The exact color values on this row will be replaced on layer images with the colors in the same column, based on what row is passed as an argument to {{token|USE_PALETTE|g}}.
 
 
 
|-
 
| {{text_anchor|LG_CONDITION_BP}}{{version|50.13}} ||
 
*  selection criteria BY_TYPE, BY_CATEGORY, BY_TOKEN
 
*  category, type, or token
 
|| Layer<br>Group
 
|| Allows the entire layer group (rather than an individual layer) to be switched on and off depending on the conditions of a body part. Should accept the same tokens {{token|CONDITION_BP|g}} does. {{verify}}
 
  
 
|-
 
|-
Line 321: Line 300:
  
 
|-
 
|-
| {{text_anchor|ITEM_QUALITY}}{{version|50.13}} ||
+
| {{text_anchor|ITEM_QUALITY}}{{version|51.01}} ||
 
* integer
 
* integer
 
| Armor<br>Wieldables{{verify}}
 
| Armor<br>Wieldables{{verify}}
Line 327: Line 306:
  
 
|-
 
|-
| {{text_anchor|USE_PALETTE}}{{version|50.13}} ||
+
| {{text_anchor|USE_STANDARD_PALETTE_FROM_ITEM}}{{version|51.01}} || || Armor<br>Wieldables{{verify}}
* layer set palette
+
|| Uses the default palette to render the layer based on the current {{token|CONDITION_ITEM_WORN|g}}'s [[color]].
* row
 
| General
 
|| Colors the layer using that row of the layer-set-specific {{token|LS_PALETTE|g}}.
 
 
 
|-
 
| {{text_anchor|USE_STANDARD_PALETTE_FROM_ITEM}}{{version|50.13}} || || Armor<br>Wieldables{{verify}}
 
|| Uses the default palette to render the layer based on the [[Material definition token#STATE_COLOR|color]] of the current {{token|CONDITION_ITEM_WORN|g}}.
 
  
 
|-
 
|-
| {{text_anchor|CONDITION_BP}}{{version|50.13}} ||
+
| {{text_anchor|CONDITION_BP}}{{version|51.01}} ||
 
*  selection criteria BY_TYPE, BY_CATEGORY, BY_TOKEN
 
*  selection criteria BY_TYPE, BY_CATEGORY, BY_TOKEN
 
*  category, type, or token
 
*  category, type, or token
Line 345: Line 317:
  
 
|-
 
|-
| {{text_anchor|BP_APPEARANCE_MODIFIER_RANGE}}{{version|50.13}} ||
+
| {{text_anchor|BP_APPEARANCE_MODIFIER_RANGE}}{{version|51.01}} ||
 
*  QUALITY
 
*  QUALITY
 
*  minimum
 
*  minimum
Line 353: Line 325:
  
 
|-
 
|-
| {{text_anchor|BP_PRESENT}}{{version|50.13}} || || Body
+
| {{text_anchor|BP_PRESENT}}{{version|51.01}} || || Body
 
|| Checks if the current {{token|CONDITION_BP|g}} is present and not destroyed, pulped, or severed. Can also be applied to {{token|LG_CONDITION_BP|g}}.
 
|| Checks if the current {{token|CONDITION_BP|g}} is present and not destroyed, pulped, or severed. Can also be applied to {{token|LG_CONDITION_BP|g}}.
  
 
|-
 
|-
| {{text_anchor|BP_SCARRED}}{{version|50.13}} || || Body
+
| {{text_anchor|BP_SCARRED}}{{version|51.01}} || || Body
 
|| Checks if the current {{token|CONDITION_BP|g}} is scarred. Seems to also require {{token|BP_PRESENT|g}} to avoid illogical results. {{verify}}
 
|| Checks if the current {{token|CONDITION_BP|g}} is scarred. Seems to also require {{token|BP_PRESENT|g}} to avoid illogical results. {{verify}}
  
 +
|-
 +
| {{text_anchor|USE_PALETTE}}{{version|51.01}} ||
 +
* layer set palette | General
 +
|| Colors the layer using that row of a layer set palette.
 +
 +
|-
 
|}
 
|}
  

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page:

This page is a member of 2 hidden categories: