|
|
@ -15,8 +15,6 @@
|
|
|
|
#include "../mwmechanics/creaturestats.hpp"
|
|
|
|
#include "../mwmechanics/creaturestats.hpp"
|
|
|
|
#include "../mwmechanics/npcstats.hpp"
|
|
|
|
#include "../mwmechanics/npcstats.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "widgets.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -53,15 +51,14 @@ namespace MWGui
|
|
|
|
getWidget(mDateTimeText, "DateTimeText");
|
|
|
|
getWidget(mDateTimeText, "DateTimeText");
|
|
|
|
getWidget(mRestText, "RestText");
|
|
|
|
getWidget(mRestText, "RestText");
|
|
|
|
getWidget(mHourText, "HourText");
|
|
|
|
getWidget(mHourText, "HourText");
|
|
|
|
getWidget(mHourSlider, "HourSlider");
|
|
|
|
|
|
|
|
getWidget(mUntilHealedButton, "UntilHealedButton");
|
|
|
|
getWidget(mUntilHealedButton, "UntilHealedButton");
|
|
|
|
getWidget(mWaitButton, "WaitButton");
|
|
|
|
getWidget(mWaitButton, "WaitButton");
|
|
|
|
getWidget(mCancelButton, "CancelButton");
|
|
|
|
getWidget(mCancelButton, "CancelButton");
|
|
|
|
|
|
|
|
getWidget(mHourSlider, "HourSlider");
|
|
|
|
|
|
|
|
|
|
|
|
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onCancelButtonClicked);
|
|
|
|
mCancelButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onCancelButtonClicked);
|
|
|
|
mUntilHealedButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onUntilHealedButtonClicked);
|
|
|
|
mUntilHealedButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onUntilHealedButtonClicked);
|
|
|
|
mWaitButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onWaitButtonClicked);
|
|
|
|
mWaitButton->eventMouseButtonClick += MyGUI::newDelegate(this, &WaitDialog::onWaitButtonClicked);
|
|
|
|
|
|
|
|
|
|
|
|
mHourSlider->eventScrollChangePosition += MyGUI::newDelegate(this, &WaitDialog::onHourSliderChangedPosition);
|
|
|
|
mHourSlider->eventScrollChangePosition += MyGUI::newDelegate(this, &WaitDialog::onHourSliderChangedPosition);
|
|
|
|
|
|
|
|
|
|
|
|
mProgressBar.setVisible (false);
|
|
|
|
mProgressBar.setVisible (false);
|
|
|
@ -231,6 +228,8 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
void WaitDialog::onFrame(float dt)
|
|
|
|
void WaitDialog::onFrame(float dt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
mHourSlider->updateTime(dt);
|
|
|
|
|
|
|
|
|
|
|
|
if (!mWaiting)
|
|
|
|
if (!mWaiting)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|