Would it be possible to have (at least readonly) access to the paused variable? I don't think it should be much of an issue to do this.
I can easily do this myself but first I need to ask if it'd be right to expose it.
checking if game is paused from zscript?
Moderator: GZDoom Developers
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
-
- Posts: 13885
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: checking if game is paused from zscript?
This variable is game sync'd, so it should be possible to have readonly access from all contexts.
-
-
- Posts: 17481
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: checking if game is paused from zscript?
Should only "paused" be exposed, or also "pauseext" (what does the latter even do anyway? I don't really understand its purpose)?
-
-
- Posts: 1707
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
Re: checking if game is paused from zscript?
Got a PR here. Better late then never, I guess?
As far as I understand, pauseext is a flag that is used to suspend the game when it loses focus. Since the entire game is suspended, I don't think it would make sense exposing it to user code. However, please correct me if I'm wrong.Nash wrote:Should only "paused" be exposed, or also "pauseext" (what does the latter even do anyway? I don't really understand its purpose)?
-
-
- Posts: 17481
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: checking if game is paused from zscript?
Player701: No, you're right, that doesn't seem like it has any business with mods. Good work. :)