fixup: Loading frame

This commit is contained in:
2015-10-08 23:40:58 +02:00
parent a5c5b5eb3e
commit 18e2891621
2 changed files with 29 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef GAME_GUI_ELOADINGFRAMECOMPLETE_H__
#define GAME_GUI_ELOADINGFRAMECOMPLETE_H__
#include "Core/EventBroker.h"
namespace dd
{
namespace GUI { class LoadingFrame; }
namespace Events
{
struct LoadingFrameComplete : Event
{
std::string FrameName;
GUI::LoadingFrame* Frame = nullptr;
};
}
}
#endif
+6
View File
@@ -38,6 +38,12 @@ public:
m_Preloading = true;
}
void CancelPreload()
{
m_Preloading = false;
m_CurrentItem = 0;
}
void Update(double dt) override
{
if (m_Preloading) {