pause: fix button icons remaining when UI is hidden

This commit is contained in:
somewhatlurker
2019-10-22 05:42:52 +11:00
parent 6acaed6f3a
commit 942de967ce
@@ -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)