HUD: Drawing selected inventory item

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

HUD: Drawing selected inventory item

Postby Cherno » Mon Nov 06, 2017 12:56 pm

I use ACS to draw my complete HUD. I use the SetHudSize(320, 200, TRUE); function so everything is nice and pixelated, like the original VGA resolution. However, it seems that ACS can't draw the selected inventory item, and SBARINFO doesn't allow to specify the HUD resolution, so the resulting image would be too small and not fit with the rest of the HUD elements. What are my options? Use ZScript solely for the inventory icon?
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: HUD: Drawing selected inventory item

Postby ZippeyKeys12 » Mon Nov 06, 2017 1:25 pm

Cherno wrote:Use ZScript solely for the inventory icon?

That's what I would personally do, with the goal of gradually converting as much as conveniently possible to ZScript.
For future projects I'd say use ZScript but right now I can only see using ZScript solely for the inv icon as a solution. :shrug:
ZippeyKeys12
 
Joined: 15 Jun 2016


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest