From 65aea1b1a0beeac81168df63b89425d8bf25ca9e Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 22 Oct 2019 05:42:52 +1100 Subject: [PATCH] pause: fix button icons remaining when UI is hidden --- source-code/source/plugins/TLAC/Components/Pause.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source-code/source/plugins/TLAC/Components/Pause.cpp b/source-code/source/plugins/TLAC/Components/Pause.cpp index 52337c6..ad7eca4 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.cpp +++ b/source-code/source/plugins/TLAC/Components/Pause.cpp @@ -109,7 +109,17 @@ namespace TLAC::Components else { if (inputState->Tapped.Buttons & JVS_SQUARE) + { showUI = !showUI; + if (!showUI) + { + // clear these from the screen too + destroyAetLayer(triangleAet); + destroyAetLayer(squareAet); + destroyAetLayer(crossAet); + destroyAetLayer(circleAet); + } + } // only process menu events when UI is visible if (showUI)