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!)
User avatar
Cherno
Posts: 1318
Joined: Tue Dec 06, 2016 11:25 am

HUD: Drawing selected inventory item

Post by Cherno »

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?
ZippeyKeys12
Posts: 111
Joined: Wed Jun 15, 2016 2:49 pm

Re: HUD: Drawing selected inventory item

Post by ZippeyKeys12 »

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:

Return to “Scripting”