DiNuzz__

desktop.lua

Aug 15th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.47 KB | None | 0 0
  1. --[[
  2. System 1.0
  3. Programmed by DiNuzz__
  4. Version 1.0:1
  5. 15/8/2016
  6. --]]
  7.  
  8. --[[
  9. Screen Example
  10. 1-19 = Text rows
  11. 20 = Text Color
  12. 21 = Background Color
  13.  
  14. *****************
  15.  
  16. Bar Example
  17. 1 = Bar Text
  18. 2 = Text Color
  19. 3 = BackGround color
  20.  
  21. *****************
  22.  
  23. Icon Example
  24. 1 = Icon Description
  25. 2 = Icon
  26. 3 = Icon Text Color
  27. 4 = Icon Background Color
  28. 5 = Icon Description Text Color
  29. 6 = Icon Description Background Color
  30. --]]
  31.  
  32. --Default colors
  33.  
  34. --Future function :P
  35.  
  36. --Screens
  37.  
  38. screenclear = {
  39.     "                                                  ",
  40.     "                                                  ",
  41.     "                                                  ",
  42.     "                                                  ",
  43.     "                                                  ",
  44.     "                                                  ",
  45.     "                                                  ",
  46.     "                                                  ",
  47.     "                                                  ",
  48.     "                                                  ",
  49.     "                                                  ",
  50.     "                                                  ",
  51.     "                                                  ",
  52.     "                                                  ",
  53.     "                                                  ",
  54.     "                                                  ",
  55.     "                                                  ",
  56.     "                                                  ",
  57.     "                                                  ",
  58.     "black",
  59.     "gray"
  60. }
  61.  
  62. --Bars
  63.  
  64. desktopbar = {
  65.     "                                                  ",
  66.     "black",
  67.     "white"
  68. }
  69.  
  70. --Icons
  71.  
  72. icon1 = {
  73.     "",
  74.     "",
  75.     "[==*==]",
  76.     "  HDD  ",
  77.     "black",
  78.     "lightGray",
  79.     "black",
  80.     "white"
  81. }
  82.  
  83. --Functions
  84.  
  85. function setscreenxx(name)
  86. termprinted=name
  87. term.setCursorPos(1, 1)
  88. term.setBackgroundColor(name[21])
  89. term.setTextColor(name[20])
  90. print(name[1])
  91. print(name[2])
  92. print(name[3])
  93. print(name[4])
  94. print(name[5])
  95. print(name[6])
  96. print(name[7])
  97. print(name[8])
  98. print(name[9])
  99. print(name[10])
  100. print(name[11])
  101. print(name[12])
  102. print(name[13])
  103. print(name[14])
  104. print(name[15])
  105. print(name[16])
  106. print(name[17])
  107. print(name[18])
  108. print(name[19])
  109. end
  110.  
  111. function setscreenbar(name)
  112. termprintedbar=name
  113. term.setCursorPos(1, 1)
  114. term.setBackgroundColor(name[3])
  115. term.setTextColor(name[2])
  116. print(name[1])
  117. end
  118.  
  119. function desktopbarset()
  120.     setscreenbar(desktopbar)
  121. end
  122.  
  123. desktopbarset()
Add Comment
Please, Sign In to add comment