1
0
Fork 0
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:
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"); 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);
}

View file

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