forked from mirror/openmw-tes3mp
20 lines
465 B
C++
20 lines
465 B
C++
#include "spellwindow.hpp"
|
|
|
|
#include "window_manager.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
SpellWindow::SpellWindow(WindowManager& parWindowManager)
|
|
: WindowPinnableBase("openmw_spell_window_layout.xml", parWindowManager)
|
|
{
|
|
getWidget(mSpellView, "SpellView");
|
|
getWidget(mEffectBox, "EffectsBox");
|
|
|
|
setCoord(498, 300, 302, 300);
|
|
}
|
|
|
|
void SpellWindow::onPinToggled()
|
|
{
|
|
mWindowManager.setSpellVisibility(!mPinned);
|
|
}
|
|
}
|