Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-06-20 | disable auto-coloring code entirely | Vanessa Ezekowitz | |
2017-06-20 | add helper function for crafting param2-colorized items | Vanessa Ezekowitz | |
One call registers the full set of 32, 89, or 256 colors. Pass it a recipe of the following general form ```lua unifieddyes.register_color_craft({ output = "mymod:colorized_node", type = <nil or "shapeless"> palette = <see below>, neutral_node = "some_mod:neutral_node", recipe = { <see below> } }) ``` palette may be either "wallmounted" (32 colors), false or omitted entirely (89 colors), or "extended" (256 colors). The recipe section is either a shapeless list, or a standard three-line shaped recipe, same as the regular register_craft() function. The key difference is two placeholder keys that are now supported: * if an item in the recipe is "MAIN_DYE", then Unified Dyes will, with each pass of its registration loop, substitute the actual "dye:foo" craft item in its place which corresponds with the current loop's color. * if an item in the recipe list is "NEUTRAL_NODE", then the value of the "neutral_node" field will be substituted in its place. The expectation here is that the modder probably has some base recipe in mind that, given no dyes, would result in a neutral, uncolored node. This call creates all the recipes that would be needed to craft colored versions of that neutral node either using that base recipe with dye added, or by crafting the neutral node with some dye after the fact. | |||
2017-06-20 | link API to README | Vanessa Ezekowitz | |
2017-06-20 | rename README | Vanessa Ezekowitz | |
2017-06-20 | update README, point user to forum for detailed usage info | Vanessa Ezekowitz | |
2017-06-20 | document the API | Vanessa Ezekowitz | |
2017-06-20 | remove a few redundant aliases | Vanessa Ezekowitz | |
2017-06-20 | add alternate recipe for dark orange | Vanessa Ezekowitz | |
2017-06-20 | clean-up of dark/medium orange and light/red | Vanessa Ezekowitz | |
(fixes #13) | |||
2017-06-04 | rotation fixes for compat with minetest 0.4.16 | Vanessa Ezekowitz | |
2017-05-18 | Merge pull request #9 from AntumDeluge/settings | Vanessa Ezekowitz | |
Replace deprecated 'setting_getbool' with 'settings:get_bool' | |||
2017-05-18 | Merge pull request #8 from AntumDeluge/master | Vanessa Ezekowitz | |
Replace deprecated call to 'get_look_yaw' with 'get_look_horizontal' | |||
2017-05-13 | Replace deprecated 'setting_getbool' with 'settings:get_bool' | AntumDeluge | |
2017-05-03 | Replace deprecated call to 'get_look_yaw' with 'get_look_horizontal' | AntumDeluge | |
2017-03-18 | allow shift-punching on a colorable node, to cancel auto-coloring | Vanessa Ezekowitz | |
also add a message in the chat when auto-color is activated, and with what. | |||
2017-03-18 | make sure the pointed thing is a node before checking protection | Vanessa Ezekowitz | |
2017-03-18 | add recolor-on-place helper | Vanessa Ezekowitz | |
if you add `after_place_node = unifieddyes.recolor_on_place,` to your node def, UD will automatically colorize the node when placed, using the last dye you colored that kind of node with. If you switch to some other colorable node, or you run out of whatever color dye you were using at the time, a warning message will be printed and the autocolor will be reset back to neutral. If a player signs off, autocolor for him/her is reset to neutral (this also helps prevent a minor memory leak) also get rid of one or two debug prints. | |||
2017-03-17 | remove outdated comment | Vanessa Ezekowitz | |
2017-03-17 | protection check on_use | Vanessa Ezekowitz | |
2017-03-14 | on_construct for nodes that were 89-color or static, | Vanessa Ezekowitz | |
but now use an LBM to convert to the 256-color palette | |||
2017-03-11 | don't crash if the dye target is an unknown node :P | Vanessa Ezekowitz | |
2017-02-26 | made base_color_crafts, shade_crafts, | Vanessa Ezekowitz | |
and greymixes tables globally accessible | |||
2017-02-26 | get rid of some redundant variables | Vanessa Ezekowitz | |
(just directly reference the table elements instead) | |||
2017-02-26 | add another recipe | Vanessa Ezekowitz | |
2017-02-26 | add more hue recipes | Vanessa Ezekowitz | |
also fix a variable that got capitalized for some reason | |||
2017-02-26 | add more "direct" recipes | Vanessa Ezekowitz | |
for the more esoteric colors | |||
2017-02-26 | only use the node def's palette entry to check palette type | Vanessa Ezekowitz | |
(don't assume it has to be paramtype2="color", otherwise that screws up uncolored nodes that need this check for on_use) | |||
2017-02-25 | define on_use for default dyes | Vanessa Ezekowitz | |
(forgot to include the overrides) | |||
2017-02-25 | override default dyes to keep their hues/shades consistent | Vanessa Ezekowitz | |
with how this mod uses them. Also fix missing aliases for same. | |||
2017-02-25 | clean up greyscale portion of extended palette | Vanessa Ezekowitz | |
remap greys slightly, tweak related recipes | |||
2017-02-25 | add grey crafts and consolidate slightly | Vanessa Ezekowitz | |
2017-02-25 | greys were mapped slightly wrong, fixed | Vanessa Ezekowitz | |
2017-02-25 | fix missing full-s50 defs, | Vanessa Ezekowitz | |
fix a couple more broken recipes | |||
2017-02-25 | add crafting recipes for all hues and some greys | Vanessa Ezekowitz | |
also fix broken light grey registration | |||
2017-02-24 | make some color tables globally accessible (in unifieddyes namespace) | Vanessa Ezekowitz | |
2017-02-24 | remove some debug statements | Vanessa Ezekowitz | |
2017-02-24 | dyes -> not in creative inv | Vanessa Ezekowitz | |
2017-02-24 | fix greys in palette conversion table | Vanessa Ezekowitz | |
2017-02-24 | it's okay to use an oversized palette | Vanessa Ezekowitz | |
also formula for 89->256 table was wrong | |||
2017-02-24 | Mark the node via its metadata if it's been painted with 256-color palette | Vanessa Ezekowitz | |
2017-02-24 | translate new dye names to old for 89-color palette check | Vanessa Ezekowitz | |
2017-02-24 | Add detection and setting of new palette | Vanessa Ezekowitz | |
(with any luck, all that's left now is to update the mods that use Unified Dyes, where the new palette is wanted) | |||
2017-02-24 | auto-generate the various dye craftitems | Vanessa Ezekowitz | |
and base them all on a single colorized texture. | |||
2017-02-24 | get rid of HUES2 table (use string ops to replace it) | Vanessa Ezekowitz | |
2017-02-24 | add extended palette | Vanessa Ezekowitz | |
full 256-color range: 24 full hues, with four lighter shades and two darker shades, plus low-saturation versions of the full and darker shades, and 16 levels of greyscale | |||
2017-02-21 | fix not being able to pick up dropped objects while wielding dye | adrido | |
2017-02-18 | add on_rotate handler | Vanessa Ezekowitz | |
to correct rotation for "fake wallmounted" nodes so that they always appear to be on the floor, pointing at one of the four NSEW directions. | |||
2017-02-17 | "widen" the range for floor/ceiling placement checking | Vanessa Ezekowitz | |
in fix_rotation function | |||
2017-02-17 | add helper functions for rotation correction | Vanessa Ezekowitz | |
2017-02-07 | re-generated all of the palettes | Vanessa Ezekowitz | |
Some colors were a little bit "off" from the official spec. Started from the standard 12 hues, with their RGB values manually set to exactly 0, 128, or 255 as appropriate, then brightness and saturation adjusted as needed for each shade band. Black is set at 8 percent (0x141414). |