Advertisement
sumguytwitches

orbital info display accel

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