SBARINFO
Moderator: GZDoom Developers
Re: SBARINFO
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.
Re: SBARINFO
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?
-
-
- Posts: 3203
- Joined: Wed Nov 24, 2004 12:59 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: SBARINFO
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
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
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: SBARINFO
Can't wait until this is officially added.
...unless someone can tell me how to use this.
...unless someone can tell me how to use this.

Re: SBARINFO
It's very easy. Just download the binary he posted and look at the SBARINFO. It's even easier than DECORATE.
-
-
- Posts: 3203
- Joined: Wed Nov 24, 2004 12:59 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: SBARINFO
So is there anything wrong with the current code?
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: SBARINFO
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...
-
-
- Posts: 3203
- Joined: Wed Nov 24, 2004 12:59 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: SBARINFO
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.
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.
Re: SBARINFO
Did you even read my post?Nash wrote:It's very easy. Just download the binary he posted and look at the SBARINFO. It's even easier than DECORATE.
- StrikerMan780
- Posts: 486
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: SBARINFO
This SBARINFO is pretty f***kin' sweet, I must say. Looking forward to it! How's it coming along now, Blzut?
Re: SBARINFO
Yes, it pretty much is. It's quickly turning into becoming a very powerful yet easy solution to implementing custom HUDs.
-
-
- Posts: 3203
- Joined: Wed Nov 24, 2004 12:59 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: SBARINFO
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).
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: SBARINFO
Maybe later this evening. I think I have done enough work on ZDoom for now...


- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: SBARINFO
What compiler did you develop this on?
VC++ 2005 doesn't compile due to non-constant array sizes.
VC++ 2005 doesn't compile due to non-constant array sizes.
Re: SBARINFO
Most likely GCC, then. That's one of its extensions.