diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index ba3c9e12..2065f89a 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -3172,6 +3172,15 @@ void AiL::ValidateGameStatus(){ } void AiL::RenderVersionInfo(){ + saveGameDisplayTime=std::max(0.f,saveGameDisplayTime-game->GetElapsedTime()); + if(saveGameDisplayTime>3.f){ + DrawShadowStringDecal({4.f,4.f},"Saving Game...",{255,255,255,uint8_t((sin(game->GetRuntime())+1)*127)},{0,0,0,uint8_t((sin(game->GetRuntime())+1)*127)}); + }else + if(saveGameDisplayTime>0.f){ + uint8_t alpha=uint8_t(util::lerp(0,255,saveGameDisplayTime/3.f)); + DrawShadowStringDecal({4.f,4.f},"Save Complete.",{255,255,255,alpha},{0,0,0,alpha}); + } + std::string versionStr("v" + std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_PATCH) + "." + std::to_string(VERSION_BUILD)); DrawShadowStringDecal(vf2d{ GetScreenSize() } - vf2d{ GetTextSize(versionStr) }*0.4f,versionStr,WHITE,BLACK,{0.4f,0.4f},std::numeric_limits::max(),0.4f); } diff --git a/Adventures in Lestoria/AdventuresInLestoria.h b/Adventures in Lestoria/AdventuresInLestoria.h index fe717f0b..7ea92737 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.h +++ b/Adventures in Lestoria/AdventuresInLestoria.h @@ -173,6 +173,7 @@ private: bool gameInitialized=false; ResourcePack gamepack; uint8_t mosaicEffectTransition=1U; + float saveGameDisplayTime=0.f; void ValidateGameStatus(); void _PrepareLevel(MapName map,MusicChange changeMusic); diff --git a/Adventures in Lestoria/SaveFile.cpp b/Adventures in Lestoria/SaveFile.cpp index b758e472..e34ec230 100644 --- a/Adventures in Lestoria/SaveFile.cpp +++ b/Adventures in Lestoria/SaveFile.cpp @@ -81,6 +81,8 @@ const size_t SaveFile::GetOnlineSaveFileCount(){ } const void SaveFile::SaveGame(){ + game->saveGameDisplayTime=6.f; + std::filesystem::create_directories("save_file_path"_S); utils::datafile saveFile; utils::datafile saveSystemFile; diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index c8cfe9cd..3f9018e5 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 7759 +#define VERSION_BUILD 7761 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index e729fb39..b896246f 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ