2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Add support for external resource Linking and Update text.

This commit is contained in:
2011-06-16 23:04:16 -07:00
parent b4422d2e95
commit 6d2ce47b37
6 changed files with 7 additions and 9 deletions

View File

@ -68,7 +68,7 @@ void plDTProgressMgr::Activate()
{
plPlateManager::Instance().CreatePlate(&fStaticTextPlate);
fStaticTextPlate->CreateFromJPEGResource(MAKEINTRESOURCE(plProgressMgr::GetStaticTextID(fCurrentStaticText)), 0);
fStaticTextPlate->CreateFromResource(plProgressMgr::GetStaticTextID(fCurrentStaticText));
fStaticTextPlate->SetVisible(true);
fStaticTextPlate->SetOpacity(1.0f);
fStaticTextPlate->SetSize(2 * 0.192f, 2 * 0.041f, true);

View File

@ -55,9 +55,9 @@ plProgressMgr *plProgressMgr::fManager = nil;
char* plProgressMgr::fImageRotation[LOADING_RES_COUNT];
int plProgressMgr::fStaticTextIDs[] = {
0,
IDR_LOADING_UPDATETEXT,
char* plProgressMgr::fStaticTextIDs[] = {
"xLoading_Linking_Text.png",
"xLoading_Updating_Text.png"
};
//// Constructor & Destructor ////////////////////////////////////////////////
@ -234,7 +234,7 @@ char* plProgressMgr::GetLoadingFrameID(int index)
return fImageRotation[0];
}
int plProgressMgr::GetStaticTextID(StaticText staticTextType)
char* plProgressMgr::GetStaticTextID(StaticText staticTextType)
{
return fStaticTextIDs[staticTextType];
}

View File

@ -181,7 +181,7 @@ class plProgressMgr
static plProgressMgr *fManager;
static char* fImageRotation[];
static int fStaticTextIDs[];
static char* fStaticTextIDs[];
protected:
@ -214,7 +214,7 @@ class plProgressMgr
static plProgressMgr* GetInstance() { return fManager; }
static char* GetLoadingFrameID(int index);
static int GetStaticTextID(StaticText staticTextType);
static char* GetStaticTextID(StaticText staticTextType);
virtual void Draw( plPipeline *p ) { }