Stormworks: Build and Rescue

Stormworks: Build and Rescue

Ei tarpeeksi arvosteluja
TomDRV's resizable Dial
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: v1.7.11
Tiedostokoko
Julkaistu
Päivitetty
83.018 KB
12.6.2023 klo 6.40
14.6.2023 klo 7.42
10 muutosilmoitusta ( näytä )

Tilaa ladataksesi
TomDRV's resizable Dial

Kuvaus
A basic dial function which allows the creation of a variety of dials. Barebones so you can add it into any setup you like.

This is a vehicle file, a demo rig with a screen and throttles hooked up to the function so you can play about with it, decide on your parameters, then copy them into your creation

This function is: dial(x,y,r,c,o,d,l,h,m,v) where:

x = x position
y = y position
r = radius
c = circumference (can be set to anywhere between a whole circle, a semi circle, an arc . . . all the way down to nothing)
o = orientation (the whole dial can be rotated 360 degrees)
d= true of false, if true, the dial will invert itself horizontally and measure anti-clockwise
l = low margin (% of the max reading where the green band will start)
h = high margin (% of the max reading where the red band will start)
m = max possible reading)
v = input value (source from the thing you're measuring.)

Due to the way Stormworks draws things, sometimes the dial can be slightly asymmetrical by 1-2 pixels. Tuning the size, position, or circumference by a tiny amount (0.01-1) fixes it. Stormworks rounds the throttle inputs to the nearest 0,01 (so use that once you've decided on your parameters and type them into your script)

Colours can be changed within the function, the lines are clearly annotated.

Permissions
- please feel free to use this on any creation without asking!, just please credit appropriately if you upload it to the workshop.