[Client] Remove debug code

new-script-api
Koncord 7 years ago
parent 4ebfcc4a21
commit 46d55816b8

@ -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;
}

Loading…
Cancel
Save