Add some padding on the right text of sum of best text.
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 51s

This commit is contained in:
sigonasr2 2025-05-01 16:10:59 -04:00
parent 3c6630e3c3
commit d76f2da638

View File

@ -122,7 +122,7 @@ void Timer::Draw(vf2d drawPos){
if(!differentialTotal.empty())differentialAmt=differentialTotal.top();
const std::string sumOfBestText{sumOfBest?util::timerStr(*sumOfBest+differentialAmt+differentialTime):"-"};
vf2d sumOfBestTextSize{engine.GetTextSizeProp(sumOfBestText)};
engine.DrawStringPropDecal(sumOfBestPane.pos+vf2d{sumOfBestPane.size.x-sumOfBestTextSize.x+1.f,1.f},sumOfBestText,WHITE);
engine.DrawStringPropDecal(sumOfBestPane.pos+vf2d{sumOfBestPane.size.x-sumOfBestTextSize.x-1.f,1.f},sumOfBestText,WHITE);
engine.DrawRectDecal(timerPane.pos,timerPane.size,GREY);
engine.DrawRectDecal(sumOfBestPane.pos,sumOfBestPane.size,GREY);
};