nargil
30-03-2009 17:31:54
I can't access the window I just created, because the window thats on the bottom of it receives all mouse / key clicks.
I have:
at some point in the notifyEndDrop event I call:
here is a video:
http://www.youtube.com/watch?v=cj1WnK-dPHY
I have:
class InventoryWindow : public wraps::BaseLayout
{
...
}
at some point in the notifyEndDrop event I call:
GameEngine::getSingletonPtr()->getGuiManager()->getGui()->load("amount.layout");
MyGUI::WindowPtr am = GameEngine::getSingletonPtr()->getGuiManager()->getGui()->findWidget<MyGUI::Window>(Ogre::String("AmountWin"),false);
am->findWidget("ok")->eventMouseButtonClick = MyGUI::newDelegate(this,&InventoryWindow::amountOK);
MyGUI::InputManager::getInstance().setKeyFocusWidget(am);
//MyGUI::InputManager::getInstance().addWidgetModal(am); // this does not help - just makes it worse, because I can't move the inventory window to the side and access the new created window
here is a video:
http://www.youtube.com/watch?v=cj1WnK-dPHY