mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
26 lines
734 B
C++
26 lines
734 B
C++
|
#include "settingswindow.hpp"
|
||
|
|
||
|
#include "window_manager.hpp"
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
SettingsWindow::SettingsWindow(WindowManager& parWindowManager) :
|
||
|
WindowBase("openmw_settings_window_layout.xml", parWindowManager)
|
||
|
{
|
||
|
getWidget(mOkButton, "OkButton");
|
||
|
|
||
|
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &SettingsWindow::onOkButtonClicked);
|
||
|
|
||
|
center();
|
||
|
|
||
|
int okSize = mOkButton->getTextSize().width + 24;
|
||
|
mOkButton->setCoord(mMainWidget->getWidth()-16-okSize, mOkButton->getTop(),
|
||
|
okSize, mOkButton->getHeight());
|
||
|
}
|
||
|
|
||
|
void SettingsWindow::onOkButtonClicked(MyGUI::Widget* _sender)
|
||
|
{
|
||
|
mWindowManager.setGuiMode(GM_Game);
|
||
|
}
|
||
|
}
|