Advertisement
sumguytwitches

orbital display for bottlnose

Apr 19th, 2021 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set sgp to 0.
  2. set sggo to true.
  3. set sgf to 8.
  4. set sgpr to 4.
  5. function sgd {
  6. parameter l. parameter d.
  7. If l:length > sgpr set sgpr to l:length.
  8. print (l:padleft(sgpr) + ": " +round(d,2)):padright(terminal:width) at (0, sgp).
  9. set sgp to sgp + 1.
  10. }.
  11. set sggo to false. wait 1. set sggo to true.
  12. On round(kuniverse:realtime * sgf) {
  13. set sgp to 0.
  14. sgd("Apoapsis", apoapsis).
  15. sgd("ETA Apoapsis", CHOOSE eta:apoapsis IF apoapsis > 0 ELSE -1).
  16.  
  17. sgd("Periapsis", periapsis).
  18. sgd("ETA Periapsis", CHOOSE eta:periapsis IF periapsis > 0 ELSE -1).
  19. sgd("Vertical Speed", ship:verticalspeed).
  20. sgd("alt radar",alt:radar).
  21. sgd("groundspeed",groundspeed).
  22. sgd("Ox",ship:oxidizer).
  23. sgd("LF",ship:liquidfuel).
  24. sgd("deploy",deploy).
  25. sgd("EC",Ship:Electriccharge).
  26. sgd("ore",Ship:ore).
  27.  
  28. Print "":padright(terminal:width) at (0,sgp).
  29. Set sgp to sgp + 1.
  30. Print "":padright(terminal:width) at (0,sgp).
  31. return sggo.
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement