mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 06:45:33 +00:00
Close button works.
This commit is contained in:
parent
58d05fa503
commit
489261a6ae
2 changed files with 10 additions and 2 deletions
|
@ -29,11 +29,14 @@ ContainerWindow::ContainerWindow(WindowManager& parWindowManager,MWWorld::Enviro
|
||||||
{
|
{
|
||||||
setText("_Main", "Name of Container");
|
setText("_Main", "Name of Container");
|
||||||
center();
|
center();
|
||||||
|
adjustWindowCaption();
|
||||||
|
|
||||||
getWidget(containerWidget, "Items");
|
getWidget(containerWidget, "Items");
|
||||||
getWidget(takeButton, "TakeButton");
|
getWidget(takeButton, "TakeButton");
|
||||||
getWidget(closeButton, "CloseButton");
|
getWidget(closeButton, "CloseButton");
|
||||||
|
|
||||||
|
closeButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ContainerWindow::onByeClicked);
|
||||||
|
|
||||||
setText("CloseButton","Close");
|
setText("CloseButton","Close");
|
||||||
setText("TakeButton","Take All");
|
setText("TakeButton","Take All");
|
||||||
}
|
}
|
||||||
|
@ -136,8 +139,13 @@ void ContainerWindow::open(MWWorld::Ptr& container)
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void ContainerWindow::Update()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ContainerWindow::onByeClicked(MyGUI::Widget* _sender)
|
||||||
|
{
|
||||||
|
mEnvironment.mWindowManager->setGuiMode(MWGui::GuiMode::GM_Game);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace MWGui
|
||||||
MyGUI::ButtonPtr closeButton;
|
MyGUI::ButtonPtr closeButton;
|
||||||
|
|
||||||
|
|
||||||
|
void onByeClicked(MyGUI::Widget* _sender);
|
||||||
|
|
||||||
|
|
||||||
//MWWorld::Ptr& mContainer;
|
//MWWorld::Ptr& mContainer;
|
||||||
|
|
Loading…
Reference in a new issue