fusionengine-org/fusion

Need to make it not possible to close window w/o killing process

Techsplosion opened this issue · 6 comments

This feature is (pretty much) required for my game Dot. The entire game can be skipped via closing the window (which skips to the next level).

I'd prefer a method -something named like window.disable_close()-. It disables the close button like on error popups.

I have considered directly interacting with window.window - although I will have to do some research on PyGame.

For example, the feature request would make enabled_close look like disabled_close.

This has very much been needed

zenthm commented

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

Yes I can do that it's no problem. But gimme time, I can't do it today. Maybe it will come in the next release.

Well, this is maybe impossible to implement since the library depends on pygame which doesn't have this feature and also SDL2 (which pygame depends on) doesn't have this I think.

I'm fine with making the close button do nothing. Also, it would be nice to have an enable function as well.

Yes I can do that it's no problem. But gimme time, I can't do it today. Maybe it will come in the next release.

Aight, fine with me.

@dimkauzh Please check out #48.