You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "enchantingdialog.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
EnchantingDialog::EnchantingDialog(MWBase::WindowManager &parWindowManager)
|
|
|
|
: WindowBase("openmw_enchanting_dialog.layout", parWindowManager)
|
|
|
|
{
|
|
|
|
getWidget(mCancelButton, "CancelButton");
|
|
|
|
|
|
|
|
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &EnchantingDialog::onCancelButtonClicked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnchantingDialog::open()
|
|
|
|
{
|
|
|
|
center();
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnchantingDialog::startEnchanting (MWWorld::Ptr actor)
|
|
|
|
{
|
|
|
|
mPtr = actor;
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnchantingDialog::onReferenceUnavailable ()
|
|
|
|
{
|
|
|
|
mWindowManager.removeGuiMode (GM_Dialogue);
|
|
|
|
mWindowManager.removeGuiMode (GM_Enchanting);
|
|
|
|
}
|
|
|
|
|
|
|
|
void EnchantingDialog::onCancelButtonClicked(MyGUI::Widget* sender)
|
|
|
|
{
|
|
|
|
mWindowManager.removeGuiMode (GM_Enchanting);
|
|
|
|
}
|
|
|
|
}
|