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 f4d81e4d..b269dd7a 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 zcmcc4bdGU?O1(;ePl#(}l#jQyo{hd*S-eM6ntyw4NI`^~i>X#lh(nC4m5aG{xQog8 zw0m(33=FBBE{-7;jL8g4Zma?)-#kjn5t2$eaNt=U56e+D9+})s*}2B)CI$wxceL%W zlvZcBY9YOQ=MEKv0zd!Pb1nv6JaFLAq^z8rM@bAJlckd0Xg|tfFzU)=oX{|fhw%<~ h0uO5mn>ZIUL;gaME+H4&ddWV delta 316 zcmX@dc%5m2N3=9nHC7!;n><^i_g%vf_)a}z47#N&9T^vK|Ij;Bi>=tb>;9)+>7BhpP zy2<5@y|kYcmqx(S^R}M)j^5HKtT|>hVLrW`TV=EH_Z39Cq1A~K& kkG{h+n1XfW=BH$)RpQpM;ZBq{0|Nttr>mdKI;Vst0EWY2_y7O^ 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^N7>1{+To$B+ufqpfq{WB$=lt9DUG`(g@J*Ay~NYkmHiIQiyLQjU;R(t!id@_1N|vhm2|X3FyN$nf%E6&-Z?e}^~E#P7&up)6gXhYcr3sn dy*4 z_6YK2V5m}KU}$JzVEDzrz|io5fuYoZf#FpG1B2BJ1_tqhIlBUF7#J9Y0(?STE8cIn78Z%DTM|NlSBqqu(z3=E7(-tI1}Kk{E5XJBApFY)wsWq-)bEv#sEM}rAu zle4FbV+hCf(^Y{a28Ogv99ES{E6y-5FsPQeMwFx^mZVxG7o{eaq%s&87@F%E z80#7uh8S8}85>)fnrIssS{WGpOgUDCq9HdwB{QuOw}uYOx?>Cs3=E#GelF{r5}E+I CMqoey 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@L3=EN;E{-7;jL91=hBGe;&6PaC(XY_lz0+)&jGW^H zUI(#RGIEY=`PsHUhd*!_wd|geAl2qBu!QllflZSFufy&OPd;!=%3(e!<-w52 zOgD80{r~^JDbes00|NtNlDE4HQyOme)Muyr3hE@g!&aS`rqG-s?PsvQH#I31{+To$B+uf&p0|NtNlDE4HQyOTtwZt`|BqgyV)hf9tHL)a>!N|bST-U%@*U&J; x(9+7-#LB=@+rZGuz`&?~({dCIx%nxXX_dG&IA7wDW?*1o@O1TaS?83{1OUxBNcR8$