mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Replace hardcoded frame number in plDTProgressMgr.
This was overlooked when the consolidation was done in 3027e0605c
.
With this fix, the number of frames to be loaded is entirely defined
in a single place. This also prepares the code for a future commit
to remove the necessity of the compile-time definition entirely.
This commit is contained in:
@ -246,6 +246,11 @@ char* plProgressMgr::GetLoadingFrameID(int index)
|
||||
return fImageRotation[0];
|
||||
}
|
||||
|
||||
uint32_t plProgressMgr::NumLoadingFrames() const
|
||||
{
|
||||
return LOADING_RES_COUNT;
|
||||
}
|
||||
|
||||
const char* plProgressMgr::GetStaticTextID(StaticText staticTextType)
|
||||
{
|
||||
return fStaticTextIDs[staticTextType];
|
||||
|
@ -236,6 +236,7 @@ class plProgressMgr
|
||||
|
||||
static plProgressMgr* GetInstance() { return fManager; }
|
||||
static char* GetLoadingFrameID(int index);
|
||||
uint32_t plProgressMgr::NumLoadingFrames() const;
|
||||
static const char* GetStaticTextID(StaticText staticTextType);
|
||||
|
||||
virtual void Draw( plPipeline *p ) { }
|
||||
|
Reference in New Issue
Block a user