Garry's Mod

Garry's Mod

Ruler Tool
目前顯示第 1-4 項,共 4 項
更新:2022 年 11 月 8 日 @ 下午 5:08

+ Added map scale toggle for the ruler tool.
* Fixed possible conflicting measurements with different defined values

Here is a full disclosure of conversion_types units being used to calculate for each mode:
["u"] = 1 / 0.75,
["in"] = 1,
["mm"] = 25.4,
["cm"] = 2.54,
["dm"] = 0.254,
["m"] = 0.0254,
["km"] = 0.0000254,
["ft"] = 1 / 12,
["yd"] = 1 / 36,
["mi"] = 1 / 63360,
["nmi"] = 127 / 9260000,

if map scale is enabled

scale = 1 / 0.75

else

scale = 1

end

The final calculation of the function toUnit is:

result = (input_value * scale) * conversion_type

please tell me if any of these need to be corrected as I'm pretty sure they are based on wiremods.

Please be considerate and thankful. I do still read your comments.

更新:2018 年 4 月 1 日 @ 上午 4:47

Fixed more spelling mistakes
...

更新:2015 年 3 月 21 日 @ 上午 7:42

更新:2014 年 12 月 7 日 @ 下午 12:13