Color Picker
The color-picker tag allows the player to pick between different colour options for an item that it is applied to. Items that have color-picker on them will have a grey teardrop next to it in the item selection menu. Upon selecting the item, a button with a paintbrush will appear on the left side of the screen, bellow the hamburger menu and the move button if the item also has the move tag. When clocked, bellow the brush will appear coloured circles, clicking them will change the items colour to the corresponding circle.
If the paintbrush was selected, clicking the move button will make the colour options disappear and the move button appear. The reverse happens if the paintbrush is selected again.
Usage
The tag in a psd file is supposed to look like [color-picker]. The spelling of color is important, as meiker does not recognise the colour spelling. [Color-picker] needs to be put on a folder, and the layers inside the folder need to be named with hexcodes and nothing else. For example, #ff00ff or #2356ad, adding anything else but a # and six letters/numbers that corresponding to a hexcode will give you an error message when uploading the game.
The folder that you put [color-picker] on can be an item folder inside a category folder, or it can be on a category folder itself if the whole category consists of only one item in different colours. For example a skin colour folder. If you put it on a category folder, the folder will still need an [icon] layer and all of the item layers still need to be named with hexcodes.
The tag also functions if you use the short version [colp].
Additional Tags to Use with Color-picker
Adding :hidden, inside the color picker tag as in: [color-picker:hidden] or [colp:hidden] will make it so that the paintbrush will not appear when the item is selected. This is best used alongside
[enable-color-global]
|