diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/game.cpp | 1 | ||||
-rw-r--r-- | src/client/gameui.cpp | 2 | ||||
-rw-r--r-- | src/gui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/gui/guiCheatMenu.cpp | 19 | ||||
-rw-r--r-- | src/gui/guiCheatMenu.h | 34 |
5 files changed, 55 insertions, 2 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp index 8bb9d1d81..b366ac0a3 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2511,7 +2511,6 @@ void Game::handleKillaura(v3f origin, f32 max_d) continue; PointedThing pointed(id, v3f(0,0,0), v3s16(0,0,0), 0); client->interact(INTERACT_START_DIGGING, pointed); - break; } } diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index 239e518f7..a20c2c40d 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -223,7 +223,7 @@ void GameUI::setChatText(const EnrichedString &chat_text, u32 recent_chat_count) const v2u32 &window_size = RenderingEngine::get_instance()->getWindowSize(); - s32 chat_y = window_size.Y - 100 - m_guitext_chat->getTextHeight(); + s32 chat_y = window_size.Y - 150 - m_guitext_chat->getTextHeight(); if (m_flags.show_debug) chat_y += 2 * g_fontengine->getLineHeight(); diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 147f445f4..ae54adcff 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -6,6 +6,7 @@ set(gui_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/guiButtonImage.cpp ${CMAKE_CURRENT_SOURCE_DIR}/guiButtonItemImage.cpp ${CMAKE_CURRENT_SOURCE_DIR}/guiChatConsole.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/guiCheatMenu.cpp ${CMAKE_CURRENT_SOURCE_DIR}/guiConfirmRegistration.cpp ${CMAKE_CURRENT_SOURCE_DIR}/guiEditBoxWithScrollbar.cpp ${CMAKE_CURRENT_SOURCE_DIR}/guiEngine.cpp diff --git a/src/gui/guiCheatMenu.cpp b/src/gui/guiCheatMenu.cpp new file mode 100644 index 000000000..41c9fb84d --- /dev/null +++ b/src/gui/guiCheatMenu.cpp @@ -0,0 +1,19 @@ +/* +Dragonfire +Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de> + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser 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. +*/ + diff --git a/src/gui/guiCheatMenu.h b/src/gui/guiCheatMenu.h new file mode 100644 index 000000000..99f9b0e21 --- /dev/null +++ b/src/gui/guiCheatMenu.h @@ -0,0 +1,34 @@ +/* +Dragonfire +Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de> + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser 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. +*/ + +#pragma once + +#include "irrlichttypes_extrabloated.h" +#include "modalMenu.h" +#include "config.h" + +class GUICheatMenuEntry : public gui::IGUIElement +{ + GUICheatMenu(gui::IGUIEnvironment* env, + gui::IGUIElement* parent, + s32 id, + Client* client, + IMenuManager* menumgr); + +}; |