pause: fix button icons remaining when UI is hidden

This commit is contained in:
somewhatlurker
2019-10-22 05:42:52 +11:00
parent f8f3b399e7
commit 65aea1b1a0
@@ -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)