[ZScript] How to completely hide HUD + screen borders?
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!)
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!)
-
Athel
- Posts: 779
- Joined: Wed Aug 21, 2013 11:31 am
- Location: New Jersey
[ZScript] How to completely hide HUD + screen borders?
Hi, all! I'm trying to fully embrace using ZScript here, and it's proven to be quite a challenge for me thus far. This has most likely been answered to death at this point, but I honestly have no idea where to even start looking - how can I completely hide the player hud + screen borders using ZScript? The setup I have now uses SBARINFO and an Inventory check, which still keeps the screen border in tact but DOES hide the hud. I've come to understand that SBARINFO is now essentially deprecated. Any answers or pointers where I can look towards would be greatly appreciated!!
-
Athel
- Posts: 779
- Joined: Wed Aug 21, 2013 11:31 am
- Location: New Jersey
Re: [ZScript] How to completely hide HUD + screen borders?
Thought I'd update this with an answer I found for anyone else looking for this: in an override void Init() block, SetSize is what helps control the border size. By default, Doom's sbar's SetSize is (32, 320, 200). All I needed was to put SetSize(0,320,200). From there it was just a matter of giving a dummy "disableHUD" object to the player, and doing a CheckInventory to decide whether to draw the hud or not. Wasn't TOO complex, just hiding in plain sight!