Stormworks: Build and Rescue

Stormworks: Build and Rescue

Không đủ lượt đánh giá
TomDRV's resizable Dial
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Nhãn: v1.7.11
Kích cỡ file
Đã đăng
Đã cập nhật
83.018 KB
12 Thg06, 2023 @ 6:40am
14 Thg06, 2023 @ 7:42am
10 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
TomDRV's resizable Dial

Mô tả
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.