Vanessa Ezekowitz
cf89bc6a24
translate new dye names to old for 89-color palette check
2017-02-24 18:48:02 -05:00
Vanessa Ezekowitz
50013d21d1
Add detection and setting of new palette
...
(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 18:38:15 -05:00
Vanessa Ezekowitz
9ad1f28ae1
auto-generate the various dye craftitems
...
and base them all on a single colorized texture.
2017-02-24 17:40:37 -05:00
Vanessa Ezekowitz
68f8c18bc3
get rid of HUES2 table (use string ops to replace it)
2017-02-24 14:28:38 -05:00
Vanessa Ezekowitz
0ceb8f0afe
add extended palette
...
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-24 14:21:59 -05:00
adrido
34299b01a0
fix not being able to pick up dropped objects while wielding dye
89-final
2017-02-21 07:46:38 -05:00
Vanessa Ezekowitz
295cd027f2
add on_rotate handler
...
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-18 13:00:06 -05:00
Vanessa Ezekowitz
aacb377f8c
"widen" the range for floor/ceiling placement checking
...
in fix_rotation function
2017-02-17 23:13:22 -05:00
Vanessa Ezekowitz
80e5429bf3
add helper functions for rotation correction
2017-02-17 23:04:47 -05:00
Vanessa Ezekowitz
0aa55cc4d7
re-generated all of the palettes
...
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-07 15:42:13 -05:00
Vanessa Ezekowitz
b0ccff164d
add light_blue to wallmounted palette
2017-02-06 09:30:04 -05:00
Vanessa Ezekowitz
4d11406f8d
Pink/brown color translation tweaks
...
Only perform pink -> light_red and brown -> dark_orange translations if
not using the "colorwallmounted" palette.
2017-02-06 09:22:10 -05:00
Vanessa Ezekowitz
e3b7e9d534
fix broken check-for-colorable
2017-02-05 20:21:04 -05:00
Vanessa Ezekowitz
e981b29cd2
use on_use instead of on_rightclick to apply dyes
...
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-02-04 19:40:15 -05:00
Vanessa Ezekowitz
112ba73ed6
better pink shade in the colorwallmounted palette
...
(now it's standard web pink, but shifted 15 degrees toward red and
saturation maxed out)
2017-01-30 18:27:07 -05:00
Vanessa Ezekowitz
935f15c343
don't set a custom param2 if the placed node has no facedir/wallmount
2017-01-30 05:50:02 -05:00
Vanessa Ezekowitz
de61a1333b
fix wallmounted grey numbering
2017-01-30 05:32:17 -05:00
Vanessa Ezekowitz
1b0e384278
fix messed-up grayscale color select logic
2017-01-29 00:06:08 -05:00
Vanessa Ezekowitz
3b942c352f
remove some debug statements
2017-01-28 21:57:14 -05:00
Vanessa Ezekowitz
8ea8b01dcc
add API option for "colorwallmounted" paramtype2
...
(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-28 21:51:46 -05:00
Vanessa Ezekowitz
966166b1b9
only crop the palleteidx if param2 is colorfacedir
...
(prevent a potential bug later: some day, maybe there
will be more than 89 colors in UD)
2017-01-28 18:19:58 -05:00
Vanessa Ezekowitz
aef03c1932
colorfdir -> is_color_fdir
...
(preparing for later inclusion of some kind of wallmounted palette)
2017-01-28 18:18:27 -05:00
Vanessa Ezekowitz
e146c55ca0
fix a couple more missing aliases
2017-01-28 09:37:10 -05:00
Vanessa Ezekowitz
2fcae9d17d
fix several dye-handling bugs
2017-01-28 09:02:14 -05:00
Vanessa Ezekowitz
aeb179a129
API CHANGE: after_dig_node instead of on_destruct
...
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-28 08:05:44 -05:00
Vanessa Ezekowitz
0fbf6baa72
fix facedir not being set when simple node placement fall-through is called
2017-01-28 07:19:30 -05:00
Vanessa Ezekowitz
525a143398
removed obsolete scripts and image
2017-01-26 19:37:29 -05:00
Vanessa Ezekowitz
4622d25e76
fix wrong param2 setting
2017-01-26 19:02:55 -05:00
Vanessa Ezekowitz
3e93c10cfd
handle both cases of nodes being set with facedir
2017-01-26 15:49:06 -05:00
Vanessa Ezekowitz
2959698111
remove debug statements
2017-01-26 14:21:54 -05:00
Vanessa Ezekowitz
b42376ba3d
improve handling of greyscale in get-hsv function
2017-01-26 13:51:38 -05:00
Vanessa Ezekowitz
1c5d79800f
add an alternate "find HSV" function.
...
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-26 13:42:36 -05:00
Vanessa Ezekowitz
b1ad76ab72
handle a few more color-to-grey and grey-to-color cases
2017-01-26 11:23:34 -05:00
Vanessa Ezekowitz
3f7fb1af74
Just do the node's color search manually
...
(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-26 11:06:31 -05:00
Vanessa Ezekowitz
4f1303aac1
handle special cases for greyscale dyes and unpainted nodes
2017-01-26 07:10:48 -05:00
Vanessa Ezekowitz
1773af6868
rework how split palettes are handled
2017-01-26 06:18:37 -05:00
Vanessa Ezekowitz
1c7f403f29
add "split" palette for mods that need facedir + param2 color
2017-01-25 18:21:26 -05:00
Vanessa Ezekowitz
00459f8859
only allow placing the wielded thing if it's actually a node
2017-01-25 16:05:24 -05:00
Vanessa Ezekowitz
1426efb517
include standard 89-color UD palette
2017-01-25 13:56:31 -05:00
Vanessa Ezekowitz
7c48587c6a
add a few missing aliases
2017-01-25 13:19:20 -05:00
Vanessa Ezekowitz
17522711de
Add some helper functions to support the new param2-style coloring
...
Most of the code came from cheapie's plasticbox mod
2017-01-25 12:59:49 -05:00
Auke Kok
d21cbc129d
Adding standard mod files
0.4.15
2016-03-27 21:36:36 -07:00
Mahmut Elmas
8d49d58331
Update and rename locale to locale/tr.txt
2015-03-02 19:36:15 +02:00
Vanessa Ezekowitz
4d58fda283
OPTIMIZE _ALL_ THE TEXTURES! \:D/
2015-01-23 14:10:13 -05:00
Vanessa Ezekowitz
127caef5b3
use current intllib API
2014-12-27 01:02:35 -05:00
Vanessa Ezekowitz
ef9c129aa2
fix licensing since bucket images aren't used anymore
2014-10-04 11:40:16 -04:00
Xanthin
4191f40c7c
add support for intllib translation mod
2014-03-20 02:11:30 +01:00
Xanthin
4a9c8bc20f
german translation
2014-03-20 02:07:49 +01:00
Xanthin
b3d0977614
Create template.txt
2014-03-20 02:06:54 +01:00
Vanessa Ezekowitz
08fe211bde
local-ize a few variables/tables
2013-12-15 13:03:38 -05:00