summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-07 02:56:40 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-07 02:56:40 -0400
commitddbe33ed562ae26c232004e525c9ab62984f6a5f (patch)
treeafa32094082467fbd0d49ee8de8677449619ac4e
parentdf7edcb35c39df211582d1801a12af99e8532679 (diff)
downloadmesecons-ddbe33ed562ae26c232004e525c9ab62984f6a5f.tar
mesecons-ddbe33ed562ae26c232004e525c9ab62984f6a5f.tar.gz
mesecons-ddbe33ed562ae26c232004e525c9ab62984f6a5f.tar.bz2
mesecons-ddbe33ed562ae26c232004e525c9ab62984f6a5f.tar.xz
mesecons-ddbe33ed562ae26c232004e525c9ab62984f6a5f.zip
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.
-rw-r--r--mesecons_button/init.lua34
-rw-r--r--mesecons_textures/textures/jeija_wall_button_off.pngbin349 -> 411 bytes
-rw-r--r--mesecons_textures/textures/jeija_wall_button_on.pngbin563 -> 449 bytes
-rw-r--r--mesecons_textures/textures/jeija_wall_button_sides.pngbin0 -> 392 bytes
4 files changed, 27 insertions, 7 deletions
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 fadf3f3..0e3ff25 100644
--- a/mesecons_textures/textures/jeija_wall_button_off.png
+++ b/mesecons_textures/textures/jeija_wall_button_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_wall_button_on.png b/mesecons_textures/textures/jeija_wall_button_on.png
index 5d5f822..1d97464 100644
--- a/mesecons_textures/textures/jeija_wall_button_on.png
+++ b/mesecons_textures/textures/jeija_wall_button_on.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_wall_button_sides.png b/mesecons_textures/textures/jeija_wall_button_sides.png
new file mode 100644
index 0000000..b532537
--- /dev/null
+++ b/mesecons_textures/textures/jeija_wall_button_sides.png
Binary files differ