render extras with z-index higher than the carousel above the carousel

Signed-off-by: Sophia Hadash <sophiahadash@gmail.com>
This commit is contained in:
shadash 2021-10-15 22:54:04 +02:00 committed by Sophia Hadash
parent aa8b68f2a9
commit 957c1fa7fc

View file

@ -402,7 +402,8 @@ void SystemView::render(const glm::mat4& parentTrans)
glm::mat4 trans{getTransform() * parentTrans};
renderExtras(trans, INT16_MIN, INT16_MAX);
// Render the extras that are below the carousel.
renderExtras(trans, INT16_MIN, mCarousel.zIndex);
// Fade the screen if we're using fade transitions and we're currently transitioning.
// This basically renders a black rectangle on top of the currently visible extras
@ -412,6 +413,9 @@ void SystemView::render(const glm::mat4& parentTrans)
// Always render the carousel on top so that it's not faded.
renderCarousel(trans);
// Render the rest of the extras.
renderExtras(trans, mCarousel.zIndex, INT16_MAX);
}
std::vector<HelpPrompt> SystemView::getHelpPrompts()