Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
670 stars 72 forks source link

Window size resets after scene change #154

Closed brian-holsters closed 3 months ago

brian-holsters commented 3 months ago

When playing in windowed mode you can resize the window (this is a great feature which i love using since i have a weird resolution monitor, so please dont fix by removing xD), however whenever a scene change happens, the window resizes back to the saved resolution in the configuration (which makes sense i guess).

Possible solutions:

Phazorknight commented 3 months ago

So the Window resize on scene change happens due to the options cfg being loaded whenever the OptionsMenu being loaded (this is to make sure the game loads with the same setting whenever you start it).

Hearing your specific issue, i think the ideal solution would be something like this:

This would require some changes to the options script, but should be doable.

save resolution to the settings automatically

I haven't tried, but I feel there could be some funky behaviour happening when using this as the "save" trigger.