Robert Timm
71a35d4d87
Fix translatability of colornames
2021-01-13 09:40:16 +00:00
VanessaE
eb5610fc10
workaround for engine bug in crafting, placing, digging
...
items with a palette index of 0
(see https://github.com/minetest/minetest/issues/10687 )
2020-12-02 09:42:33 -05:00
Louis Royer
e2c35e6694
Allows the airbrush to be placed into itemframes from homedecor
2020-08-21 03:27:13 +02:00
za267
09f95729c5
fix(bug):fix for a rare crash due to on_dig callback by non-player.
2020-07-09 12:05:10 -04:00
VanessaE
17e87a8162
add sanity checks for when what should be a player/digger is nil
2020-05-10 18:41:17 -04:00
Louis Royer
2d13513de0
Use mt5 translation api
...
This allow client side translation.
I also enabled translation on Dye Airbrush interface and added
`basic_materials` to `depends` since it is used for Dye Airbrush craft
(but, it could be moved to `optional_depends` if we check mod is loaded
to register craft).
2020-02-13 19:57:05 +01:00
flux
22dc40cacc
prevent crash when dropping item
2019-09-23 01:49:50 +00:00
Vanessa Dannenberg
9271f07f12
fix incorrect drop behavior when stipping bogus color
...
in the case of full inv.
Should be the same as normal Minetest behavior now:
In survival mode, the node is deleted, then:
* If there is room in your inv, you get whatever the node
would normally give you.
* If there's no room, the node drops to the ground as an item
entity.
In creative mode, the node is deleted, then:
* If you don't already have one of the item, you get one.
* If you already have one, or if there's no room in your
inventory, "you'll get nothing and LIKE it!" :-)
Also: made sure to check for creative priv as well as proper
creative mode.
2019-09-15 23:57:58 -04:00
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
10ab87bf65
prevent crash in setting sky color
...
if get color from name return nil
2019-05-25 04:14:12 -04: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
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
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
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