Spotted a little minor bug.
"Clicking Apply on a style preset "locks" the generated image to the same layout."
Repro:
- RMB -> Style -> Preset
- Choose any preset and click Apply to make the style change, don't close the settings yet
- Press Enter to generate a new area, while the settings are opened
Expected:
A new area is generated.
Bug:
The same area is regenerated but with slightly different "seed". Like some outlines, trees and mountains are slightly different.
This happens only if you clicked Apply after choosing a style. If you choose a style again (even the same) while the settings are still opened, BUT don't click Apply after that, it starts to generate new areas. If you close the settings, it starts to generate new areas.
Actually, the area IS NOT regenerated with a slightly different seed, no generation happens at this moment at all. But the area IS REDRAWN and since drawing a map includes some randomization of its own, you get a slightly different image. Anyway, this glitch is related to the way the keyboard focus is handled in my UI library and the underlying OpenFL framework. I don't think it will be fixed anytime soon.