summaryrefslogtreecommitdiff
path: root/src/content_nodemeta.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-18 02:00:01 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-18 02:00:01 +0300
commit931474658dacd32d1847b6718e3d5a33ca8f18ab (patch)
tree01e5c535f416d9727253e9f5b55a487ecd6d0d39 /src/content_nodemeta.cpp
parentda692355e84f8d1e5210c3c89daf775cf23ec38b (diff)
downloadminetest-931474658dacd32d1847b6718e3d5a33ca8f18ab.tar.gz
minetest-931474658dacd32d1847b6718e3d5a33ca8f18ab.tar.bz2
minetest-931474658dacd32d1847b6718e3d5a33ca8f18ab.zip
moved inventory menu definition of chest and furnace to content_nodemeta.{h,cpp}
Diffstat (limited to 'src/content_nodemeta.cpp')
-rw-r--r--src/content_nodemeta.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp
index 8627e18d0..92b2cbada 100644
--- a/src/content_nodemeta.cpp
+++ b/src/content_nodemeta.cpp
@@ -109,6 +109,13 @@ bool ChestNodeMetadata::nodeRemovalDisabled()
return false;
return true;
}
+std::string ChestNodeMetadata::getInventoryDrawSpecString()
+{
+ return
+ "invsize[8,9;]"
+ "list[current_name;0;0,0;8,4;]"
+ "list[current_player;main;0,5;8,4;]";
+}
/*
FurnaceNodeMetadata
@@ -301,5 +308,14 @@ bool FurnaceNodeMetadata::step(float dtime)
}
return changed;
}
+std::string FurnaceNodeMetadata::getInventoryDrawSpecString()
+{
+ return
+ "invsize[8,9;]"
+ "list[current_name;fuel;2,4;1,1;]"
+ "list[current_name;src;2,1;1,1;]"
+ "list[current_name;dst;5,1;2,2;]"
+ "list[current_player;main;0,5;8,4;]";
+}