From 5f623c4ae7a577a0877cbaaf21792c3467a0694d Mon Sep 17 00:00:00 2001 From: kilbith Date: Tue, 1 Sep 2015 12:08:31 +0200 Subject: [PATCH] Curtain textures now depend on colorizing wool one --- nodes.lua | 10 ++++------ textures/xdecor_curtain.png | Bin 256 -> 0 bytes textures/xdecor_curtain_open.png | Bin 263 -> 0 bytes textures/xdecor_curtain_open_overlay.png | Bin 0 -> 532 bytes 4 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 textures/xdecor_curtain.png delete mode 100644 textures/xdecor_curtain_open.png create mode 100644 textures/xdecor_curtain_open_overlay.png diff --git a/nodes.lua b/nodes.lua index b761e2e..1982170 100644 --- a/nodes.lua +++ b/nodes.lua @@ -195,11 +195,10 @@ local colors = {"red"} -- Add more curtains colors simply here. for _, c in pairs(colors) do xdecor.register("curtain_"..c, { description = c:gsub("^%l", string.upper).." Curtain", - use_texture_alpha = true, walkable = false, - tiles = {"xdecor_curtain.png^[colorize:"..c..":130"}, - inventory_image = "xdecor_curtain_open.png^[colorize:"..c..":130", - wield_image = "xdecor_curtain.png^[colorize:"..c..":130", + tiles = {"wool_white.png^[colorize:"..c..":170"}, + inventory_image = "wool_white.png^[colorize:"..c..":170^xdecor_curtain_open_overlay.png^[makealpha:255,126,126", + wield_image = "wool_white.png^[colorize:"..c..":170", drawtype = "signlike", paramtype2 = "wallmounted", groups = {dig_immediate=3, flammable=3}, @@ -210,10 +209,9 @@ for _, c in pairs(colors) do }) xdecor.register("curtain_open_"..c, { - tiles = {"xdecor_curtain_open.png^[colorize:"..c..":130"}, + tiles = {"wool_white.png^[colorize:"..c..":170^xdecor_curtain_open_overlay.png^[makealpha:255,126,126"}, drawtype = "signlike", paramtype2 = "wallmounted", - use_texture_alpha = true, walkable = false, groups = {dig_immediate=3, flammable=3, not_in_creative_inventory=1}, selection_box = {type="wallmounted"}, diff --git a/textures/xdecor_curtain.png b/textures/xdecor_curtain.png deleted file mode 100644 index 1732dfea8262a222c81f0b9ba6c6d4e703d8be25..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 256 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa3-AeXU9x1!ym|AsZQHhSRYdvuDqtLx)cC%=-vb$yE~M7km>AI&|*j0!7VnPEzw8Uki-M)SMq)C%b`|imHs^cjM@(X6Ti2w!sTyufqZJsWUAsp9b zk1gan#Pm736fXr;D>al$9Qs{M;5PIzT}AxGRG>v_#r z&NR0TRpLcgu1Gpwe_V1Vw&47Xlif_r}|NkF(wO+6B-m~3qQB{`9C8|mYfp1Sw1HjMg>#Mr10a&e8 z0BklJL~l;+=(-Mo`FxJGmLjEu_nr^}04b$0AtR-Psv;ued0CdE zlrZ_C_kPkf(+BwS@Gt;aYY`EgbEK5$`yMl!%>ZbcX6)dc;~XMFj1lksD5Y&%OxJaz zK2@cvDss_ts47jR?hSb`=10000