Additional Strife-style Popups

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: Additional Strife-style Popups

Re: Additional Strife-style Popups

by jpalomo » Sun Sep 06, 2015 3:36 pm

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:

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
	};
In any case, I worked a little on this last night. I will start another topic for this and post what I have.

Re: Additional Strife-style Popups

by zrrion the insect » Sun Sep 06, 2015 2:46 pm

Just put a duplicate health bar in the ifhealth block.

Re: Additional Strife-style Popups

by amv2k9 » Sun Sep 06, 2015 1:49 pm

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.

Code: Select all

drawbar "GRNBAR","TNT1A0",health,horizontal,-20,-40;
drawbar "BLUBAR","TNT1A0",health,horizontal,reverse,range(100,200),-20,-40;
Is there something I'm missing with this idea?

Re: Additional Strife-style Popups

by wildweasel » Sat Sep 05, 2015 2:09 pm

amv2k9 wrote:What is preventing Strife's statusbar from being SBARINFO'ed, anyways? Just out of curiosity.
I seem to recall the two major headaches are the health bar and the keys display.

Re: Additional Strife-style Popups

by amv2k9 » Sat Sep 05, 2015 1:26 pm

What is preventing Strife's statusbar from being SBARINFO'ed, anyways? Just out of curiosity.

Re: Additional Strife-style Popups

by Tormentor667 » Thu Sep 03, 2015 1:50 pm

Hah, I always thought you did this with hudmessages :)

Re: Additional Strife-style Popups

by Graf Zahl » Thu Sep 03, 2015 9:06 am

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.

Re: Additional Strife-style Popups

by Xaser » Thu Sep 03, 2015 8:22 am

We used them in ZDCMP2 for the objectives/log system, silly. :P

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.

Re: Additional Strife-style Popups

by Tormentor667 » Thu Sep 03, 2015 4:28 am

Popup menus?! Where?!

Re: Additional Strife-style Popups

by edward850 » Thu Sep 03, 2015 3:02 am

It also has absolutely no benefit to this thread, seeing as ACS != native. :|

Re: Additional Strife-style Popups

by cybermind » Thu Sep 03, 2015 3:00 am

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

by Graf Zahl » Mon Aug 31, 2015 12:06 pm

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

by wildweasel » Mon Aug 31, 2015 11:56 am

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.

Additional Strife-style Popups

by amv2k9 » Mon Aug 31, 2015 11:48 am

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.

Top