Fix Overlapping Overlays

Still overlaps while the pipeline building overlay is fading out
This commit is contained in:
SuperDude88
2026-07-11 19:27:54 -04:00
parent 6849baac06
commit 84e7677ce7
+9
View File
@@ -254,6 +254,15 @@ void Overlay::update() {
mFpsCounter->SetAttribute("open", "");
mFpsCounter->SetAttribute("corner", kFpsCorners[idx]);
if(idx == 2 && mPipelineProgress && mPipelineProgress->GetAttribute("open")) {
// 12 (height of pipeline box off bottom) + height of pipeline box + 3 (padding space)
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(15 + mPipelineProgress->GetOffsetHeight(), Rml::Unit::PX));
}
else {
// Return fps counter to default height off the bottom
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(12, Rml::Unit::PX));
}
const Uint64 perfFreq = SDL_GetPerformanceFrequency();
float fps = aurora_get_fps();