removed furnace menu because it is not needed anymore
authorPerttu Ahola <celeron55@gmail.com>
Fri, 17 Jun 2011 23:32:34 +0000 (02:32 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 17 Jun 2011 23:32:34 +0000 (02:32 +0300)
src/CMakeLists.txt
src/game.cpp
src/guiFurnaceMenu.cpp [deleted file]
src/guiFurnaceMenu.h [deleted file]
src/main.cpp

index 64e63e2724f66f41985c740c50062563b55922a6..e6df823b8f15c0c5c5f6b5355c04006367b43506 100644 (file)
@@ -95,7 +95,6 @@ set(minetest_SRCS
        keycode.cpp
        clouds.cpp
        clientobject.cpp
-       guiFurnaceMenu.cpp
        guiMainMenu.cpp
        guiMessageMenu.cpp
        guiTextInputMenu.cpp
index c36688d122f29c61524e1802d78b7b404c7ffdd9..d9bbe795e76daf9f8ebe4ea57db09f381c7ee2ba 100644 (file)
@@ -25,7 +25,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "guiPasswordChange.h"
 #include "guiInventoryMenu.h"
 #include "guiTextInputMenu.h"
-#include "guiFurnaceMenu.h"
 #include "materials.h"
 #include "config.h"
 #include "clouds.h"
diff --git a/src/guiFurnaceMenu.cpp b/src/guiFurnaceMenu.cpp
deleted file mode 100644 (file)
index 9a998ce..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-Minetest-c55
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-
-#include "guiFurnaceMenu.h"
-#include "client.h"
-
-GUIFurnaceMenu::GUIFurnaceMenu(
-               gui::IGUIEnvironment* env,
-               gui::IGUIElement* parent, s32 id,
-               IMenuManager *menumgr,
-               v3s16 nodepos,
-               Client *client
-               ):
-       GUIInventoryMenu(env, parent, id, menumgr, v2s16(8,9),
-                       client->getInventoryContext(), client),
-       m_nodepos(nodepos),
-       m_client(client)
-{
-       std::string furnace_inv_id;
-       furnace_inv_id += "nodemeta:";
-       furnace_inv_id += itos(nodepos.X);
-       furnace_inv_id += ",";
-       furnace_inv_id += itos(nodepos.Y);
-       furnace_inv_id += ",";
-       furnace_inv_id += itos(nodepos.Z);
-
-       core::array<GUIInventoryMenu::DrawSpec> draw_spec;
-       draw_spec.push_back(GUIInventoryMenu::DrawSpec(
-                       "list", furnace_inv_id, "fuel",
-                       v2s32(2, 3), v2s32(1, 1)));
-       draw_spec.push_back(GUIInventoryMenu::DrawSpec(
-                       "list", furnace_inv_id, "src",
-                       v2s32(2, 1), v2s32(1, 1)));
-       draw_spec.push_back(GUIInventoryMenu::DrawSpec(
-                       "list", furnace_inv_id, "dst",
-                       v2s32(5, 1), v2s32(2, 2)));
-       draw_spec.push_back(GUIInventoryMenu::DrawSpec(
-                       "list", "current_player", "main",
-                       v2s32(0, 5), v2s32(8, 4)));
-       setDrawSpec(draw_spec);
-}
-
diff --git a/src/guiFurnaceMenu.h b/src/guiFurnaceMenu.h
deleted file mode 100644 (file)
index ccc2e9d..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
-Minetest-c55
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-
-#ifndef GUIFURNACEMENU_HEADER
-#define GUIFURNACEMENU_HEADER
-
-#include "guiInventoryMenu.h"
-
-class Client;
-
-class GUIFurnaceMenu : public GUIInventoryMenu
-{
-public:
-       GUIFurnaceMenu(
-                       gui::IGUIEnvironment* env,
-                       gui::IGUIElement* parent, s32 id,
-                       IMenuManager *menumgr,
-                       v3s16 nodepos,
-                       Client *client
-                       );
-private:
-       
-       v3s16 m_nodepos;
-       Client *m_client;
-};
-
-#endif
-
index 71ab5d037c489653da4c94af10152734656d90d4..455e0ac9bd329c9e0ae397c0586e7a8d313e5897 100644 (file)
@@ -335,9 +335,6 @@ Misc. stuff:
 - Finish the ActiveBlockModifier stuff and use it for something\r
 - Move mineral to param2, increment map serialization version, add conversion\r
 \r
-TODO: Create a common interface-whatever-thing to implement custom\r
-      special blocks with an inventory menu\r
-\r
 Making it more portable:\r
 ------------------------\r
  \r