ZScript statusbar auto select

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!)
bDacc
Posts: 4
Joined: Thu Mar 06, 2025 4:53 pm
Preferred Pronouns: It/Its

ZScript statusbar auto select

Post by bDacc »

Im trying to get a hang of making zscript status bars, and so far ive made an inventory bar thats always on screen, but after hovering over an item, i have to press once to confirm before pressing again to actually use the item. Is there a way to make it only take one button press?
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: ZScript statusbar auto select

Post by Blue Shadow »

Put this line before you draw the inventory bar:

Code: Select all

CPlayer.inventorytics = 0;
bDacc
Posts: 4
Joined: Thu Mar 06, 2025 4:53 pm
Preferred Pronouns: It/Its

Re: ZScript statusbar auto select

Post by bDacc »

Thanks, that worked just fine!

Return to “Scripting”