From ee663c1fea7c79e6797676f79f3f0ff0066644d2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 24 Jul 2017 23:36:18 +0200 Subject: [PATCH] Tweak sign nodebox and textures --- mods/ITEMS/signs/init.lua | 30 ++++++++++++--------- mods/ITEMS/signs/textures/signs_back.png | Bin 343 -> 206 bytes mods/ITEMS/signs/textures/signs_bottom.png | Bin 286 -> 117 bytes mods/ITEMS/signs/textures/signs_front.png | Bin 344 -> 202 bytes mods/ITEMS/signs/textures/signs_side.png | Bin 284 -> 146 bytes mods/ITEMS/signs/textures/signs_top.png | Bin 286 -> 117 bytes 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/mods/ITEMS/signs/init.lua b/mods/ITEMS/signs/init.lua index f4d81e4d00..b269dd7a0d 100644 --- a/mods/ITEMS/signs/init.lua +++ b/mods/ITEMS/signs/init.lua @@ -123,18 +123,22 @@ local generate_texture = function(lines) return texture end +local n = 7/16 - 1/128 + local signs = { - {delta = {x = 0, y = 0, z = 0.399}, yaw = 0}, - {delta = {x = 0.399, y = 0, z = 0}, yaw = math.pi / -2}, - {delta = {x = 0, y = 0, z = -0.399}, yaw = math.pi}, - {delta = {x = -0.399, y = 0, z = 0}, yaw = math.pi / 2}, + {delta = {x = 0, y = 0, z = n}, yaw = 0}, + {delta = {x = n, y = 0, z = 0}, yaw = math.pi / -2}, + {delta = {x = 0, y = 0, z = -n}, yaw = math.pi}, + {delta = {x = -n, y = 0, z = 0}, yaw = math.pi / 2}, } +local m = 1/16 + 1/128 + local signs_yard = { - {delta = {x = 0, y = 0, z = -0.05}, yaw = 0}, - {delta = {x = -0.05, y = 0, z = 0}, yaw = math.pi / -2}, - {delta = {x = 0, y = 0, z = 0.05}, yaw = math.pi}, - {delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2}, + {delta = {x = 0, y = 0, z = -m}, yaw = 0}, + {delta = {x = -m, y = 0, z = 0}, yaw = math.pi / -2}, + {delta = {x = 0, y = 0, z = m}, yaw = math.pi}, + {delta = {x = m, y = 0, z = 0}, yaw = math.pi / 2}, } local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1, material_wood=1} @@ -199,8 +203,7 @@ minetest.register_node("signs:sign_wall", { sunlight_propagates = true, paramtype2 = "facedir", drawtype = "nodebox", - node_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}}, - selection_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}}, + node_box = {type = "fixed", fixed = {-7/16, -1/16, 7/16, 7/16, 7/16, 0.498}}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, groups = sign_groups, stack_max = 16, @@ -288,10 +291,11 @@ minetest.register_node("signs:sign_yard", { paramtype2 = "facedir", drawtype = "nodebox", node_box = {type = "fixed", fixed = { - {-0.45, -0.15, -0.049, 0.45, 0.45, 0.049}, - {-0.05, -0.5, -0.049, 0.05, -0.15, 0.049} + {-7/16, -1/16, -1/16, 7/16, 7/16, 0}, + {-1/16, -0.5, -1/16, 1/16, -1/16, 0}, + {-1/16, 7/16, -1/16, 1/16, 0.5, 0}, }}, - selection_box = {type = "fixed", fixed = {-0.45, -0.15, -0.049, 0.45, 0.45, 0.049}}, + selection_box = {type = "fixed", fixed = {-7/16, -0.5, -1/16, 7/16, 0.5, 0}}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, groups = sign_groups, drop = "signs:sign_wall", diff --git a/mods/ITEMS/signs/textures/signs_back.png b/mods/ITEMS/signs/textures/signs_back.png index 229a688e65c0a285f1be33c1799da6b5341b4c72..56a52472330d7075718e310c494ba579020f781d 100644 GIT binary patch delta 178 zcmV;j08Rhb0?q-DB!47OOjJdAT1-njE<7(Lc3((>W>1H0RB%{EL^UdGR6txsIz%@s zS41?=X5L-^003o4L_t(|0b>9HMg?`7I05Xbc0g!;23<2B= gU2OC7#SFv>lzsA8XATeT3Q(! sTbUSW8yH#{7#wVT^c_V*ZhlH;S|x4`8}3AT12r&sy85}Sb4q9e0Le{dYXATM diff --git a/mods/ITEMS/signs/textures/signs_bottom.png b/mods/ITEMS/signs/textures/signs_bottom.png index 30e2233f29a34579ca0d1a67ff7885a5f10932ba..c946af763dd81189c452f1e201d257942b54e55f 100644 GIT binary patch delta 99 zcmbQoR60Q-mV=3bfnmbL3^O2Q!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBD8U)v6XIGFX}qaB=>Px! zby4l*KtaYNZ+91_H13)dAcwug)7O>#Av3qIqHdV)>6btuAx{^_5RU7~2@TBw3J1I< zEMj30UdQXnu%T}{P*%0XHKHUXu_Vlzw{7+P8x8(W!}Y8x0@ l85m67c{Tt=LvDUbW?Cg~4Ue9bz5!}r@O1TaS?83{1OQ&%OVR)U diff --git a/mods/ITEMS/signs/textures/signs_front.png b/mods/ITEMS/signs/textures/signs_front.png index 51b2426306514d5f4041caf628c8f7b0b7650170..0a44a4d50e5ade505816abd10ba435e0bc66c227 100644 GIT binary patch delta 174 zcmV;f08#(g0?Gl9B!3}LOjJdAT1-njE<7(Ln|)rYhG?;mZjy6bSw=UFZd61!D_2A` zYiB2x0001FNkl}d@g9Tg1>EH0_W#wIQXKsBi$#xBkVASa`kCIAVj$q>Lb0me{3 cXKAcv@$lf rGBwdQFtjo-_?dF73PnS1eoAIqC2kEJmUYK~8W=oX{an^LB{Ts5x<+6? diff --git a/mods/ITEMS/signs/textures/signs_side.png b/mods/ITEMS/signs/textures/signs_side.png index 6eb174b0a3ec84a78eb0554eadbcded256f9fc4e..6a103b1f86c18b4198796eae96b0a0b5f539ba1f 100644 GIT binary patch delta 129 zcmbQkG>LJ7L=^`U0|Uc^i5X@)%F{FYqdBeqU=0%~ok|#L&6`H$unk|!&bDY5I zAT|p~v*l;o`W*hiVbrpFMuJqEyTB60%LX=03cL=xFFg6cF)4@nq?8Ar>aFToDe4pF g{Lt`S+hWSVa4FO_Ri=VR1ZW9^r>mdKI;Vst0J6L*cK`qY literal 284 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!93?!50ihlx9Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBD8U)v6XIGCXS%67=>Px! zO^Jr5fP#!k-tI0;Y1}m_Kn{C}r>`sfLuPJaCDG6%g)KlK0Z$jl5RU7~3A}>52@B*H z8Ls(rKb&{M>IhIywZt`|BqgyV)hf9t6-Y4{85o-D8W`&u8ip8JS{a*I85wFD7+M(^ iIJ^Gdi=rVnKP5A*61N5;31>#21_n=8KbLh*2~7a=v`1C| diff --git a/mods/ITEMS/signs/textures/signs_top.png b/mods/ITEMS/signs/textures/signs_top.png index 937f870804ca0b31199e77085d3b1ab5b14a273f..c946af763dd81189c452f1e201d257942b54e55f 100644 GIT binary patch delta 99 zcmbQoR60Q-mV=3bfnmbL3^O2Q!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBD8U)v6XM#IX}zgC=>Px! z%t;)-fr5-l-tI0;Y1}m_Kn{C}r>`sfLuPJaB~HiW8j!q@r;B3<$MxidhUNf;16~sr zu`md)