Advertisement
alecblaster

Thermal Expansion Computercraft EnergyCellInfoBoard V2

Aug 22nd, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.47 KB | None | 0 0
  1. screen = peripheral.wrap("monitor_19")
  2.  
  3. screen.setBackgroundColor(8)
  4. screen.clear()
  5. screen.setTextColor(2)
  6. screen.setTextScale(4)
  7. screen.setCursorPos(8,4)
  8. screen.write("Zonga")
  9. screen.setTextColor(1)
  10. screen.write("LP")
  11. screen.setCursorPos(15,8)
  12. screen.write("Loading")
  13.  
  14.  
  15. cell1 = peripheral.wrap("cofh_thermalexpansion_energycell_1")
  16. cell2 = peripheral.wrap("cofh_thermalexpansion_energycell_2")
  17. cell3 = peripheral.wrap("cofh_thermalexpansion_energycell_3")
  18. cell4 = peripheral.wrap("cofh_thermalexpansion_energycell_4")
  19. cell5 = peripheral.wrap("cofh_thermalexpansion_energycell_5")
  20. cell6 = peripheral.wrap("cofh_thermalexpansion_energycell_6")
  21.  
  22.  
  23.  
  24.  
  25. while true do
  26.  
  27. max1 = cell1.getMaxEnergyStored("1")
  28. max2 = cell2.getMaxEnergyStored("2")
  29. max3 = cell3.getMaxEnergyStored("3")
  30. max4 = cell4.getMaxEnergyStored("4")
  31. max5 = cell5.getMaxEnergyStored("5")
  32. max6 = cell6.getMaxEnergyStored("6")
  33.  
  34. energy1 = cell1.getEnergyStored("1")
  35. energy2 = cell2.getEnergyStored("2")
  36. energy3 = cell3.getEnergyStored("3")
  37. energy4 = cell4.getEnergyStored("4")
  38. energy5 = cell5.getEnergyStored("5")
  39. energy6 = cell6.getEnergyStored("6")
  40.  
  41. fill1 = energy1 / max1 * 100
  42. fill2 = energy2 / max2 * 100
  43. fill3 = energy3 / max3 * 100
  44. fill4 = energy4 / max4 * 100
  45. fill5 = energy5 / max5 * 100
  46. fill6 = energy6 / max6 * 100
  47.  
  48. fill1 = math.floor(fill1)
  49. fill2 = math.floor(fill2)
  50. fill3 = math.floor(fill3)
  51. fill4 = math.floor(fill4)
  52. fill5 = math.floor(fill5)
  53. fill6 = math.floor(fill6)
  54.  
  55.  
  56.  
  57. local oldetc1 = cell1.getEnergyStored("1")
  58. local oldetc2 = cell2.getEnergyStored("2")
  59. local oldetc3 = cell3.getEnergyStored("3")
  60. local oldetc4 = cell4.getEnergyStored("4")
  61. local oldetc5 = cell5.getEnergyStored("5")
  62. local oldetc6 = cell6.getEnergyStored("6")
  63.  
  64. sleep(1)
  65.  
  66. local etc1 = cell1.getEnergyStored("1")
  67. local etc2 = cell2.getEnergyStored("2")
  68. local etc3 = cell3.getEnergyStored("3")
  69. local etc4 = cell4.getEnergyStored("4")
  70. local etc5 = cell5.getEnergyStored("5")
  71. local etc6 = cell6.getEnergyStored("6")
  72.  
  73. local max1etc = cell1.getMaxEnergyStored("1")
  74. local max2etc = cell2.getMaxEnergyStored("2")
  75. local max3etc = cell3.getMaxEnergyStored("3")
  76. local max4etc = cell4.getMaxEnergyStored("4")
  77. local max5etc = cell5.getMaxEnergyStored("5")
  78. local max6etc = cell6.getMaxEnergyStored("6")
  79.  
  80. local energyinsec1 = etc1 - oldetc1
  81. local energyinsec2 = etc2 - oldetc2
  82. local energyinsec3 = etc3 - oldetc3
  83. local energyinsec4 = etc4 - oldetc4
  84. local energyinsec5 = etc5 - oldetc5
  85. local energyinsec6 = etc6 - oldetc6
  86.  
  87. time1 = 0
  88. time2 = 0
  89. time3 = 0
  90. time4 = 0
  91. time5 = 0
  92. time6 = 0
  93.  
  94.  
  95. if energyinsec1 == 0 then
  96. until1 = 2
  97. end
  98. if energyinsec1 > 0 then
  99. until1 = 3
  100. end
  101. if energyinsec1 < 0 then
  102. energyinsec1 = energyinsec1 - energyinsec1 - energyinsec1
  103. until1 = 1
  104. end
  105.  
  106.  
  107. if energyinsec2 == 0 then
  108. until2 = 2
  109. end
  110. if energyinsec2 > 0 then
  111. until2 = 3
  112. end
  113. if energyinsec2 < 0 then
  114. energyinsec2 = energyinsec2 - energyinsec2 - energyinsec2
  115. until2 = 1
  116. end
  117.  
  118.  
  119. if energyinsec3 == 0 then
  120. until3 = 2
  121. end
  122. if energyinsec3 > 0 then
  123. until3 = 3
  124. end
  125. if energyinsec3 < 0 then
  126. energyinsec3 = energyinsec3 - energyinsec3 - energyinsec3
  127. until3 = 1
  128. end
  129.  
  130.  
  131. if energyinsec4 == 0 then
  132. until4 = 2
  133. end
  134. if energyinsec4 > 0 then
  135. until4 = 3
  136. end
  137. if energyinsec4 < 0 then
  138. energyinsec4 = energyinsec4 - energyinsec4 - energyinsec4
  139. until4 = 1
  140. end
  141.  
  142. if energyinsec5 == 0 then
  143. until5 = 2
  144. end
  145. if energyinsec5 > 0 then
  146. until5 = 3
  147. end
  148. if energyinsec5 < 0 then
  149. energyinsec5 = energyinsec5 - energyinsec5 - energyinsec5
  150. until5 = 1
  151. end
  152.  
  153.  
  154.  
  155. if energyinsec6 == 0 then
  156. until6 = 2
  157. end
  158. if energyinsec6 > 0 then
  159. until6 = 3
  160. end
  161. if energyinsec6 < 0 then
  162. energyinsec6 = energyinsec6 - energyinsec6 - energyinsec6
  163. until6 = 1
  164. end
  165.  
  166. if until1 == 3 then
  167.     difference1 = max1etc
  168.     difference1 = difference1 - etc1
  169.     time1 = difference1 / energyinsec1
  170. end
  171.  
  172. if until1 == 1 then
  173.     time1 = etc1 / energyinsec1
  174. end
  175.  
  176. hour1 = 0
  177. minute1 = 0
  178. second1 = time1
  179.  
  180. if  until1 == 2 then
  181. else
  182. while second1 > 59 do
  183.     second1 = second1 - 60
  184.     minute1 = minute1 + 1
  185. end
  186.  
  187. while minute1 > 59 do
  188.     minute1 = minute1 - 60
  189.     hour1 = hour1 + 1
  190. end
  191. end
  192. second1 = math.floor(second1)
  193.  
  194.  
  195.  
  196.  
  197. if until2 == 3 then
  198.     difference2 = max2etc
  199.     difference2 = difference2 - etc2
  200.     time2 = difference2 / energyinsec2
  201. end
  202.  
  203.  
  204.  
  205. if until2 == 1 then
  206.     time2 = etc2 / energyinsec2
  207. end
  208.  
  209. hour2 = 0
  210. minute2 = 0
  211. second2 = time2
  212.  
  213. if  until2 == 2 then
  214. else
  215. while second2 > 59 do
  216.     second2 = second2 - 60
  217.     minute2 = minute2 + 1
  218. end
  219.  
  220. while minute2 > 59 do
  221.     minute2 = minute2 - 60
  222.     hour2 = hour2 + 1
  223. end
  224. end
  225. second2 = math.floor(second2)
  226.  
  227.  
  228.  
  229.  
  230. if until3 == 3 then
  231.     difference3 = max3etc
  232.     difference3 = difference3 - etc3
  233.     time3 = difference3 / energyinsec3
  234. end
  235.  
  236.  
  237. if until3 == 1 then
  238.     time3 = etc3 / energyinsec3
  239. end
  240.  
  241. hour3 = 0
  242. minute3 = 0
  243. second3 = time3
  244.  
  245. if  until3 == 2 then
  246. else
  247. while second3 > 59 do
  248.     second3 = second3 - 60
  249.     minute3 = minute3 + 1
  250. end
  251.  
  252. while minute3 > 59 do
  253.     minute3 = minute3 - 60
  254.     hour3 = hour3 + 1
  255. end
  256. end
  257. second3 = math.floor(second3)
  258.  
  259.  
  260.  
  261.  
  262. if until4 == 3 then
  263.     difference4 = max4etc
  264.     difference4 = difference4 - etc4
  265.     time4 = difference4 / energyinsec4
  266. end
  267.  
  268.  
  269. if until4 == 1 then
  270.     time4 = etc4 / energyinsec4
  271. end
  272.  
  273. hour4 = 0
  274. minute4 = 0
  275. second4 = time4
  276.  
  277. if  until4 == 2 then
  278. else
  279. while second4 > 59 do
  280.     second4 = second4 - 60
  281.     minute4 = minute4 + 1
  282. end
  283.  
  284. while minute4 > 59 do
  285.     minute4 = minute4 - 60
  286.     hour4 = hour4 + 1
  287. end
  288. end
  289. second4 = math.floor(second4)
  290.  
  291.  
  292.  
  293.  
  294. if until5 == 3 then
  295.     difference5 = max5etc
  296.     difference5 = difference5 - etc5
  297.     time5 = difference5 / energyinsec5
  298. end
  299.  
  300.  
  301. if until5 == 1 then
  302.     time5 = etc5 / energyinsec5
  303. end
  304.  
  305. hour5 = 0
  306. minute5 = 0
  307. second5 = time5
  308.  
  309. if  until5 == 2 then
  310. else
  311. while second5 > 59 do
  312.     second5 = second5 - 60
  313.     minute5 = minute5 + 1
  314. end
  315.  
  316. while minute5 > 59 do
  317.     minute5 = minute5 - 60
  318.     hour5 = hour5 + 1
  319. end
  320. end
  321. second5 = math.floor(second5)
  322.  
  323.  
  324.  
  325.  
  326. if until6 == 3 then
  327.     difference6 = max6etc
  328.     difference6 = difference6 - etc6
  329.     time6 = difference6 / energyinsec6
  330. end
  331.  
  332.  
  333. if until6 == 1 then
  334.     time6 = etc6 / energyinsec6
  335. end
  336.  
  337. hour6 = 0
  338. minute6 = 0
  339. second6 = time6
  340.  
  341. if  until6 == 2 then
  342. else
  343. while second6 > 59 do
  344.     second6 = second6 - 60
  345.     minute6 = minute6 + 1
  346. end
  347.  
  348. while minute6 > 59 do
  349.     minute6 = minute6 - 60
  350.     hour6 = hour6 + 1
  351. end
  352. end
  353. second6 = math.floor(second6)
  354.  
  355.  
  356.  
  357. screen.setTextScale(2)
  358. screen.setBackgroundColor(32768)
  359. screen.clear()
  360. screen.setBackgroundColor(1)
  361. screen.setTextColor(1)
  362.  
  363. screen.setCursorPos(1,6)
  364. screen.clearLine()
  365. screen.setCursorPos(1,12)
  366. screen.clearLine()
  367. screen.setCursorPos(1,18)
  368. screen.clearLine()
  369.  
  370. screen.setCursorPos(20,1)
  371. screen.write(" ")
  372. screen.setCursorPos(20,2)
  373. screen.write(" ")
  374. screen.setCursorPos(20,3)
  375. screen.write(" ")
  376. screen.setCursorPos(20,4)
  377. screen.write(" ")
  378. screen.setCursorPos(20,5)
  379. screen.write(" ")
  380. screen.setCursorPos(20,6)
  381. screen.write(" ")
  382. screen.setCursorPos(20,7)
  383. screen.write(" ")
  384. screen.setCursorPos(20,8)
  385. screen.write(" ")
  386. screen.setCursorPos(20,9)
  387. screen.write(" ")
  388. screen.setCursorPos(20,10)
  389. screen.write(" ")
  390. screen.setCursorPos(20,11)
  391. screen.write(" ")
  392. screen.setCursorPos(20,12)
  393. screen.write(" ")
  394. screen.setCursorPos(20,13)
  395. screen.write(" ")
  396. screen.setCursorPos(20,14)
  397. screen.write(" ")
  398. screen.setCursorPos(20,15)
  399. screen.write(" ")
  400. screen.setCursorPos(20,16)
  401. screen.write(" ")
  402. screen.setCursorPos(20,17)
  403. screen.write(" ")
  404. screen.setCursorPos(20,18)
  405. screen.write(" ")
  406.  
  407.  
  408.  
  409. if until5 == 1 then
  410.     screen.setBackgroundColor(16)
  411. end
  412. if until5 == 2 then
  413.     screen.setBackgroundColor(8)
  414. end
  415. if until5 == 3 then
  416.     screen.setBackgroundColor(32)
  417. end
  418. if energy5 == 0 then
  419.     screen.setBackgroundColor(16384)
  420. end
  421. screen.setCursorPos(1,13)
  422. screen.write("                   ")
  423. screen.setCursorPos(1,14)
  424. screen.write("                   ")
  425. screen.setCursorPos(1,15)
  426. screen.write("                   ")
  427. screen.setCursorPos(1,16)
  428. screen.write("                   ")
  429. screen.setCursorPos(1,17)
  430. screen.write("                   ")
  431.  
  432. screen.setCursorPos(1,13)
  433. screen.write("Energy Cell 5")
  434. screen.setCursorPos(1,15)
  435. if max5 > 999999 then
  436.     local max5m = max5 / 1000000
  437.     screen.write("Capacity:"..max5m.."M RF")
  438. else
  439.     screen.write("Capacity:"..max5.." RF")
  440. end
  441.  
  442. screen.setCursorPos(1,16)
  443.  
  444. if energy5 > 999999 then
  445.     local energy5m = energy5 / 1000000
  446.     local energy5m = math.floor(energy5m)
  447.     screen.write("Fill:    "..energy5m.."M RF")
  448. else
  449.     screen.write("Fill:    "..energy5.." RF")
  450. end
  451.  
  452. screen.setCursorPos(1,17)
  453.  
  454. if until5 == 2 then
  455.     screen.write("ETC:     --:--:--")
  456. else
  457.     screen.write("ETC:     "..hour5..":"..minute5..":"..second5)
  458. end
  459.  
  460. screen.setCursorPos(16,13)
  461.  
  462. if fill5 < 10 then
  463.     screen.write("  "..fill5.."%")
  464. else
  465. if fill5 < 100 then
  466.     screen.write(" "..fill5.."%")
  467. else
  468.     screen.write(fill5.."%")
  469. end
  470. end
  471.  
  472. if until3 == 1 then
  473.     screen.setBackgroundColor(16)
  474. end
  475. if until3 == 2 then
  476.     screen.setBackgroundColor(8)
  477. end
  478. if until3 == 3 then
  479.     screen.setBackgroundColor(32)
  480. end
  481. if energy3 == 0 then
  482.     screen.setBackgroundColor(16384)
  483. end
  484. screen.setCursorPos(1,7)
  485. screen.write("                   ")
  486. screen.setCursorPos(1,8)
  487. screen.write("                   ")
  488. screen.setCursorPos(1,9)
  489. screen.write("                   ")
  490. screen.setCursorPos(1,10)
  491. screen.write("                   ")
  492. screen.setCursorPos(1,11)
  493. screen.write("                   ")
  494.  
  495. screen.setCursorPos(1,7)
  496. screen.write("Energy Cell 3")
  497. screen.setCursorPos(1,9)
  498. if max3 > 999999 then
  499.     local max3m = max3 / 1000000
  500.     screen.write("Capacity:"..max3m.."M RF")
  501. else
  502.     screen.write("Capacity:"..max3.." RF")
  503. end
  504.  
  505. screen.setCursorPos(1,10)
  506.  
  507. if energy3 > 999999 then
  508.     local energy3m = energy3 / 1000000
  509.     local energy3m = math.floor(energy3m)
  510.     screen.write("Fill:    "..energy3m.."M RF")
  511. else
  512.     screen.write("Fill:    "..energy3.." RF")
  513. end
  514.  
  515. screen.setCursorPos(1,11)
  516.  
  517. if until3 == 2 then
  518.     screen.write("ETC:     --:--:--")
  519. else
  520.     screen.write("ETC:     "..hour3..":"..minute3..":"..second3)
  521. end
  522.  
  523. screen.setCursorPos(16,7)
  524.  
  525. if fill3 < 10 then
  526.     screen.write("  "..fill3.."%")
  527. else
  528. if fill3 < 100 then
  529.     screen.write(" "..fill3.."%")
  530. else
  531.     screen.write(fill3.."%")
  532. end
  533. end
  534.  
  535. if until1 == 1 then
  536.     screen.setBackgroundColor(16)
  537. end
  538. if until1 == 2 then
  539.     screen.setBackgroundColor(8)
  540. end
  541. if until1 == 3 then
  542.     screen.setBackgroundColor(32)
  543. end
  544. if energy1 == 0 then
  545.     screen.setBackgroundColor(16384)
  546. end
  547. screen.setCursorPos(1,1)
  548. screen.write("                   ")
  549. screen.setCursorPos(1,2)
  550. screen.write("                   ")
  551. screen.setCursorPos(1,3)
  552. screen.write("                   ")
  553. screen.setCursorPos(1,4)
  554. screen.write("                   ")
  555. screen.setCursorPos(1,5)
  556. screen.write("                   ")
  557.  
  558. screen.setCursorPos(1,1)
  559. screen.write("Energy Cell 1")
  560. screen.setCursorPos(1,3)
  561. if max1 > 999999 then
  562.     local max1m = max1 / 1000000
  563.     screen.write("Capacity:"..max1m.."M RF")
  564. else
  565.     screen.write("Capacity:"..max1.." RF")
  566. end
  567.  
  568. screen.setCursorPos(1,4)
  569.  
  570. if energy1 > 999999 then
  571.     local energy1m = energy1 / 1000000
  572.     local energy1m = math.floor(energy1m)
  573.     screen.write("Fill:    "..energy1m.."M RF")
  574. else
  575.     screen.write("Fill:    "..energy1.." RF")
  576. end
  577.  
  578. screen.setCursorPos(1,5)
  579.  
  580. if until1 == 2 then
  581.     screen.write("ETC:     --:--:--")
  582. else
  583.     screen.write("ETC:     "..hour1..":"..minute1..":"..second1)
  584. end
  585.  
  586. screen.setCursorPos(16,1)
  587.  
  588. if fill1 < 10 then
  589.     screen.write("  "..fill1.."%")
  590. else
  591. if fill1 < 100 then
  592.     screen.write(" "..fill1.."%")
  593. else
  594.     screen.write(fill1.."%")
  595. end
  596. end
  597.  
  598.  
  599. if until6 == 1 then
  600.     screen.setBackgroundColor(16)
  601. end
  602. if until6 == 2 then
  603.     screen.setBackgroundColor(8)
  604. end
  605. if until6 == 3 then
  606.     screen.setBackgroundColor(32)
  607. end
  608. if energy6 == 0 then
  609.     screen.setBackgroundColor(16384)
  610. end
  611. screen.setCursorPos(21,13)
  612. screen.write("                   ")
  613. screen.setCursorPos(21,14)
  614. screen.write("                   ")
  615. screen.setCursorPos(21,15)
  616. screen.write("                   ")
  617. screen.setCursorPos(21,16)
  618. screen.write("                   ")
  619. screen.setCursorPos(21,17)
  620. screen.write("                   ")
  621.  
  622. screen.setCursorPos(21,13)
  623. screen.write("Energy Cell 6")
  624. screen.setCursorPos(21,15)
  625. if max6 > 999999 then
  626.     local max6m = max6 / 1000000
  627.     screen.write("Capacity:"..max6m.."M RF")
  628. else
  629.     screen.write("Capacity:"..max6.." RF")
  630. end
  631.  
  632. screen.setCursorPos(21,16)
  633.  
  634. if energy6 > 999999 then
  635.     local energy6m = energy6 / 1000000
  636.     local energy6m = math.floor(energy6m)
  637.     screen.write("Fill:    "..energy6m.."M RF")
  638. else
  639.     screen.write("Fill:    "..energy6.." RF")
  640. end
  641.  
  642. screen.setCursorPos(21,17)
  643.  
  644. if until6 == 2 then
  645.     screen.write("ETC:     --:--:--")
  646. else
  647.     screen.write("ETC:     "..hour6..":"..minute6..":"..second6)
  648. end
  649.  
  650. screen.setCursorPos(36,13)
  651.  
  652. if fill6 < 10 then
  653.     screen.write("  "..fill6.."%")
  654. else
  655. if fill6 < 100 then
  656.     screen.write(" "..fill6.."%")
  657. else
  658.     screen.write(fill6.."%")
  659. end
  660. end
  661.  
  662. if until4 == 1 then
  663.     screen.setBackgroundColor(16)
  664. end
  665. if until4 == 2 then
  666.     screen.setBackgroundColor(8)
  667. end
  668. if until4 == 3 then
  669.     screen.setBackgroundColor(32)
  670. end
  671. if energy4 == 0 then
  672.     screen.setBackgroundColor(16384)
  673. end
  674. screen.setCursorPos(21,7)
  675. screen.write("                   ")
  676. screen.setCursorPos(21,8)
  677. screen.write("                   ")
  678. screen.setCursorPos(21,9)
  679. screen.write("                   ")
  680. screen.setCursorPos(21,10)
  681. screen.write("                   ")
  682. screen.setCursorPos(21,11)
  683. screen.write("                   ")
  684.  
  685. screen.setCursorPos(21,7)
  686. screen.write("Energy Cell 4")
  687. screen.setCursorPos(21,9)
  688. if max4 > 999999 then
  689.     local max4m = max4 / 1000000
  690.     screen.write("Capacity:"..max4m.."M RF")
  691. else
  692.     screen.write("Capacity:"..max4.." RF")
  693. end
  694.  
  695. screen.setCursorPos(21,10)
  696.  
  697. if energy4 > 999999 then
  698.     local energy4m = energy4 / 1000000
  699.     local energy4m = math.floor(energy4m)
  700.     screen.write("Fill:    "..energy4m.."M RF")
  701. else
  702.     screen.write("Fill:    "..energy4.." RF")
  703. end
  704.  
  705. screen.setCursorPos(21,11)
  706.  
  707. if until4 == 2 then
  708.     screen.write("ETC:     --:--:--")
  709. else
  710.     screen.write("ETC:     "..hour4..":"..minute4..":"..second4)
  711. end
  712.  
  713. screen.setCursorPos(36,7)
  714.  
  715. if fill4 < 10 then
  716.     screen.write("  "..fill4.."%")
  717. else
  718. if fill4 < 100 then
  719.     screen.write(" "..fill4.."%")
  720. else
  721.     screen.write(fill4.."%")
  722. end
  723. end
  724.  
  725. if until2 == 1 then
  726.     screen.setBackgroundColor(16)
  727. end
  728. if until2 == 2 then
  729.     screen.setBackgroundColor(8)
  730. end
  731. if until2 == 3 then
  732.     screen.setBackgroundColor(32)
  733. end
  734. if energy2 == 0 then
  735.     screen.setBackgroundColor(16384)
  736. end
  737. screen.setCursorPos(21,1)
  738. screen.write("                   ")
  739. screen.setCursorPos(21,2)
  740. screen.write("                   ")
  741. screen.setCursorPos(21,3)
  742. screen.write("                   ")
  743. screen.setCursorPos(21,4)
  744. screen.write("                   ")
  745. screen.setCursorPos(21,5)
  746. screen.write("                   ")
  747.  
  748. screen.setCursorPos(21,1)
  749. screen.write("Energy Cell 2")
  750. screen.setCursorPos(21,3)
  751. if max2 > 999999 then
  752.     local max2m = max2 / 1000000
  753.     screen.write("Capacity:"..max2m.."M RF")
  754. else
  755.     screen.write("Capacity:"..max2.." RF")
  756. end
  757.  
  758. screen.setCursorPos(21,4)
  759.  
  760. if energy2 > 999999 then
  761.     local energy2m = energy2 / 1000000
  762.     local energy2m = math.floor(energy2m)
  763.     screen.write("Fill:    "..energy2m.."M RF")
  764. else
  765.     screen.write("Fill:    "..energy2.." RF")
  766. end
  767.  
  768. screen.setCursorPos(21,5)
  769.  
  770. if until2 == 2 then
  771.     screen.write("ETC:     --:--:--")
  772. else
  773.     screen.write("ETC:     "..hour2..":"..minute2..":"..second2)
  774. end
  775.  
  776. screen.setCursorPos(36,1)
  777.  
  778. if fill2 < 10 then
  779.     screen.write("  "..fill2.."%")
  780. else
  781. if fill2 < 100 then
  782.     screen.write(" "..fill2.."%")
  783. else
  784.     screen.write(fill2.."%")
  785. end
  786. end
  787. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement