From ddbe33ed562ae26c232004e525c9ab62984f6a5f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 7 Aug 2012 02:56:40 -0400 Subject: [PATCH] Better wall button nodeboxes. Also fixed the deprecated time_images lines (now "tiles"). This also restores the textures I added a few months ago, since the ones I made are needed for a nodebox of this sort. --- mesecons_button/init.lua | 34 ++++++++++++++---- .../textures/jeija_wall_button_off.png | Bin 349 -> 411 bytes .../textures/jeija_wall_button_on.png | Bin 563 -> 449 bytes .../textures/jeija_wall_button_sides.png | Bin 0 -> 392 bytes 4 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 mesecons_textures/textures/jeija_wall_button_sides.png diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index aba1f5f..42f4de1 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -1,36 +1,56 @@ -- WALL BUTTON minetest.register_node("mesecons_button:button_off", { drawtype = "nodebox", - tile_images = {"jeija_wall_button_off.png"}, + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_off.png" + }, paramtype = "light", paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, selection_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } }, node_box = { - type = "fixed", - fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, + type = "fixed", + fixed = { + { -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button + { -4/16, -2/16, 5/16, 4/16, 2/16, 7/16 } -- the button itself + } }, groups = {dig_immediate=2}, description = "Button", }) minetest.register_node("mesecons_button:button_on", { drawtype = "nodebox", - tile_images = {"jeija_wall_button_on.png"}, + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_on.png" + }, paramtype = "light", paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, selection_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } }, node_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, + fixed = { + { -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 }, + { -4/16, -2/16, 13/32, 4/16, 2/16, 7/16 } + } }, groups = {dig_immediate=2, not_in_creative_inventory=1}, drop = 'mesecons_button:button_off', diff --git a/mesecons_textures/textures/jeija_wall_button_off.png b/mesecons_textures/textures/jeija_wall_button_off.png index fadf3f3eee696e23c02aa550a49a55cf1cb2113e..0e3ff25cb1c293a97ec68711c5233a007b148c7c 100644 GIT binary patch delta 384 zcmV-`0e}A80-FPnB!3BTNLh0L01Qq501FcVbuGES00007bV*G`2iyn;1}+wF(p>z+gcv<%X(K%5BZd zLkX?jC4gg~np3kVJb;14Db$e8gaQ6EHpH5m%GAzES4V?f0002ovPDHLkV1mRnf}sEa diff --git a/mesecons_textures/textures/jeija_wall_button_on.png b/mesecons_textures/textures/jeija_wall_button_on.png index 5d5f822177b880e73b76ef056ac5b1aa44aaedfc..1d974642accea24c4de88626656d478f666e766b 100644 GIT binary patch delta 423 zcmV;Y0a*UC1i=H4B!3BTNLh0L01Qq501FcVbuGES00007bV*G`2iyn;1}-kw(|z3l z00Cf0L_t(I%gvENZc{-FhCh2e6IfKr4d_8CafdFt=mCg?*l`*nF2I6gP{bkVy6Gm6 z&_>C7Ge3(YkCbHJdS#70pMU#@=MLK^)9F;Lwe6!Bl4z|Vfq%RG`(TEdF_}yZAoc~R z0Tp-0-Dpj?a{v;hl-*1pfCC`so>DqsMa~&X2q6i>kQ!!*_1dX*bPPyo!^PWAjK{Y~ zzT3|b8k*h3Z1#p9H}6jYI>zIleEss7To$0i3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