From The Mana World
Revision as of 01:45, 14 August 2008 by Jaxad0127 (talk | contribs) (Initial draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Color files are files that specify colors that can be used for various purposes. The colors specified in these files are suited for use in Image dyeing and other purposes.

Structure

Color files are in XML format.

<colors>

This is the root element of the file.

<color>

And individual color. Colors have names and values. The name is a description for the user. The value is the information used by the code. Example (these are the current hair colors):

<colors>
    <color name="Light Red" value="#8c4b41,da9041,ffffff"/>
    <color name="Green" value="#06372b,489e25,fdedcc"/>
    <color name="Red" value="#5f0b33,91191c,f9ad81"/>
    ...
</colors>

Usage

In the item database, item elements reference the color files. Example:

<item id="-1" type="hairsprite" colors="colors_hairstyles.xml">
    <sprite gender="male">hairstyle1-male.xml</sprite>
    <sprite gender="female">hairstyle1-female.xml</sprite>
</item>