mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
31 lines
560 B
C++
31 lines
560 B
C++
|
#include "enchantingdialog.hpp"
|
||
|
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
|
||
|
|
||
|
EnchantingDialog::EnchantingDialog(MWBase::WindowManager &parWindowManager)
|
||
|
: WindowBase("openmw_enchanting_dialog.layout", parWindowManager)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void EnchantingDialog::open()
|
||
|
{
|
||
|
center();
|
||
|
}
|
||
|
|
||
|
void EnchantingDialog::startEnchanting (MWWorld::Ptr actor)
|
||
|
{
|
||
|
mPtr = actor;
|
||
|
}
|
||
|
|
||
|
void EnchantingDialog::onReferenceUnavailable ()
|
||
|
{
|
||
|
mWindowManager.removeGuiMode (GM_Dialogue);
|
||
|
mWindowManager.removeGuiMode (GM_Enchanting);
|
||
|
}
|
||
|
|
||
|
}
|