|
|
|
@ -46,7 +46,6 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
mDisposeCorpseButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ContainerWindow::onDisposeCorpseButtonClicked);
|
|
|
|
|
mCloseButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ContainerWindow::onCloseButtonClicked);
|
|
|
|
|
mCloseButton->eventKeyButtonPressed += MyGUI::newDelegate(this, &ContainerWindow::onKeyPressed);
|
|
|
|
|
mTakeButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ContainerWindow::onTakeAllButtonClicked);
|
|
|
|
|
|
|
|
|
|
setCoord(200,0,600,300);
|
|
|
|
@ -158,14 +157,6 @@ namespace MWGui
|
|
|
|
|
setTitle(container.getClass().getName(container));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ContainerWindow::onKeyPressed(MyGUI::Widget *_sender, MyGUI::KeyCode _key, MyGUI::Char _char)
|
|
|
|
|
{
|
|
|
|
|
if (_key == MyGUI::KeyCode::Space)
|
|
|
|
|
onCloseButtonClicked(mCloseButton);
|
|
|
|
|
if (_key == MyGUI::KeyCode::Return || _key == MyGUI::KeyCode::NumpadEnter)
|
|
|
|
|
onTakeAllButtonClicked(mTakeButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ContainerWindow::resetReference()
|
|
|
|
|
{
|
|
|
|
|
ReferenceInterface::resetReference();
|
|
|
|
|