Vanessa Dannenberg
9ff40a7fe6
Add a helper function to reset a node's/item's color info
...
if a neutral node somehow ends up with different itemstack
meta when placed and then later dug. Prevents look-alike stacks.
2019-07-18 02:00:56 -04:00
Vanessa Dannenberg
e048da9c3c
remove mentions of on_construct
...
(outdated, no longer valid or necessary)
2019-07-07 15:53:03 -04:00
Izzle
6c8a0b2387
Add Russian translations
2019-06-26 10:27:48 -04:00
Vanessa Dannenberg
10ab87bf65
prevent crash in setting sky color
...
if get color from name return nil
2019-05-25 04:14:12 -04:00
Vanessa Dannenberg
f59c8affc1
Merge branch 'master' into 'master'
...
Fixed yield for crafted dyes.
See merge request VanessaE/unifieddyes!2
2019-02-07 15:19:47 +00:00
Michal Cieslakiewicz
667bce80b9
Fixed yield for crafted dyes.
...
Fix a bug that caused multiple inconsistent recipes to appear
(identical dye resources gave different dye output quantity).
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-07 10:08:04 +01:00
Vanessa Dannenberg
5039a8ce07
Merge branch 'patch-1' into 'master'
...
Fix numbers relating to greys
See merge request VanessaE/unifieddyes!1
2018-12-16 00:09:21 +00:00
Alexand(er|ra) Yst
13a8cbb38f
Some of the numbers relating to greys are used inconsistently, making three of the palette colours unreachable. This bug patch fixes the numbers and restores full usability of the palette.
2018-12-15 10:53:35 +00:00
cheapie
58dd71e561
Add function to get the hex color from a dye name
...
(oh, and https://www.youtube.com/watch?v=OEVFbrEv83w too)
2018-12-01 17:59:00 -06:00
Vanessa Dannenberg
1fd850d37c
change airbrush recipe
...
to 1 brass ingot, 2 steel ingots, and 1 plastic sheet
2018-11-23 10:38:05 -05:00
Vanessa Dannenberg
334de564fd
fix crash
...
when trying to airbrush unknown nodes or nodes without palettes.
2018-10-19 16:00:05 -04:00
Vanessa Dannenberg
545968517b
more strict checking of need to reset param2 on place
...
fixes wood (coloredwood mod), stone (blox mod), bricks (unified
bricks mod), etc. being rotated wrong
2018-10-12 07:55:09 -04:00
Jat15
368205d3b8
Add VALS_SPLIT for craft
...
Add faint + light.
2018-10-05 05:23:02 +02:00
Vanessa Dannenberg
feed6d5aae
add human-readable color names to tooltips and "your selection
...
in airbrush form, plus minor re-arrangements and size adjustment to fit.
2018-09-23 18:11:07 -04:00
Vanessa Dannenberg
4811847655
check palette filename when airbrushing to determine mode.
...
(relying just on paramtype2 doesn't work :-/ )
2018-09-13 22:32:12 -04:00
Vanessa Dannenberg
44629935d2
turn unavail colors in selector into non-clickable flat images
...
(instead of making them all buttons)
2018-09-13 00:17:13 -04:00
Vanessa Dannenberg
ccbedcd3d6
allow passing an explicitly-available list of colors for airbrush
2018-09-13 00:03:59 -04:00
Vanessa Dannenberg
622d09a243
get rid of colors.txt, outdated
2018-09-12 23:08:17 -04:00
Vanessa Dannenberg
27fe090395
clarify item desc in split palette register nodes helper
2018-09-12 22:44:24 -04:00
Vanessa Dannenberg
230ac1342a
remove debug prints
2018-09-12 22:39:44 -04:00
Vanessa Dannenberg
e921095006
allow access to the 0 column in the split palettes
...
which now contains a "faint" shade of each color
brings the total to 197 colors in split mode.
2018-09-12 22:37:52 -04:00
Vanessa Dannenberg
3eb3a9a330
expand old split-89 palette to 176 colors
...
(by adding more hues, now has all 24 in 7 shades each
plus 5 greys)
2018-09-12 22:29:57 -04:00
Vanessa Dannenberg
078a998d29
append output
given to color craft helper if prefix/suffix are used
...
(if any; allows specifying an item count/yield for the recipe)
2018-09-12 20:34:28 -04:00
Vanessa Dannenberg
4b88997360
add helper function for registering split palette nodes
2018-09-12 20:19:07 -04:00
Vanessa Dannenberg
ef7d357e0b
make sure group.ud_param2_colorable exists before trying to check its value :P
2018-09-12 19:40:22 -04:00
Vanessa Dannenberg
66774213e2
use the node's paramtype2 instead of its palette filename
...
to decide what the airbrush should do with it.
(that plus a few related changes allows coloredwood mod to make
the airbrush work on stairsplus cut plain wood slabs/slopes/et. al)
2018-09-12 18:32:04 -04:00
Vanessa Dannenberg
ad21862eee
add hues+greys table
2018-09-12 16:38:42 -04:00
Vanessa Dannenberg
ad12387432
use "split"
for split-89 palette instead of true
.
2018-09-08 12:09:25 -04:00
Vanessa Dannenberg
7b18314235
drop support for the old 89 color palette - obsolete
...
(the full version)
2018-09-08 11:49:20 -04:00
Vanessa Dannenberg
73a062f026
don't register pink recipe twice for wallmounted
2018-09-08 11:30:14 -04:00
Vanessa Dannenberg
0413f23df1
fix incorrect handling of "azure" re: wallmounted palette
...
(it doesn't exist there :P replaced with light blue)
also fixed missing craft helper recipe for same
and fixed missing light_red in color<->palette table.
2018-09-08 11:21:00 -04:00
Vanessa Dannenberg
8fbd9cd23b
condense legend a bit
...
move selected dye label over next to/under "Your selection"
2018-09-08 11:08:37 -04:00
Vanessa Dannenberg
997d703b94
eliminate most egregious string concats in color select form
...
build it into a table and return table.concat()
instead of using foo = foo..bar or foo = bar..baz..meh everywhere
2018-09-08 10:53:25 -04:00
Vanessa Dannenberg
95f009a282
show in color selector when a dye is on-hand in survival, but unavailable
...
(right-clicked node can't use it)
2018-09-08 10:24:08 -04:00
Vanessa Dannenberg
fb2c14b4a8
rename "available" overlay to "onhand"
2018-09-08 10:15:51 -04:00
Vanessa Dannenberg
42093582df
show "on hand" indicators in "avail only" screen
2018-09-08 10:13:31 -04:00
Vanessa Dannenberg
3cbb25d92a
pass inv to colored squared function
2018-09-08 10:09:42 -04:00
Vanessa Dannenberg
0589d8f02e
dim-out the user's color choice in the color selector
...
and reject it on clicking "Accept",
if they went to "Show All" to select a color,
but then went back to "Show Avail" before clicking Accept.
(i.e. only accept what's shown as available to click on)
2018-09-08 10:05:13 -04:00
Vanessa Dannenberg
fc199cced4
moved the formspec code for the colored squares to its own function
2018-09-08 09:47:31 -04:00
Vanessa Dannenberg
da9ab7215c
make airbrush show only the colors the right-clicked node can use
...
(with button to toggle between that mode and show-all)
2018-09-08 09:09:13 -04:00
Vanessa Dannenberg
19febc877d
fix typo
2018-08-28 22:50:05 -04:00
Vanessa Dannenberg
c3036aba00
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
2018-08-28 22:44:02 -04:00
Vanessa Dannenberg
d53fb146dd
show the player's current painting-with color,
...
if no color is selected, if any
if no painting-with and no selected, shows a "?"
2018-08-27 20:01:15 -04:00
Vanessa Dannenberg
5b1051f8ae
show the "your selection" legend in creative mode
...
(since it now shows the selected color instead of an empty box)
2018-08-27 19:52:15 -04:00
Vanessa Dannenberg
62806f795e
better handling of exiting the color selector form
...
also prints a warning if the user clicked "Accept" without a color selected
2018-08-27 19:45:34 -04:00
Vanessa Dannenberg
057baacf2d
make "Your selection" legend show your selected color
...
or show a "?" when a color hasn't been chosen
2018-08-27 19:30:36 -04:00
Vanessa Dannenberg
f7cc4be2c3
update API
2018-08-27 02:50:45 -04:00
Vanessa Dannenberg
4dc4b0e08a
fix broken re-painting of nodes using the split palettes
...
(broken in multiple places....oy.)
also, fix wrong light green shade in colorwallmounted palette
also, fixed many wrong/missing aliases and translations between old and current colors
(i.e. aqua<->spring, skyblue<->azure, redviolet<->rose)
2018-08-27 01:10:44 -04:00
Vanessa Dannenberg
3898337fc3
don't try to match last_color to registered_items table, that breaks aliases
2018-08-27 00:05:34 -04:00
Vanessa Dannenberg
088b5ee120
tweak switching-to msg
2018-08-26 22:35:40 -04:00