diff options
author | aap <aap@papnet.eu> | 2019-06-28 22:23:55 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-28 22:23:55 +0200 |
commit | 38a7b74b1a10ec64b0ebac060cac92786081f3e0 (patch) | |
tree | cfa2f9a7bd82c20decb84f12dcd1fd99b6b7bf3c /src/main.cpp | |
parent | fixed CFileMgr, the craziest bug i ever had (diff) | |
download | re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar.gz re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar.bz2 re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar.lz re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar.xz re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.tar.zst re3-38a7b74b1a10ec64b0ebac060cac92786081f3e0.zip |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8835bee9..c8af9ae0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -598,10 +598,46 @@ ResetLoadingScreenBar(void) NumberOfChunksLoaded = 0.0f; } -WRAPPER void +void LoadingIslandScreen(const char *levelName) { - EAXJMP(0x48DA50); + CSprite2d *splash; + wchar *name; + char str[100]; + wchar wstr[80]; + CRGBA col; + + splash = LoadSplash(nil); + name = TheText.Get(levelName); + if(!DoRWStuffStartOfFrame(0, 0, 0, 0, 0, 0, 255)) + return; + + CSprite2d::SetRecipNearClip(); + CSprite2d::InitPerFrame(); + CFont::InitPerFrame(); + DefinedState(); + col = CRGBA(255, 255, 255, 255); + splash->Draw(CRect(0.0f, 0.0f, SCREENW, SCREENH), col, col, col, col); + CFont::SetBackgroundOff(); + CFont::SetScale(1.5f, 1.5f); + CFont::SetPropOn(); + CFont::SetRightJustifyOn(); + CFont::SetRightJustifyWrap(150.0f); + CFont::SetFontStyle(FONT_HEADING); + sprintf(str, "WELCOME TO"); + AsciiToUnicode(str, wstr); + CFont::SetDropColor(CRGBA(0, 0, 0, 255)); + CFont::SetDropShadowPosition(3); + CFont::SetColor(CRGBA(243, 237, 71, 255)); + CFont::SetScale(SCREEN_STRETCH_X(1.2f), SCREEN_STRETCH_Y(1.2f)); + CFont::PrintString(SCREENW - 20, SCREEN_STRETCH_FROM_BOTTOM(110.0f), TheText.Get("WELCOME")); + TextCopy(wstr, name); + TheText.UpperCase(wstr); + CFont::SetColor(CRGBA(243, 237, 71, 255)); + CFont::SetScale(SCREEN_STRETCH_X(1.2f), SCREEN_STRETCH_Y(1.2f)); + CFont::PrintString(SCREENW-20, SCREEN_STRETCH_FROM_BOTTOM(80.0f), wstr); + CFont::DrawFonts(); + DoRWStuffEndOfFrame(); } char* |