Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Configurable HUD Gauge
3
   
Award
Favorite
Favorited
Unfavorite
Tags: v1.13.6
File Size
Posted
Updated
34.770 KB
12 Aug, 2021 @ 11:09pm
24 Feb @ 10:57pm
2 Change Notes ( view )

Subscribe to download
Configurable HUD Gauge

Description
Inspired by a HUD gauge I saw on Reddit, I decided it would be fun to make a super configurable gauge display for video monitors.

Features:
- Configurable Min/Max values (obviously!)
- Configurable x, y, width, height
- Configurable color gradient
- Configurable label
- Configurable value display
- Switch between showing raw value or percentage
- Select between several gauge types:
--- Vertical Bar
--- Horizontal Bar
--- Vertical Wedge
--- Horizontal Wedge
--- Dial
--- Radial (Circle)
- Each gauge type comes with "filled" and "needle" display types
- Toggle property that controls the direction of the gauges (up vs down, clockwise vs counter-clockwise, etc)
- Overlays on top of a video input, so multiple gauges can be added to any HUD
- Includes an input to disable the gauge (passes input video through without drawing anything)

If anyone has any ideas for improvements, I'm all ears.
17 Comments
Wolves Hero 18 Jun @ 11:33am 
See picture look bit fine, I have changed FOV from 80 to 70 inside vehicle & bit close up monitors by seat better to see reading texts. Bar & dial & Radial & etc easily scale up 64 or 96 easily fit on high quality 96x96 monitors better than ugly 32x32 monitors. Any dial scale 64 easily fit up to 9 dial on 2x2 blocks high quality monitor :steamthumbsup:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3502833189
Tank Missile  [author] 17 Jun @ 5:46pm 
Yes, I understand your problem but stormworks does not provide any way to set the size of the text. It is always exactly 4 pixels wide and 5 pixels tall. If you want larger text to go with your higher resolution screen you will need to use another microcontroller that provides resizable text
Wolves Hero 17 Jun @ 5:28pm 
32x32 monitor look ugly, 96x96 monitos is nice high quality but text too small can't change size text. 96x96 monitor only good for radar & gauge meter & map without text, I have separate monitor 32x32 for text

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3502220213
Tank Missile  [author] 17 Jun @ 5:04pm 
To clarify, it's not possible for me to implement the ability to change the text size within this controller without also building a whole configurable text library inside the controller
Tank Missile  [author] 17 Jun @ 4:58pm 
Indeed, stormworks does not provide any text size argument. The text size is the text size. You'll have to find a separate text controller if you want to resize the text
Wolves Hero 17 Jun @ 4:38pm 
Worked great on More monitors some nice high quality monitor 96x96 but text too small can't change size text can't find size text in LUA
Tank Missile  [author] 25 Feb @ 5:02pm 
I'm glad to hear it holds up. I wrote down some notes about stuff I wanted to add at work and then I forgot to bring them home...
Herro 1357 25 Feb @ 6:27am 
Huge Thank You, didn't realise this code was so old. Managed to flip it myself is a super jerry rigged way, but I'll go back and replace the butherd code :)

This has to be the coolest looking dials on the workshop, especially with the color gradiant dials
Tank Missile  [author] 24 Feb @ 11:00pm 
@Herro

I've added a toggle property to flip the direction of the gauges. It was a real mindbender working through 3.5 year old code that I had deliberately minified because of the character limit hahaha
Tank Missile  [author] 24 Feb @ 6:05pm 
@Herro
There isn't currently, but now that the character limit is higher I can see about adding it.

Yeah, I have no problem with you using it