|
|
|
@ -2981,8 +2981,10 @@ void AiL::RenderMenu(){ |
|
|
|
|
if(Menu::alreadyClicked){ //Do not run a click event for this round.
|
|
|
|
|
Menu::alreadyClicked=false; |
|
|
|
|
}else{ |
|
|
|
|
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)}); |
|
|
|
|
menu->Draw(this); |
|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|