From 84e7677ce7154860083b345c9d2faa36a8dc858d Mon Sep 17 00:00:00 2001 From: SuperDude88 <82904174+SuperDude88@users.noreply.github.com> Date: Sat, 11 Jul 2026 19:27:54 -0400 Subject: [PATCH] Fix Overlapping Overlays Still overlaps while the pipeline building overlay is fading out --- src/dusk/ui/overlay.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dusk/ui/overlay.cpp b/src/dusk/ui/overlay.cpp index c0e073dbc2..3b5b43299e 100644 --- a/src/dusk/ui/overlay.cpp +++ b/src/dusk/ui/overlay.cpp @@ -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();