Guest User

Untitled

a guest
May 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. function showPhysiology()
  2. WindowWidth = 10;
  3. WindowHeight = 0;
  4. WindowWidth, WindowHeight = getMainWindowSize();
  5.  
  6. createMiniConsole("phys",WindowWidth-1000,0,200,200)
  7. clearWindow("phys")
  8. setBackgroundColor("phys",0,0,0,255)
  9. setMiniConsoleFontSize("phys", 8)
  10. -- wrap lines in window "phys" at 40 characters per line
  11. setWindowWrap("phys", 40)
  12. -- set default font colors and font style for window "phys"
  13. setTextFormat("phys",255,255,0,0,0,0,0,0,0)
  14. moveWindow("phys",WindowWidth-330,affy-96)
  15. resizeWindow("phys",affwidth,250)
  16. handleWindowResizeEvent()
  17. cecho("phys","\n<yellow> "..string.rep("-",13))
  18. cecho("phys","\n<yellow>|Tempers = "..humours.tempers..string.rep(" ",3-string.len(humours.tempers)).."|")
  19. cecho("phys","\n<yellow> "..string.rep("-",13).."\n")
  20. local color = "green"
  21. if humours.balance == 1 then
  22. color = "green"
  23. else
  24. color = "red"
  25. end
  26. cecho("phys","\n<"..color..">Temper Balance")
  27.  
  28. if humours.homunculus == 1 then
  29. color = "green"
  30. else
  31. color = "red"
  32. end
  33. cecho("phys","\n<"..color..">Homunculus Balance\n\n")
  34.  
  35. if humours.choleric == 1 then
  36. color = "green"
  37. else
  38. color = "red"
  39. end
  40. cecho("phys","\n<"..color..">Choleric")
  41.  
  42. if humours.melancholic == 1 then
  43. color = "green"
  44. else
  45. color = "red"
  46. end
  47. cecho("phys","\n<"..color..">Melancholic")
  48.  
  49. if humours.phlegmatic == 1 then
  50. color = "green"
  51. else
  52. color = "red"
  53. end
  54. cecho("phys","\n<"..color..">Phlegmatic")
  55.  
  56. if humours.sanguine == 1 then
  57. color = "green"
  58. else
  59. color = "red"
  60. end
  61. cecho("phys","\n<"..color..">Sanguine")
  62. if humours.phlog == 1 then
  63. color = "green"
  64. else
  65. color = "red"
  66. end
  67. cecho("phys","\n\n<"..color..">Phlogistication")
  68. if humours.vitrified == 1 then
  69. color = "green"
  70. else
  71. color = "red"
  72. end
  73. cecho("phys","\n<"..color..">Vitrify")
  74. if humours.corrupt == 1 then
  75. color = "green"
  76. else
  77. color = "red"
  78. end
  79. cecho("phys","\n<"..color..">Corruption")
  80. cecho("phys","\n\n<yellow>H Target: <red>"..humours.hTarget)
  81. end
Add Comment
Please, Sign In to add comment