Difference between revisions of "Palette Group"

From wiki
Jump to: navigation, search
(Initial commit.)
 
m (Fix broken link.)
 
Line 24: Line 24:
  
 
= Adding Palettes to a Palette Group =
 
= Adding Palettes to a Palette Group =
To add your own palettes to a palette group, add or edit the following line in the [Palettes|Palette] file.
+
To add your own palettes to a palette group, add or edit the following line in the [[Palettes|Palette]] file.
 
<pre>
 
<pre>
 
   "groups": [ "mods.modname.palettes.group.groupname"],
 
   "groups": [ "mods.modname.palettes.group.groupname"],

Latest revision as of 02:23, 16 November 2017

In Staxel, *.palettegroup files are used to specify a group in which Palettes can be a part of. These groups can then be used on any Accessory or Species.

There are two main reasons for using Palette Groups;

  • It cuts down the number of lines needed in every files.
  • You can add palettes to accessories without needing to change their file. For example, adding a palette to the group, "staxel.palette.group.DyeColours", will add your palette to all of Staxel's Hairs.


Creating a *.palettegroup file

Creating a palette group is very easy.

  1. Create a text file, and change it's extension to end in .palettegroup
  2. Open the file and add the following;
{
  "code" : "mods.modname.palettes.group.groupname",
}
  1. Change the code to suit your needs.

And that is it. You have created a palette group.


Adding Palettes to a Palette Group

To add your own palettes to a palette group, add or edit the following line in the Palette file.

  "groups": [ "mods.modname.palettes.group.groupname"],

You can add more groups by separating each set of " with a comma.


Config Options

"code"

Valid options (String): A unique string which identifies what Accessory this is.

Default Value: No default value is specified. Always need to provide your own.


This option is required to uniquely identify any Accessory. This string must be unique to all other codes, but does not have any other requirements.