aboutsummaryrefslogtreecommitdiff
path: root/src/guiFurnaceMenu.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-06-27 06:56:26 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-06-27 06:56:26 -0700
commitf37a3a84fafb91bcfc109fed95aa6d42726f1bf7 (patch)
treecde1e5f47f191beb4a9cefcd87872aef53b5fcec /src/guiFurnaceMenu.cpp
parente261cc9e8fa67c9020fa0a82bd1a7041ecd351a0 (diff)
parent13cf5425db613dc0a4323c87a4988bb18fb87aca (diff)
downloadminetest-f37a3a84fafb91bcfc109fed95aa6d42726f1bf7.tar.gz
minetest-f37a3a84fafb91bcfc109fed95aa6d42726f1bf7.tar.bz2
minetest-f37a3a84fafb91bcfc109fed95aa6d42726f1bf7.zip
Merge pull request #13 from Bahamada/upstream_merge
Upstream merge
Diffstat (limited to 'src/guiFurnaceMenu.cpp')
-rw-r--r--src/guiFurnaceMenu.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/guiFurnaceMenu.cpp b/src/guiFurnaceMenu.cpp
deleted file mode 100644
index 9a998ce73..000000000
--- a/src/guiFurnaceMenu.cpp
+++ /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);
-}
-