diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/res/resource.h b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/res/resource.h index 9c7149ad..dd55dfb3 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/res/resource.h +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/res/resource.h @@ -14,8 +14,6 @@ #define IDD_URULOGIN_EULA 154 #define IDD_AUTHFAILED 155 #define IDD_AUTHENTICATING 156 -#define IDR_LOADING_LINKTEXT 195 -#define IDR_LOADING_UPDATETEXT 196 #define IDC_CRASHINFO 1001 #define IDC_COPY 1002 #define IDC_MSG 1003 diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plDTProgressMgr.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plDTProgressMgr.cpp index 471f7be1..3719fbcf 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plDTProgressMgr.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPipeline/plDTProgressMgr.cpp @@ -84,7 +84,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); diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.cpp index 8329dd3f..983d4c8e 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.cpp @@ -71,9 +71,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 //////////////////////////////////////////////// @@ -250,7 +250,7 @@ char* plProgressMgr::GetLoadingFrameID(int index) return fImageRotation[0]; } -int plProgressMgr::GetStaticTextID(StaticText staticTextType) +char* plProgressMgr::GetStaticTextID(StaticText staticTextType) { return fStaticTextIDs[staticTextType]; } diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.h b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.h index f25992d1..34e366ab 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.h +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plProgressMgr/plProgressMgr.h @@ -197,7 +197,7 @@ class plProgressMgr static plProgressMgr *fManager; static char* fImageRotation[]; - static int fStaticTextIDs[]; + static char* fStaticTextIDs[]; protected: @@ -230,7 +230,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 ) { }