Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Digital Dial Widget with video passthrough
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land
Microcontrollers: Cockpit, Modular, Microcontroller
Tags: v1.3.6
File Size
Posted
36.650 KB
19 Oct, 2021 @ 9:05am
1 Change Note ( view )

Subscribe to download
Digital Dial Widget with video passthrough

Description
This is an updated version of my Digital Dial (link is at the bottom of the description), which draws a dial and shows the numerical value on a screen or hud.

To this version I added the ability to specify:
- the minimum value (at which all segments are off);
- where (on a screen) to draw the dial;
- easly adjustable element coloring mechanism.

Note: because these now have a Video passthrough input, one can use multiple of these to draw multple idependent dials on one screen (that is any size, as one can relocate each dial to any location)

If you're looking for a version of this micro without the video pasthrough input here is the link:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2632078001

Connections:
- Video passthrough (Video signal on to which overlay the dial);
- Value (value to be displayed);
- Video out (video output to a screen).

It also has built-in speed unit converter, if someone wants to use it as a speed dial.

Possible unit conversions:
- m/s (deafult)
- m/s->km/h
- m/s->mph
- m/s->knots

Settings:
- Max value (the value at which all lines are supposed to light up);
- Min value (the value at which all lines are supposed to not light up);
- Unit conversion;
- Guage pos X (the x coordinate of the top left corner of the dial);
- Guage pos Y (the y coordinate of the top left corner of the dial);
- Colors* :
-- Background color (color of the text background);
-- Text color (color of the text);
-- Line color (the default color of the outside lines);
-- Start color (color of the lines up until (& including) the "Start index");
-- End color (color of the lines from (& including) the "End index");
- Start index** (the index of the last line to be colored with the "Start color");
- End index** (the index of the first line to be colored with the "End color");

* - colors are supposed to be saved as hexadecimal values in the following format RRGGBBAA
(RR - red component, GG - green component, BB - blue component, AA - alpha component),
also if you have a hexadecimal number generator that adds "0x" to the beggining, then remove it manualy;
** - line indexes are 1-indexed (counting from 1 (not 0)), also there are only 38 lines (so setting "Start index" to 0 or "End index" to 39 disables each coloring entirely).

Link to the original Digital Dial:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1749529057