Commit Graph

203 Commits

Author SHA1 Message Date
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
Vanessa Dannenberg
2e4c2e2667 add "***" to all other warning/info msgs 2018-08-26 22:31:56 -04:00
Vanessa Dannenberg
6ecb115465 warn the user to open the color selector
instead of crashing if they have no color set :-)
2018-08-26 22:27:43 -04:00
Vanessa Dannenberg
4dde37c191 remove "already that color" chat msg (some found it annoying) 2018-08-26 22:16:28 -04:00
Vanessa Dannenberg
c9d7733d87 use right-click (on any random node) to open the color selector
experimental code to read the param2 of a node and make a dye out of it
used by airbrush, shift-right-click to change to that color
2018-08-26 22:15:37 -04:00
Vanessa Dannenberg
0a589e7529 use shift-right-click for color select form
(instead of punch or shift-punch)

Must be pointing at a node, doesn't matter what it is, but with a range
of 12, it's hard not to.
2018-08-26 19:34:01 -04:00
Vanessa Dannenberg
409ee441c4 respect protection 2018-08-26 08:59:28 -04:00
Vanessa Dannenberg
ca1ab44e78 add recipe for airbrush 2018-08-26 08:41:04 -04:00
Vanessa Dannenberg
e13d514ff7 allow shift-punch for airbrush form 2018-08-26 08:28:56 -04:00
Vanessa Dannenberg
fa71e3166c allow replacement nodes during airbrushing 2018-08-26 07:23:40 -04:00
Vanessa Dannenberg
414d72d2a6 new punch-to-colorize scheme
using a tool, the airbrush, for the job

point at air/nothing and punch while wielding the airbrush
to open the color selection form.
2018-08-26 07:10:00 -04:00
Vanessa Dannenberg
568168fe1f better handling of the register_on_placenode rotation fix 2018-08-26 07:09:20 -04:00
Vanessa Dannenberg
c005dc358a minor changes to colorwallmounted palette
got rid of the separate brown swatch in the colorwallmounted palette, as
it was being bypassed by the brown-> medium orange translation --
replaced it with light green.

fixed missing colorwallmounted light blue/azure check-and-return in
get_paletteidx()
2018-08-25 02:40:17 -04:00
Vanessa Dannenberg
c7fc48c8d0 fix some broken aliases,
add some corresponding ones (unifieddyes:* vs. dye:*)
2018-08-25 00:38:24 -04:00
Vanessa Dannenberg
de5f73e976 clarify usage of make_colored_itemstack() 2018-08-24 23:53:53 -04:00
Vanessa Dannenberg
0d00a7eae6 workaround for placing nodes with no color info in itemstack 2018-08-24 11:13:42 -04:00
Vanessa Dannenberg
adf1bc2c50 remove the old obsolete on_use stuff
(was applied to dye items, obsolete now)
2018-08-24 05:41:27 -04:00
Vanessa Dannenberg
35d34d809e more API doc tweaks 2018-08-23 05:56:02 -04:00
Vanessa Dannenberg
28b429785c more API.md tweaks 2018-08-22 22:27:07 -04:00
Vanessa Dannenberg
cac65df76c clarify API regarding neutral_node field 2018-08-22 20:39:45 -04:00
Vanessa Dannenberg
d3274ab66f remove debug prints 2018-08-22 20:07:15 -04:00
Vanessa Dannenberg
d2512952d9 forgot to add pink to craft helper 2018-08-22 20:06:29 -04:00
Vanessa Dannenberg
5557178cb4 proper handling of 89-color "split" palette in craft helper 2018-08-22 20:01:03 -04:00
Vanessa Dannenberg
4847b926d5 preserve color bits in rotation fixup calls 2018-08-22 04:25:43 -04:00
Vanessa Dannenberg
e3648f77e2 remove debug prints 2018-08-22 03:27:17 -04:00
Vanessa Dannenberg
b49ed1724b fix hue table type for wallmounted in craft helper 2018-08-22 03:14:20 -04:00
Vanessa Dannenberg
992bca7e15 update API for new paradigm
plus some minor cleanups and style fixes
2018-08-22 01:10:19 -04:00
Vanessa Dannenberg
2a81653492 Merge branch 'colored-itemstacks'
Make colored itemstacks the official code
2018-08-21 23:29:43 -04:00
Vanessa Dannenberg
a55f6faa14 further refine how colored itemstacks work 2018-08-21 23:28:17 -04:00
Vanessa Dannenberg
da24c09f62 check if pointed thing actually works in on_use 2018-08-03 09:22:17 -04:00
Vanessa Dannenberg
cd130cf8de
Merge pull request #23 from katkaha/dye_aliases
adding aliases for brown and grey dyes
2018-05-11 08:57:49 -04:00
katka
f6581b6ba3 adding aliases for brown and grey dyes 2018-05-10 20:13:31 +02:00
Carlos Barraza
48cd40a5c2 Agrege la traducción al español 2018-04-23 20:09:02 -07:00
Vanessa Dannenberg
0d654eafec
Merge pull request #21 from Jat15/patch-2
Fix grayscale with 89-color palette
2017-12-11 15:09:20 -05:00
Jat15
5dc464a4b2
Fix grayscale with 89-color palette
Fixes #19
2017-12-11 10:35:30 +01:00
Vanessa Dannenberg
3c8b698e8e
Merge pull request #20 from MuhdNurHidayat/master
Add Malay translation
2017-11-13 22:21:14 -05:00
Muhammad Nur Hidayat Yasuyoshi (MNH48.com)
e947a073ef Add Malay translation 2017-11-14 02:43:28 +08:00
Vanessa Ezekowitz
3764d33490 Merge pull request #16 from fat115/master
add french translation
2017-08-12 16:24:58 -04:00
fat115
384ccc3d44 add french translation 2017-08-06 15:11:07 +02:00
Vanessa Ezekowitz
08695d01ac some mods still need unifieddyes:white -> dye:white alias 2017-08-01 14:31:04 -04:00
Vanessa Ezekowitz
d843b33e7c Merge pull request #14 from afmachado/master
Translation to Brazilian Portuguese
2017-07-20 01:38:40 -04:00
Free Educational Software for Mobile Devices - Translations to Brazilian Portuguese
54c3316423 Translation to Brazilian Portuguese
Translation to Brazilian Portuguese
2017-06-27 18:55:52 -03:00
Vanessa Ezekowitz
a8caed8195 separate the make-colored-itemstack code into its own function 2017-06-20 17:01:54 -04:00
Vanessa Ezekowitz
731c7d133e disable old after_dig_node() callbacks
(don't split a digged node into neutral+dye)
2017-06-20 17:01:54 -04:00
Vanessa Ezekowitz
ad8ab99bd8 disable auto-coloring code entirely 2017-06-20 17:01:54 -04:00
Vanessa Ezekowitz
07101b99fe add helper function for crafting param2-colorized items
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-20 17:01:54 -04:00
Vanessa Ezekowitz
133bc06e3d link API to README 2017-06-20 17:00:46 -04:00