SBARINFO

Moderator: GZDoom Developers

User avatar
Lazureus
Posts: 60
Joined: Sun Jul 08, 2007 7:35 am

Re: SBARINFO

Post by Lazureus »

Ah, yeah. Well, yeah these use the same type of code as the standard status bars use, so you'd be able to hide it and fall back to the fullscreen hud.
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: SBARINFO

Post by Nash »

Blzut, have you tried Randy's recent change where the screen blend is excluded from the status bar with your SBARINFO code? Do the both play well together?
Blzut3
 
 
Posts: 3203
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: SBARINFO

Post by Blzut3 »

The screen blend works just as it does for every other statusbar.

Along with a few bug fixes, I added some more functionality to SBarInfo to approach full Heretic support. I still need to do the fades, the life chain, and the artiflash animation. Also, I need to add a way to tell if a weapon uses 1 or 2 ammo types so that it can emulate the Heretic bar in ZDoom (which will draw the 2nd ammo type if the weapon has a 2nd).

I made a small change to g_level.cpp so that it will only load the last SBARINFO lump loaded (as loading two SBARINFO lumps would easily lead to clashing). However I also added the #include token.

http://blzut3.maniacsvault.net/zdoom-sbarinfo6.zip - Compiled binary
http://blzut3.maniacsvault.net/sbarinfo-docs.txt - Documentation
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: SBARINFO

Post by XutaWoo »

Can't wait until this is officially added.

...unless someone can tell me how to use this. :oops:
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: SBARINFO

Post by Nash »

It's very easy. Just download the binary he posted and look at the SBARINFO. It's even easier than DECORATE.
Blzut3
 
 
Posts: 3203
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: SBARINFO

Post by Blzut3 »

So is there anything wrong with the current code?
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: SBARINFO

Post by XutaWoo »

This doesn't have to do with the code but could you give an example for this lump in the Documation? I can't figure out how to end the code...
Blzut3
 
 
Posts: 3203
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: SBARINFO

Post by Blzut3 »

The code question was directed to Graf and Randy since I implemented everything that Graf requested.

Examples can be found in SBARINFO.doom and SBARINFO.heretic included with the binary. (I did include them right?) Open them with a text editor.
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: SBARINFO

Post by Nash »

Nash wrote:It's very easy. Just download the binary he posted and look at the SBARINFO. It's even easier than DECORATE.
Did you even read my post?
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: SBARINFO

Post by StrikerMan780 »

This SBARINFO is pretty f***kin' sweet, I must say. Looking forward to it! How's it coming along now, Blzut?
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: SBARINFO

Post by Nash »

Yes, it pretty much is. It's quickly turning into becoming a very powerful yet easy solution to implementing custom HUDs.
Blzut3
 
 
Posts: 3203
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: SBARINFO

Post by Blzut3 »

It's done until one of the developers decides to implement it. I do plan to continue to update it after it is included (or a problem is stated that I must fix beforehand).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SBARINFO

Post by Graf Zahl »

Maybe later this evening. I think I have done enough work on ZDoom for now...
;)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49226
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SBARINFO

Post by Graf Zahl »

What compiler did you develop this on?

VC++ 2005 doesn't compile due to non-constant array sizes.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: SBARINFO

Post by randi »

Most likely GCC, then. That's one of its extensions.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”