Additional Strife-style Popups
Moderator: GZDoom Developers
Additional Strife-style Popups
Strife has popup menus that can be used to display additional information. Currently, it only has three available menus, used for keys, player stats and mission data in vanilla Strife. While these can already be modified to display whatever you need, this suggestion is for the defining of additional popups, and the keys to show/hide them.
Last edited by amv2k9 on Mon Aug 31, 2015 12:00 pm, edited 1 time in total.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Additional Strife-style Popups
I think, ideally, we should be able to define any number of popups and keys to show/hide them, i.e. genericize the functions needed.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Additional Strife-style Popups
First the Strife status bar needs to be converted to SBARINFO. Before that isn't done it's pointless to discuss this any further.
Re: Additional Strife-style Popups
I have developed a general purpose GUI library for such case, though currently it remains incomplete because people haven't shown much interest in it.
Re: Additional Strife-style Popups
It also has absolutely no benefit to this thread, seeing as ACS != native. 

- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: Additional Strife-style Popups
Popup menus?! Where?!
Re: Additional Strife-style Popups
We used them in ZDCMP2 for the objectives/log system, silly. 
Minor gripe: I don't get why this is closed with "Later" -- if the answer is indeed "Later", it should remain open, else the suggestion is going to get lost among all the other closed things.

Minor gripe: I don't get why this is closed with "Later" -- if the answer is indeed "Later", it should remain open, else the suggestion is going to get lost among all the other closed things.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Additional Strife-style Popups
To avoid clogging up the forum. Right now this isn't on the list and that won't change unless some fundamental prerequirement is done first.
- Tormentor667
- Posts: 13554
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: Additional Strife-style Popups
Hah, I always thought you did this with hudmessages 

Re: Additional Strife-style Popups
What is preventing Strife's statusbar from being SBARINFO'ed, anyways? Just out of curiosity.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Additional Strife-style Popups
I seem to recall the two major headaches are the health bar and the keys display.amv2k9 wrote:What is preventing Strife's statusbar from being SBARINFO'ed, anyways? Just out of curiosity.
Re: Additional Strife-style Popups
Playing Strife with the statbar on (I usually don't since it takes up so much screen real estate), I can see the problem. Strife has a second healthbar to show health >100. You couldn't just define a second DrawBar to render over the top of the first one, since they're both counting the same amount, and you can't use an IfHealth block and set it to check for health being above 100 either; the top bar will disappear when it gets down to halfway.
What we'd need is something like a range flag for DrawBar; a flag that only checks for the variable between a specified minimum amount and a maximum amount.
To use Strife as an example, you'd set up two DrawBars; the green one first, a standard bar. Rendered on top of that one would be the blue bar, with our hypothetical range flag set to check between 100 and 200 points of health. When the player's health is at 150, the blue bar is half full, as only the last 100 points is being checked.Is there something I'm missing with this idea?
What we'd need is something like a range flag for DrawBar; a flag that only checks for the variable between a specified minimum amount and a maximum amount.
To use Strife as an example, you'd set up two DrawBars; the green one first, a standard bar. Rendered on top of that one would be the blue bar, with our hypothetical range flag set to check between 100 and 200 points of health. When the player's health is at 150, the blue bar is half full, as only the last 100 points is being checked.
Code: Select all
drawbar "GRNBAR","TNT1A0",health,horizontal,-20,-40;
drawbar "BLUBAR","TNT1A0",health,horizontal,reverse,range(100,200),-20,-40;
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
Re: Additional Strife-style Popups
Just put a duplicate health bar in the ifhealth block.
Re: Additional Strife-style Popups
I don't think that's the only issue. The graphics for the health bar aren't present in either zdoom.pk3 or strife1.wad; zdoom creates the textures. Someone would need to create the graphics to be exactly the same colors as defined in strife_sbar.cpp:
In any case, I worked a little on this last night. I will start another topic for this and post what I have.
Code: Select all
static const BYTE rgbs[8*3] =
{
180, 228, 128, // light green
128, 180, 80, // dark green
196, 204, 252, // light blue
148, 152, 200, // dark blue
224, 188, 0, // light gold
208, 128, 0, // dark gold
216, 44, 44, // light red
172, 28, 28 // dark red
};