summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2017-02-07re-generated all of the palettesVanessa 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).
2017-02-06add light_blue to wallmounted paletteVanessa Ezekowitz
2017-02-06Pink/brown color translation tweaksVanessa Ezekowitz
Only perform pink -> light_red and brown -> dark_orange translations if not using the "colorwallmounted" palette.
2017-02-05fix broken check-for-colorableVanessa Ezekowitz
2017-02-04use on_use instead of on_rightclick to apply dyesVanessa Ezekowitz
also add some useful messages if the target was already the same color as the dye, can't be colored, can't take the requested color, etc.
2017-01-30better pink shade in the colorwallmounted paletteVanessa Ezekowitz
(now it's standard web pink, but shifted 15 degrees toward red and saturation maxed out)
2017-01-30don't set a custom param2 if the placed node has no facedir/wallmountVanessa Ezekowitz
2017-01-30fix wallmounted grey numberingVanessa Ezekowitz
2017-01-29fix messed-up grayscale color select logicVanessa Ezekowitz
2017-01-28remove some debug statementsVanessa Ezekowitz
2017-01-28add API option for "colorwallmounted" paramtype2Vanessa Ezekowitz
(pass "wallmounted" to the "is_color_fdir" field where needed) Comes with an abridged, 32-color version of the master palette, containing Red, Orange, Yellow, Green, Cyan, Blue, Violet, and Magenta, in three shades each, plus the usual black/three greys/white, plus pink and brown in two of the extrs spaces.
2017-01-28only crop the palleteidx if param2 is colorfacedirVanessa Ezekowitz
(prevent a potential bug later: some day, maybe there will be more than 89 colors in UD)
2017-01-28colorfdir -> is_color_fdirVanessa Ezekowitz
(preparing for later inclusion of some kind of wallmounted palette)
2017-01-28fix a couple more missing aliasesVanessa Ezekowitz
2017-01-28fix several dye-handling bugsVanessa Ezekowitz
2017-01-28API CHANGE: after_dig_node instead of on_destructVanessa Ezekowitz
This also fixes the case where digging a block just drops the dye on the ground instead of putting it in the player's inv.
2017-01-28fix facedir not being set when simple node placement fall-through is calledVanessa Ezekowitz
2017-01-26removed obsolete scripts and imageVanessa Ezekowitz
2017-01-26fix wrong param2 settingVanessa Ezekowitz
2017-01-26handle both cases of nodes being set with facedirVanessa Ezekowitz
2017-01-26remove debug statementsVanessa Ezekowitz
2017-01-26improve handling of greyscale in get-hsv functionVanessa Ezekowitz
2017-01-26add an alternate "find HSV" function.Vanessa Ezekowitz
Note that if the result is greyscale, the name ("black", "grey", ...) is returned in the "hue" field, sat is empty string, and val is "light", "dark", or empty string.
2017-01-26handle a few more color-to-grey and grey-to-color casesVanessa Ezekowitz
2017-01-26Just do the node's color search manuallyVanessa Ezekowitz
(to handle cases where the node has more than just the standard-format nodename:[shade_]hue[_s50] naming, e.g. stairsplus nodes like: nodename:stair_[shade_]hue[_s50][_some_extra_details]
2017-01-26handle special cases for greyscale dyes and unpainted nodesVanessa Ezekowitz
2017-01-26rework how split palettes are handledVanessa Ezekowitz
2017-01-25add "split" palette for mods that need facedir + param2 colorVanessa Ezekowitz
2017-01-25only allow placing the wielded thing if it's actually a nodeVanessa Ezekowitz
2017-01-25include standard 89-color UD paletteVanessa Ezekowitz
2017-01-25add a few missing aliasesVanessa Ezekowitz
2017-01-25Add some helper functions to support the new param2-style coloringVanessa Ezekowitz
Most of the code came from cheapie's plasticbox mod
2016-03-27Adding standard mod filesAuke Kok
2015-03-02Update and rename locale to locale/tr.txtMahmut Elmas
2015-01-23OPTIMIZE _ALL_ THE TEXTURES! \:D/Vanessa Ezekowitz