Stormworks: Build and Rescue

Stormworks: Build and Rescue

十分な評価がありません
TomDRV's resizable Dial
   
アワード
お気に入り
お気に入り
お気に入りから削除
タグ: v1.7.11
ファイルサイズ
投稿日
更新日
83.018 KB
2023年6月12日 6時40分
2023年6月14日 7時42分
10 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
TomDRV's resizable Dial

解説
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.