diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-28 22:39:09 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-28 22:44:02 -0400 |
commit | c3036aba004bc35b4d8ba91ed07864de2a058326 (patch) | |
tree | d1b6e1abd1ff66a08a4c82a4b5f815f9c227ab11 /API.md | |
parent | d53fb146dd9ba5bc126e326de2e3c1327f70623f (diff) | |
download | unifieddyes-c3036aba004bc35b4d8ba91ed07864de2a058326.tar unifieddyes-c3036aba004bc35b4d8ba91ed07864de2a058326.tar.gz unifieddyes-c3036aba004bc35b4d8ba91ed07864de2a058326.tar.bz2 unifieddyes-c3036aba004bc35b4d8ba91ed07864de2a058326.tar.xz unifieddyes-c3036aba004bc35b4d8ba91ed07864de2a058326.zip |
handle special case of split palette with full colors in node name
also check for ud_param2_colorable before proceeding to airbrush
also handle new -> old color names in split palette switching
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,9 @@ minetest.register_node("mymod:colored_node", { - "unifieddyes_palette_colorwallmounted.png" - or one of the "split" hues palettes (see below). -`groups`: If your node can be colored by punching it with dye, its groups entry must contain the key ud_param2_colorable = 1, among whatever else you'd normally put there. If the node is software-controlled, as might be the case for some mesecons-digilines aware node, then this group key should be omitted. +`groups`: If your node can be colored by using the airbrush, its groups entry must contain the key ud_param2_colorable = 1, among whatever else you'd normally put there. If the node is software-controlled, as might be the case for some mesecons-digilines aware node, then this group key should be omitted. + +If your node if of the kind where you need the split palette, but you need to put the *full color name* into the node name, as opposed to just the hue, then add the keys `ud_color_start` and `ud_color_end` and set them to the positions of the first and last characters of the color name (where 1 is the first character of the mod name at the start of the node name, i.e. "mymod:foo_bar_orange_baz" would have the start set to 15 and the end at 20). `on_construct`: see below. |