orwell96 / advtrains

Minetest Mod: Advanced Trains
https://forum.minetest.net/viewtopic.php?f=11&t=14726
GNU Lesser General Public License v2.1
42 stars 13 forks source link

Display the speed in km/h in the HUD #82

Closed lemon-melon closed 6 years ago

lemon-melon commented 7 years ago

This adds the speed (both current and target) as a number to the HUD, it looks like "Speed: |+++____> 11 km/h".

Why? I would like to use StreetsMod speed limit signs on my railways (yes, they're road signs not railway signs, but the EU road signs basically look like British railway signs except for being in km/h instead of mph), but you can't really use speed limit signs without knowing your speed as a number.

Also, I'm sorry, I think I botched the encoding of helpers.lua.

lemon-melon commented 7 years ago

Actually, revisiting this, I'm not sure how useful it is: it's only really necessary if you're driving manually, but if you have Lua/ATC automation, it's not really very useful. I'll leave it here in case anyone decides it would be good to have.

gpcf commented 7 years ago

please merge this

orwell96 commented 6 years ago

merged