1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Close button works.

This commit is contained in:
gugus 2012-04-15 21:02:54 +02:00
parent 58d05fa503
commit 489261a6ae
2 changed files with 10 additions and 2 deletions

View file

@ -29,11 +29,14 @@ ContainerWindow::ContainerWindow(WindowManager& parWindowManager,MWWorld::Enviro
{
setText("_Main", "Name of Container");
center();
adjustWindowCaption();
getWidget(containerWidget, "Items");
getWidget(takeButton, "TakeButton");
getWidget(closeButton, "CloseButton");
closeButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ContainerWindow::onByeClicked);
setText("CloseButton","Close");
setText("TakeButton","Take All");
}
@ -136,8 +139,13 @@ void ContainerWindow::open(MWWorld::Ptr& container)
setVisible(true);
}
void Update()
void ContainerWindow::Update()
{
}
void ContainerWindow::onByeClicked(MyGUI::Widget* _sender)
{
mEnvironment.mWindowManager->setGuiMode(MWGui::GuiMode::GM_Game);
}

View file

@ -53,7 +53,7 @@ namespace MWGui
MyGUI::ButtonPtr closeButton;
void onByeClicked(MyGUI::Widget* _sender);
//MWWorld::Ptr& mContainer;