From 46d55816b86cbee75c1bd48749c62e7707aa5a77 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 26 Nov 2017 02:14:20 +0800 Subject: [PATCH] [Client] Remove debug code --- apps/openmw/mwmp/GUIController.cpp | 118 ----------------------------- 1 file changed, 118 deletions(-) diff --git a/apps/openmw/mwmp/GUIController.cpp b/apps/openmw/mwmp/GUIController.cpp index f3dd81568..4a2ea3b46 100644 --- a/apps/openmw/mwmp/GUIController.cpp +++ b/apps/openmw/mwmp/GUIController.cpp @@ -208,124 +208,6 @@ bool mwmp::GUIController::pressedKey(int key) mChat->pressedSay(); return true; } - else if (key == SDL_SCANCODE_F4) - { - windowManager->removeDialog(mCustomWindow); - windowManager->pushGuiMode((MWGui::GuiMode)GM_TES3MP_CustomWindow); - mCustomWindow = nullptr; - - - BasePlayer::GUIWindow data; - data.id = 1234; - data.width = 450; - data.height = 250; - BasePlayer::GUIWindow::Widget widget; - { - widget.type = BasePlayer::GUIWindow::WidgetType::Button; - widget.posX = 12; - widget.posY = 12; - widget.name = "My Button"; - widget.disabled = false; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::Editbox; - widget.posX = 12; - widget.posY = 50; - widget.height = 30; - widget.width = 96; - widget.name = "MyEditBox"; // id - widget.disabled = false; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::Button; - widget.posX = 12; - widget.posY = 88; - widget.name = "Disabled\nButton"; - widget.disabled = true; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::Editbox; - widget.posX = 12; - widget.posY = 132; - widget.height = 30; - widget.width = 96; - widget.name = "Inactive"; // id - widget.disabled = true; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::Label; - widget.posX = 150; - widget.posY = 12; - widget.height = 0; - widget.width = 0; - widget.name = "Active ListBox"; // id - widget.disabled = false; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::ListBoxActive; - widget.posX = 130; - widget.posY = 30; - widget.height = 150; - widget.width = 150; - widget.name = "MyListBox"; // id - widget.disabled = false; - widget.data.clear(); - for(int i = 0; i < 10; ++i) - widget.data.push_back("Item" + std::to_string(i)); - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::Label; - widget.posX = 300; - widget.posY = 12; - widget.height = 0; - widget.width = 0; - widget.name = "Passive ListBox"; // id - widget.disabled = false; - data.widgets.push_back(widget); - } - - { - widget.type = BasePlayer::GUIWindow::WidgetType::ListBoxPassive; - widget.posX = 288; - widget.posY = 30; - widget.height = 150; - widget.width = 150; - widget.name = "MyListBox"; // id - widget.disabled = false; - widget.data.clear(); - for(int i = 0; i < 10; ++i) - widget.data.push_back("Value" + std::to_string(i)); - data.widgets.push_back(widget); - } - - mCustomWindow = new GUICustomWindow(data); - - { - widget.type = BasePlayer::GUIWindow::WidgetType::ListBoxPassive; - widget.posX = 12; - widget.posY = 168; - widget.height = 14; - widget.width = 110; - widget.name = "MySlider"; // id - widget.disabled = false; - mCustomWindow->addSlider(widget); - } - - mCustomWindow->setVisible(true); - return true; - } return false; }