|
|
@ -3172,6 +3172,15 @@ void AiL::ValidateGameStatus(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void AiL::RenderVersionInfo(){ |
|
|
|
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)); |
|
|
|
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<float>::max(),0.4f); |
|
|
|
DrawShadowStringDecal(vf2d{ GetScreenSize() } - vf2d{ GetTextSize(versionStr) }*0.4f,versionStr,WHITE,BLACK,{0.4f,0.4f},std::numeric_limits<float>::max(),0.4f); |
|
|
|
} |
|
|
|
} |
|
|
|