Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Expose quit game menu/method to ZScript/MENUDEF #2850

Open
jekyllgrim opened this issue Dec 6, 2024 · 2 comments
Open

[Feature] Expose quit game menu/method to ZScript/MENUDEF #2850

jekyllgrim opened this issue Dec 6, 2024 · 2 comments

Comments

@jekyllgrim
Copy link
Contributor

GZDoom version

GZDoom 4.13

Which game are you running with GZDoom?

None

What Operating System are you using?

Windows 10

If Other OS, please describe

No response

Relevant hardware info

No response

Is your feature request related to a problem? Please describe.

Judging by my research of the source code, there's no way to customize the quit game prompt in a mod as of now.

Describe the solution you'd like

I'd like to be able to define my own visuals, including a font, for the quit message, or, at the very least, an exit game method to be exposed to ZScript in some form so a custom menu could be built.

Describe alternatives you've considered

No response

Add any other context or screenshots about the feature request here.

No response

@RicardoLuis0
Copy link
Collaborator

there isn't really any "menu" to expose, "menu_quit" just spawns a regular messagebox menu and exits the game if it returns true, but an alternative would be to add ListMenuItemSafeCommand as a counterpart to OptionMenuItemSafeCommand that could do the same funcitonality with a custom prompt

@MajorCooke
Copy link
Contributor

Sounds like that solution would also solve my conundrum with trying to add a "mustconfirm" type of menu with only no skills defined while in a game to prevent people from accidentally immediately entering a new game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants