fixup: Loading frame
This commit is contained in:
@@ -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
|
||||||
@@ -38,6 +38,12 @@ public:
|
|||||||
m_Preloading = true;
|
m_Preloading = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CancelPreload()
|
||||||
|
{
|
||||||
|
m_Preloading = false;
|
||||||
|
m_CurrentItem = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void Update(double dt) override
|
void Update(double dt) override
|
||||||
{
|
{
|
||||||
if (m_Preloading) {
|
if (m_Preloading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user