|
|
|
@ -2981,7 +2981,9 @@ void AiL::RenderMenu(){ |
|
|
|
|
if(Menu::alreadyClicked){ //Do not run a click event for this round.
|
|
|
|
|
Menu::alreadyClicked=false; |
|
|
|
|
}else{ |
|
|
|
|
Menu::stack.back()->Update(this); |
|
|
|
|
if(!MenuClicksDeactivated()){ |
|
|
|
|
Menu::stack.back()->Update(this); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for(Menu*menu:Menu::stack){ |
|
|
|
|
if(menu->cover)FillRectDecal({0,0},WINDOW_SIZE,{0,0,0,uint8_t(255*0.4)}); |
|
|
|
@ -3369,6 +3371,10 @@ void AiL::RenderFadeout(){ |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool AiL::MenuClicksDeactivated()const{ |
|
|
|
|
return fadeOutDuration>0||disableFadeIn||LoadingScreen::loading; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool AiL::GamePaused(){ |
|
|
|
|
return fadeOutDuration>0||disableFadeIn||paused||LoadingScreen::loading; |
|
|
|
|
} |
|
|
|
|