Ability to customize pause display

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Ability to customize pause display

Re: Ability to customize pause display

by Kzer-Za » Sat Jan 08, 2022 2:22 am

Well, I have an idea how to get around it, but I have created a separate topic for it, to stop derailing this thread :)

viewtopic.php?f=122&t=74378

Re: Ability to customize pause display

by Nash » Sat Jan 08, 2022 1:20 am

If I recall correctly, the thing about animated textures (and shaders) to continue to animate despite the entire game being paused is to allow texture animations that aren't locked to the playsim.

Though TBH, from my non-programmer perspective, I don't understand what's so hard about making the texture animations pause along with the playsim.

(oh and yes, as Blue Shadow said, the feature that Marisa submitted to GZDoom here has nothing to do with texture animation at all)

Re: Ability to customize pause display

by Blue Shadow » Sat Jan 08, 2022 1:02 am

This has no control over texture animation. What it is, is a UI feature that allows stuff to be drawn on the HUD while the game is paused, like the pause sign.

Re: Ability to customize pause display

by Kzer-Za » Sat Jan 08, 2022 12:13 am

And is it possible with this method to "completely freeze" the picture on the screen? What I mean is that with the default pause screen, some parts of the picture stay animated: textures with animdefs remain animated, and textures with shaders applied also keep their shaders, so if the shader animates the texture, it remains animated when the game is paused.

For me personally it ruins the immersion, since on one hand you can see, for example, a falling object that has frozen in midair, while on the other hand, (for example) the water in a waterfall keeps flowing down. It has been bugging me for a long time.

So, is it possible with DrawPaused to remember the state of all the pixels on the screen at the moment when the game was paused and keep drawing this exact picture until the game is unpaused? If so, how do I go about it?

Re: Ability to customize pause display

by Logan MTM » Fri Jan 07, 2022 6:39 pm

Well...
I know more about the the moon surface than zscript.
I was able to change the PAUSE lump at least.

Re: Ability to customize pause display

by Marisa the Magician » Fri Jan 07, 2022 6:20 pm

Yes, I can confirm as much. It may also be possible to forcibly resume other sounds and music too, if you want to. Pretty sure those functions are exported.

Re: Ability to customize pause display

by Rachael » Fri Jan 07, 2022 7:17 am

You can play sounds on the menu channel and they should play while paused though, AFAIK.

Re: Ability to customize pause display

by Marisa the Magician » Fri Jan 07, 2022 6:05 am

I'm afraid not. The music and sound pausing/resuming is hardcoded into the pause command. This is only for the actual display alone.

At least so far the most advanced thing I've been able to do is make the pause text bounce around like a dvd logo, but I've considered other possibilities like playing little looping animations, gradually dimming the screen, or turning the whole thing into just straight up a screensaver.

Re: Ability to customize pause display

by Logan MTM » Thu Jan 06, 2022 6:20 am

Blue Shadow wrote:Something like this...

Code: Select all

class MyStatusBar : BaseStatusBar
{
    override bool DrawPaused (int player)
    {
        // Do stuff here...

        // Returning 'true' skips the internal drawing of the "Pause" sign,
        // otherwise it's drawn too.
        return true;
    }
}
Oh, ok.
Please, let me ask.
This is about the PAUSE graphic on midle/top of the screen. Right?
There is the thing, i did 2 ACS Scripts that looks so damn cool that would be really Nice If i could replace the normal Doom Pause event with those ACS Scripts.
Basically the first one, freeze everything, fade the actual music to 0.0, fade in the Pause Music and draw the logo in the center of te screen.
The other script Just undo the first one in reverse order.

So, can i aply this plan with zscript?

Re: Ability to customize pause display

by Marisa the Magician » Sun Oct 17, 2021 2:29 am

Note that the "player" parameter is used for multiplayer so you can show the "by <player name>" subtitle. It will be set to -1 if it wasn't paused by a player (does that actually happen?).

Re: Ability to customize pause display

by Blue Shadow » Sat Oct 16, 2021 11:29 pm

Something like this...

Code: Select all

class MyStatusBar : BaseStatusBar
{
    override bool DrawPaused (int player)
    {
        // Do stuff here...

        // Returning 'true' skips the internal drawing of the "Pause" sign,
        // otherwise it's drawn too.
        return true;
    }
}

Re: Ability to customize pause display

by Logan MTM » Sat Oct 16, 2021 5:51 pm

Ok, how to...?

Re: Ability to customize pause display

by Marisa the Magician » Sat Oct 16, 2021 6:55 am

Graf Zahl wrote:Sure, why not?
Who are you and what have you done with Graf? :shock:

Re: Ability to customize pause display

by Graf Zahl » Sat Oct 16, 2021 3:36 am

Sure, why not?

Re: Ability to customize pause display

by SanyaWaffles » Sat Oct 16, 2021 3:32 am

This would be so cool.

Top