summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-20disable old after_dig_node() callbacksVanessa Ezekowitz
(don't split a digged node into neutral+dye)
2017-06-20disable auto-coloring code entirelyVanessa Ezekowitz
2017-06-20add helper function for crafting param2-colorized itemsVanessa 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-20link API to READMEVanessa Ezekowitz
2017-06-20rename READMEVanessa Ezekowitz
2017-06-20update README, point user to forum for detailed usage infoVanessa Ezekowitz
2017-06-20document the APIVanessa Ezekowitz
2017-06-20remove a few redundant aliasesVanessa Ezekowitz
2017-06-20add alternate recipe for dark orangeVanessa Ezekowitz
2017-06-20clean-up of dark/medium orange and light/redVanessa Ezekowitz
(fixes #13)
2017-06-04rotation fixes for compat with minetest 0.4.16Vanessa Ezekowitz
2017-05-18Merge pull request #9 from AntumDeluge/settingsVanessa Ezekowitz
Replace deprecated 'setting_getbool' with 'settings:get_bool'
2017-05-18Merge pull request #8 from AntumDeluge/masterVanessa Ezekowitz
Replace deprecated call to 'get_look_yaw' with 'get_look_horizontal'
2017-05-13Replace deprecated 'setting_getbool' with 'settings:get_bool'AntumDeluge
2017-05-03Replace deprecated call to 'get_look_yaw' with 'get_look_horizontal'AntumDeluge
2017-03-18allow shift-punching on a colorable node, to cancel auto-coloringVanessa Ezekowitz
also add a message in the chat when auto-color is activated, and with what.
2017-03-18make sure the pointed thing is a node before checking protectionVanessa Ezekowitz
2017-03-18add recolor-on-place helperVanessa 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-17remove outdated commentVanessa Ezekowitz
2017-03-17protection check on_useVanessa Ezekowitz
2017-03-14on_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-11don't crash if the dye target is an unknown node :PVanessa Ezekowitz
2017-02-26made base_color_crafts, shade_crafts,Vanessa Ezekowitz
and greymixes tables globally accessible
2017-02-26get rid of some redundant variablesVanessa Ezekowitz
(just directly reference the table elements instead)
2017-02-26add another recipeVanessa Ezekowitz
2017-02-26add more hue recipesVanessa Ezekowitz
also fix a variable that got capitalized for some reason
2017-02-26add more "direct" recipesVanessa Ezekowitz
for the more esoteric colors
2017-02-26only use the node def's palette entry to check palette typeVanessa 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-25define on_use for default dyesVanessa Ezekowitz
(forgot to include the overrides)
2017-02-25override default dyes to keep their hues/shades consistentVanessa Ezekowitz
with how this mod uses them. Also fix missing aliases for same.
2017-02-25clean up greyscale portion of extended paletteVanessa Ezekowitz
remap greys slightly, tweak related recipes
2017-02-25add grey crafts and consolidate slightlyVanessa Ezekowitz
2017-02-25greys were mapped slightly wrong, fixedVanessa Ezekowitz
2017-02-25fix missing full-s50 defs,Vanessa Ezekowitz
fix a couple more broken recipes
2017-02-25add crafting recipes for all hues and some greysVanessa Ezekowitz
also fix broken light grey registration
2017-02-24make some color tables globally accessible (in unifieddyes namespace)Vanessa Ezekowitz
2017-02-24remove some debug statementsVanessa Ezekowitz
2017-02-24dyes -> not in creative invVanessa Ezekowitz
2017-02-24fix greys in palette conversion tableVanessa Ezekowitz
2017-02-24it's okay to use an oversized paletteVanessa Ezekowitz
also formula for 89->256 table was wrong
2017-02-24Mark the node via its metadata if it's been painted with 256-color paletteVanessa Ezekowitz
2017-02-24translate new dye names to old for 89-color palette checkVanessa Ezekowitz
2017-02-24Add detection and setting of new paletteVanessa 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-24auto-generate the various dye craftitemsVanessa Ezekowitz
and base them all on a single colorized texture.
2017-02-24get rid of HUES2 table (use string ops to replace it)Vanessa Ezekowitz
2017-02-24add extended paletteVanessa 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-21fix not being able to pick up dropped objects while wielding dyeadrido
2017-02-18add on_rotate handlerVanessa 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 checkingVanessa Ezekowitz
in fix_rotation function
2017-02-17add helper functions for rotation correctionVanessa Ezekowitz