indik 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # indik
  2. if Enable_scalepic = 1:
  3. !0=reverse, 1=100%, 2=value. copy from 1.2.5, modify by illume
  4. if ARGS[1] < 1: ARGS[1] = 1
  5. if ARGS[1] > 100: ARGS[1] = 100
  6. ! scalewidth default = 120px
  7. if Enable_scalewidth > 1:
  8. max_width = Enable_scalewidth-1
  9. else
  10. max_width = 120
  11. end
  12. if Enable_scaleheight > 1:
  13. _height = Enable_scaleheight-1
  14. else
  15. _height = 15
  16. end
  17. _width = ARGS[1] * max_width / 100
  18. if ARGS[1] < 30: $_color = iif(ARGS[0] > 0,'green','red')
  19. if ARGS[1] >= 30 and ARGS[1] < 70 and ARGS[0] = 0: $_color = 'blue'
  20. ! reverse colors
  21. if ARGS[1] >= 30 and ARGS[1] < 50 and ARGS[0] > 0: $_color = 'yellow'
  22. if ARGS[1] >= 50 and ARGS[1] < 70 and ARGS[0] > 0: $_color = 'orange'
  23. ! ---
  24. if ARGS[1] >= 70: $_color = iif(ARGS[0]> 0,'red','green')
  25. $result = ' <img src="images/system/icon/'+$_color+'.png" height='+_height+' width=' + _width + '><img src="images/system/icon/blank.png" height='+_height+' width=' + (max_width-_width) + '> <font color='+$_color+'>'+ARGS[2]+'</font> '
  26. $ind = $result
  27. killvar 'max_width'
  28. killvar '_width'
  29. killvar '_height'
  30. killvar '$_color'
  31. else
  32. if cheatStatusBars = 1:
  33. i = 2
  34. else
  35. i = 3
  36. end
  37. if Enable_statfsize > 0 and Enable_statfsize < i:i = Enable_statfsize
  38. a = ARGS[1]
  39. a1 = ARGS[2]
  40. if $ARGS[0] = '1':
  41. if Enable_Android = 1:
  42. if a >= 65:
  43. $ind = '<font color="green"><<a1>></font>'
  44. elseif a >= 35:
  45. $ind = '<font color="blue"><<a1>></font>'
  46. else
  47. $ind = '<font color="red"><<a1>></font>'
  48. end
  49. else
  50. if a >= 100:
  51. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ████████████████████ </font><<a1>></font>'
  52. elseif a >= 95:
  53. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ███████████████████_ </font><<a1>></font>'
  54. elseif a >= 90:
  55. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ██████████████████__ </font><<a1>></font>'
  56. elseif a >= 85:
  57. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> █████████████████___ </font><<a1>></font>'
  58. elseif a >= 80:
  59. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ████████████████____ </font><<a1>></font>'
  60. elseif a >= 75:
  61. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ███████████████_____ </font><<a1>></font>'
  62. elseif a >= 70:
  63. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ██████████████______ </font><<a1>></font>'
  64. elseif a >= 65:
  65. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> █████████████_______ </font><<a1>></font>'
  66. elseif a >= 60:
  67. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ████████████________ </font><<a1>></font>'
  68. elseif a >= 55:
  69. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ███████████_________ </font><<a1>></font>'
  70. elseif a >= 50:
  71. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ██████████__________ </font><<a1>></font>'
  72. elseif a >= 45:
  73. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> █████████___________ </font><<a1>></font>'
  74. elseif a >= 40:
  75. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ████████____________ </font><<a1>></font>'
  76. elseif a >= 35:
  77. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ███████_____________ </font><<a1>></font>'
  78. elseif a >= 30:
  79. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ██████______________ </font><<a1>></font>'
  80. elseif a >= 25:
  81. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> █████_______________ </font><<a1>></font>'
  82. elseif a >= 20:
  83. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ████________________ </font><<a1>></font>'
  84. elseif a >= 15:
  85. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ███_________________ </font><<a1>></font>'
  86. elseif a >= 10:
  87. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ██__________________ </font><<a1>></font>'
  88. elseif a >= 5:
  89. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> █___________________ </font><<a1>></font>'
  90. elseif a >= 1:
  91. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ▓___________________ </font><<a1>></font>'
  92. elseif a <= 0 :
  93. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ____________________ </font><<a1>></font>'
  94. end
  95. end
  96. end
  97. if $ARGS[0] = '2':
  98. if Enable_Android = 1:
  99. if a >= 85:
  100. $ind = '<font color="red"><<a1>></font>'
  101. elseif a >= 65:
  102. $ind = '<font color="orange"><<a1>></font>'
  103. elseif a >= 45:
  104. $ind = '<font color="yellow"><<a1>></font>'
  105. elseif a >= 25:
  106. $ind = '<font color="green"><<a1>></font>'
  107. else
  108. $ind = '<font color="blue"><<a1>></font>'
  109. end
  110. else
  111. if a >= 100:
  112. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ████████████████████ </font></font>'
  113. elseif a >= 95:
  114. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ███████████████████_ </font></font>'
  115. elseif a >= 90:
  116. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> ██████████████████__ </font></font>'
  117. elseif a >= 85:
  118. $ind = '<font color="red"><font face="Consolas,monospace" size = <<i>>> █████████████████___ </font></font>'
  119. elseif a >= 80:
  120. $ind = '<font color="orange"><font face="Consolas,monospace" size = <<i>>> ████████████████____ </font></font>'
  121. elseif a >= 75:
  122. $ind = '<font color="orange"><font face="Consolas,monospace" size = <<i>>> ███████████████_____ </font></font>'
  123. elseif a >= 70:
  124. $ind = '<font color="orange"><font face="Consolas,monospace" size = <<i>>> ██████████████______ </font></font>'
  125. elseif a >= 65:
  126. $ind = '<font color="orange"><font face="Consolas,monospace" size = <<i>>> █████████████_______ </font></font>'
  127. elseif a >= 60:
  128. $ind = '<font color="yellow"><font face="Consolas,monospace" size = <<i>>> ████████████________ </font></font>'
  129. elseif a >= 55:
  130. $ind = '<font color="yellow"><font face="Consolas,monospace" size = <<i>>> ███████████_________ </font></font>'
  131. elseif a >= 50:
  132. $ind = '<font color="yellow"><font face="Consolas,monospace" size = <<i>>> ██████████__________ </font></font>'
  133. elseif a >= 45:
  134. $ind = '<font color="yellow"><font face="Consolas,monospace" size = <<i>>> █████████___________ </font></font>'
  135. elseif a >= 40:
  136. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ████████____________ </font></font>'
  137. elseif a >= 35:
  138. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ███████_____________ </font></font>'
  139. elseif a >= 30:
  140. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> ██████______________ </font></font>'
  141. elseif a >= 25:
  142. $ind = '<font color="green"><font face="Consolas,monospace" size = <<i>>> █████_______________ </font></font>'
  143. elseif a >= 20:
  144. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ████________________ </font></font>'
  145. elseif a >= 15:
  146. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ███_________________ </font></font>'
  147. elseif a >= 10:
  148. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ██__________________ </font></font>'
  149. elseif a >= 5:
  150. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> █___________________ </font></font>'
  151. elseif a >= 1:
  152. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ▓___________________ </font></font>'
  153. elseif a <= 0 :
  154. $ind = '<font color="blue"><font face="Consolas,monospace" size = <<i>>> ____________________ </font></font>'
  155. end
  156. end
  157. end
  158. end
  159. --- indik ---------------------------------