Problem to solve
In some scenarios it is desired to just describe for each overlay the conditions when it should be visible or not directly to a setter rather than having to conditionally call add/remove.
For example like this:
game.overlays.setVisible("hud", game.gameState.level > 0 && !game.gameState.paused);
instead of:
if (game.gameState.level > 0 && !game.gameState.paused) {
game.overlays.add("hud");
} else {
game.overlays.remove("hud");
}
Proposal
Add a new member function setVisible to OverlayManager.
More information
flame version: 1.36.0
Other
Problem to solve
In some scenarios it is desired to just describe for each overlay the conditions when it should be visible or not directly to a setter rather than having to conditionally call add/remove.
For example like this:
instead of:
Proposal
Add a new member function
setVisibleto OverlayManager.More information
flame version: 1.36.0
Other