MagmaLP

Fontania-Regel_Tafeln Mainboard (startup)

Sep 18th, 2020 (edited)
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.18 KB | None | 0 0
  1. local monitor = peripheral.wrap("back")
  2. local main_text_scale = 1
  3. local main_back_color = colors.black
  4. local main_text_color = colors.lightGray
  5. local w, h = monitor.getSize()
  6. monitor.clear()
  7. local button = {}
  8. local language = 1
  9. local page = 1
  10. local languages_amount = 2
  11. local pages_amount = 8
  12.  
  13. function setupScreen()
  14.     monitor.setTextScale(main_text_scale)
  15.     monitor.setBackgroundColor(main_back_color)
  16.     monitor.setTextColor(main_text_color)
  17. end
  18.  
  19. --button-api start
  20.  
  21. function convertColor(color)
  22.     if color == "white" then
  23.         return 1
  24.     end
  25.     if color == "lightgray" then
  26.         return 256
  27.     end
  28.     if color == "gray" then
  29.         return 128
  30.     end
  31.     if color == "black" then
  32.         return 32768
  33.     end
  34.     if color == "brown" then
  35.         return 4096
  36.     end
  37.     if color == "red" then
  38.         return 16384
  39.     end
  40.     if color == "orange" then
  41.         return 2
  42.     end
  43.     if color == "yellow" then
  44.         return 16
  45.     end
  46.     if color == "lime" then
  47.         return 32
  48.     end
  49.     if color == "green" then
  50.         return 8192
  51.     end
  52.     if color == "blue" then
  53.         return 2048
  54.     end
  55.     if color == "cyan" then
  56.         return 512
  57.     end
  58.     if color == "lightblue" then
  59.         return 8
  60.     end
  61.     if color == "purple" then
  62.         return 1024
  63.     end
  64.     if color == "magenta" then
  65.         return 4
  66.     end
  67.     if color == "pink" then
  68.         return 64
  69.     end
  70. end
  71.  
  72. function setButton(name, caption, func, xpos, ypos, width, height, backColor, textColor)
  73.     button[name] = {}
  74.     button[name]["func"] = func
  75.     button[name]["caption"] = caption
  76.     button[name]["x"] = xpos
  77.     button[name]["y"] = ypos
  78.     button[name]["width"] = width
  79.     button[name]["height"] = height
  80.     button[name]["backColor"] = backColor
  81.     button[name]["textColor"] = textColor
  82.     button[name]["visible"] = false
  83. end
  84.  
  85. function drawButton(title)
  86.     for name, data in pairs(button) do
  87.         if name == title then
  88.             data["visible"] = true
  89.             monitor.setBackgroundColor(convertColor(data["backColor"]))
  90.             monitor.setTextColor(convertColor(data["textColor"]))
  91.             local xspot = data["x"] + math.floor((data["width"] - string.len(data["caption"])) / 2 ) + 1
  92.             local yspot = data["y"] + math.floor(data["height"] / 2) + 1
  93.             for i = 1, data["height"] do
  94.                 for j = 1, data["width"] do
  95.                     monitor.setCursorPos(data["x"] + j, data["y"] + i)
  96.                     monitor.write(" ")
  97.                 end
  98.             end
  99.             monitor.setCursorPos(xspot, yspot)
  100.             monitor.write(data["caption"])
  101.         end
  102.     end
  103. end
  104.  
  105. function buttonHit(x, y)
  106.     for name, data in pairs(button) do
  107.         if data["visible"] == true then
  108.             if math.floor(y) >= data["y"] + 1 and  y <= data["y"] + data["height"] then
  109.                 if math.floor(x) >= data["x"] + 1 and x <= data["x"] + data["width"] then
  110.                     data["func"]()
  111.                     screen()
  112.                     return true
  113.                 end
  114.             end
  115.         end
  116.     end
  117. end
  118.  
  119.  
  120. --button-api ende
  121.  
  122.  
  123. --alle button-fkt start
  124.  
  125. function assignButtons()
  126.     local caption = language_button_caption[language]
  127.     setButton("Language", caption, nextLanguage, 0, (h-3), 12, 3, "white", "black")
  128.     setButton("PageUp", "-->", pageUp, (w-7), (h-3), 7, 3, "white", "black")
  129.     setButton("PageDown", "<--", pageDown, (w-15), (h-3), 7, 3, "white", "black")
  130. end
  131.  
  132. function nextLanguage()
  133.     language = language + 1
  134.     if language == (languages_amount + 1) then
  135.         language = 1
  136.     end
  137. end
  138.  
  139. function pageUp()
  140.     page = page + 1
  141.     if page == (pages_amount + 1) then
  142.         page = 1
  143.     end
  144. end
  145.  
  146. function pageDown()
  147.     page = page - 1
  148.     if page == 0 then
  149.         page = pages_amount
  150.     end
  151. end
  152.  
  153. function zeilenAnzahl()
  154.     local b = 1
  155.     while text[language][page][b] ~= nil do
  156.         b = b + 1
  157.     end
  158.     return b-1
  159. end
  160.  
  161. --alle Button-Fkt ende
  162.  
  163.  
  164. --alle Screen-Fkt start
  165.  
  166. function drawButtons()
  167.     assignButtons()
  168.     drawButton("Language")
  169.     drawButton("PageUp")
  170.     drawButton("PageDown")
  171. end
  172.  
  173. function drawHeading()
  174.     local heading = heading_string[language][page]
  175.     local string_length = string.len(heading)
  176.     setupScreen()
  177.     monitor.setTextColor(colors.white)
  178.     monitor.setCursorPos((w - string_length) / 2 + 1, 2)
  179.     monitor.write(heading)
  180. end
  181.  
  182. function drawLines()
  183.     setupScreen()
  184.     for c = 1, zeilenAnzahl() do       
  185.         monitor.setCursorPos(3 , c + 3)
  186.         monitor.write(text[language][page][c])
  187.     end
  188. end
  189.  
  190. function drawHighlights()
  191.     for name, data in pairs(highlight) do
  192.         if data["lang"] == language then
  193.             if data["page"] == page then
  194.                 monitor.setBackgroundColor(convertColor(data["backColor"]))
  195.                 monitor.setTextColor(convertColor(data["textColor"]))
  196.                 local xspot = data["x"]
  197.                 local yspot = data["y"]
  198.                
  199.                 monitor.setCursorPos(xspot, yspot)
  200.                 monitor.write(data["text"])
  201.             end
  202.         end
  203.     end
  204. end
  205.  
  206. function drawPageNumber()
  207.     setupScreen()
  208.     monitor.setCursorPos(w-2,1)
  209.     monitor.write(string.gsub(page, ".0", ""))
  210.     monitor.write("/")
  211.     monitor.write(string.gsub(pages_amount, ".0", ""))
  212. end
  213.  
  214. function screen()
  215.     setupScreen()
  216.     monitor.clear()
  217.    
  218.     drawButtons()
  219.    
  220.     drawHeading()
  221.    
  222.     drawLines()
  223.    
  224.     drawHighlights()
  225.    
  226.     drawPageNumber()
  227. end
  228.  
  229. --alle Screen-Fkt ende
  230.  
  231. function main()
  232.     local event, button, x, y = os.pullEvent( "monitor_touch" )
  233.     --if event == "mouse_click" then
  234.         buttonHit(x, y)
  235.     --end
  236. end
  237.  
  238. function textZuweisen()
  239.     --Change Language - Button
  240.         language_button_caption = {}
  241.         language_button_caption[1] = "English"
  242.         language_button_caption[2] = "Deutsch"
  243.    
  244.     --Headings
  245.         heading_string = {}
  246.         for a = 1, languages_amount do
  247.             heading_string[a] = {}
  248.         end
  249.             --Deutsch
  250.             heading_string[1][1] = "Herzlichen GlåBCckwunsch"      --heading_string[language][page]
  251.             heading_string[1][2] = " "
  252.             heading_string[1][3] = "Stadtteam"
  253.             heading_string[1][4] = "GrundsåA4tzliches"
  254.             heading_string[1][5] = "Steuern (Teil 1)"
  255.             heading_string[1][6] = "Steuern (Teil 2)"
  256.             heading_string[1][7] = "InaktivitåA4t (Teil 1)"
  257.             heading_string[1][8] = "InaktivitåA4t (Teil 2)"
  258.            
  259.             --English
  260.             heading_string[2][1] = "Congratulations!"       --heading_string[language][page]
  261.             heading_string[2][2] = " "
  262.             heading_string[2][3] = "City-Staff"
  263.             heading_string[2][4] = "General information"
  264.             heading_string[2][5] = "Taxes (Part 1)"
  265.             heading_string[2][6] = "Taxes (Part 2)"
  266.             heading_string[2][7] = "Inactivity (Part 1)"
  267.             heading_string[2][8] = "Inactivity (Part 2)"
  268.            
  269.    
  270.     --Lines
  271.         text = {}
  272.         for d = 1, languages_amount do
  273.         text[d] = {}
  274.             for e = 1, pages_amount do
  275.                 text[d][e] = {}
  276.             end
  277.         end
  278.             --Deutsch
  279.             text[1][1][1] = "Du hast in den Regelraum von Fontania gefunden, was"       --text[language][page][line]
  280.             text[1][1][2] = "hoffentlich bedeutet dass Du nicht einfach nur hier bist"
  281.             text[1][1][3] = "weil es Dir ans Herz gelegt wurde, sondern Du daran"
  282.             text[1][1][4] = "interessiert bist mehr als nur drei RubberbåA4ume zu"
  283.             text[1][1][5] = "pflanzen und danach zu tåBCrmen (wie es die meisten tun)."
  284.             text[1][1][6] = " "
  285.             text[1][1][7] = "Hier findest Du alles was Du wissen musst um nicht"
  286.             text[1][1][8] = "unwissend zu bleiben - alle Fragen zur Stadt, deren"
  287.             text[1][1][9] = "Regeln, dem GrundståBCcks-Kauf bzw. -Verkauf und dem "
  288.             text[1][1][10] = "Stadtteam wird Dir dieser Raum beantworten kåB6nnen..."
  289.             text[1][1][11] = "Hoffentlich"
  290.  
  291.             text[1][2][1] = "Sollten dennoch Unklarheiten aufkommen - stelle einfach"
  292.             text[1][2][2] = "Deine Frage ans Stadtteam, jemand wird Dir bestimmt"
  293.             text[1][2][3] = "weiterhelfen kåB6nnen."
  294.             text[1][2][4] = " "
  295.             text[1][2][5] = "Auf den nåA4chsten Seiten dieses Monitors findest du"
  296.             text[1][2][6] = "allgemeine Informationen zur Stadt, wåA4hrend die anderen"
  297.             text[1][2][7] = "Monitore nach Thema farblich unterteilt sind:"
  298.            
  299.             text[1][3][1] = "Mayor:"
  300.             text[1][3][2] = " "
  301.             text[1][3][3] = " "
  302.             text[1][3][4] = "Co-Mayor:"
  303.             text[1][3][5] = " "
  304.             text[1][3][6] = " "
  305.             text[1][3][7] = " "
  306.             text[1][3][8] = " "
  307.             text[1][3][9] = "Helper:"
  308.            
  309.             text[1][4][1] = "Bei jeder Regel kåB6nnen Ausnahmen gemacht werden, sprecht"
  310.             text[1][4][2] = "Euch aber dafåBCr bitte vorher mit dem Stadtteam ab!"
  311.             text[1][4][3] = " "
  312.             text[1][4][4] = "Bei Verstoss gegen Stadtregeln sind måB6gliche Konsequenzen"
  313.             text[1][4][5] = "Entzug von Sonderrechten, Entzug des Stadtstroms oder"
  314.             text[1][4][6] = "ein Kick aus der Stadt. Meist weisen wir Bewohner aber"
  315.             text[1][4][7] = "vorher auf einen Verstoss hin."
  316.             text[1][4][8] = " "
  317.             text[1][4][9] = "Die Serverregeln gelten hier logischerweise immer noch!"
  318.             text[1][4][10] = " "
  319.             text[1][4][11] = "Stadtbezogene Diskussionen bitte im TownChat -> /tc"
  320.            
  321.             text[1][5][1] = "Jeder Stadtbewohner, auch diejenigen ohne eigenes GS,"
  322.             text[1][5][2] = "zahlt tåA4glich um circa 12:00 Uhr CET die Stadtsteuer."
  323.             text[1][5][3] = " "
  324.             text[1][5][4] = "Die HåB6he der Stadtsteuer ist abhåA4ngig von Eurem "
  325.             text[1][5][5] = "aktuellen Kontostand, und zwar immer 1% des selbigen."
  326.             text[1][5][6] = " "
  327.             text[1][5][7] = "Ab einem Kontostand von 20.000$ habt ihr die MåB6glichkeit"
  328.             text[1][5][8] = "VIP zu werden - als VIP zahlt ihr keine Steuern mehr und"
  329.             text[1][5][9] = "werdet bei /t als VIP angezeigt."
  330.             text[1][5][10] = " "
  331.             text[1][5][11] = "Mit /t deposit [betrag] kann man manuell Geld spenden"
  332.            
  333.             text[1][6][1] = "Wenn jemand nicht in der Lage ist eine Steuer >0$ zu"
  334.             text[1][6][2] = "zahlen wird er automatisch vom Towny-Plugin aus der"
  335.             text[1][6][3] = "Stadt gekickt, was im GrundståBCcksverlust endet."
  336.             text[1][6][4] = " "
  337.             text[1][6][5] = "Achtung:"
  338.             text[1][6][6] = "-> Das Towny-Plugin kennt keine Einheit kleiner als "
  339.             text[1][6][7] = "   0.01$, was bedeutet dass ihr NICHT die Steuer"
  340.             text[1][6][8] = "   zahlen kåB6nnt wenn ihr zwischen 0 und 1$ habt."
  341.             text[1][6][9] = " "
  342.             text[1][6][10] = "-> Die Steuer wird auch eingezogen wenn man nicht"
  343.             text[1][6][11] = "   online ist."
  344.            
  345.             text[1][7][1] = "Solltest Du unangekåBCndigt fåBCr mehr als 4 Wochen inaktiv"
  346.             text[1][7][2] = "sein (im Zweifelsfall zåA4hlt die Angabe bei /seen) geht"
  347.             text[1][7][3] = "Dein GrundståBCck an die Stadt zuråBCck, und Du erhåA4lst"
  348.             text[1][7][4] = "weder Items noch Geld zuråBCck."
  349.             text[1][7][5] = " "
  350.             text[1][7][6] = "Ausnahmen werden fåBCr Bewohner gemacht welche schon fåBCr"
  351.             text[1][7][7] = "låA4ngere Zeit in der Stadt aktiv waren - deren Maschinen"
  352.             text[1][7][8] = "und ME Storages werden abgebaut und im Stadtlager"
  353.             text[1][7][9] = "eingelagert; nur der Rohbau des Hauses bleibt stehen."
  354.            
  355.             text[1][8][1] = "Solltest Du vorher wissen dass Du fåBCr mehr als 14 Tage"
  356.             text[1][8][2] = "nicht online kommen kannst (Urlaub, Schule/Beruf, "
  357.             text[1][8][3] = "Technische Probleme, Unfall etc.) gib bitte jemanden aus"
  358.             text[1][8][4] = "dem Stadtteam persåB6nlich Bescheid (Eine Mail reicht NICHT"
  359.             text[1][8][5] = "aus!). Gebt bitte an wann ihr wiederkommt und eine kurze"
  360.             text[1][8][6] = "BegråBCndung. Unrealistische Angaben ('Ich komme in zwei "
  361.             text[1][8][7] = "Jahren wieder') werden abgelehnt."
  362.             text[1][8][8] = " "
  363.             text[1][8][9] = "Achtung: Wir achten NICHT auf Warns, bei låA4ngeren Temp-"
  364.             text[1][8][10] = "Bans schreibt dies ins Forum (Da 21 Tage > 14 Tage)."
  365.            
  366.            
  367.             --English
  368.             text[2][1][1] = "You found your way inside here - the rules of Fontania."       --text[language][page][line]
  369.             text[2][1][2] = "This hopefully implies that you aren't just here because"
  370.             text[2][1][3] = "somebody told you, but because you want to play active"
  371.             text[2][1][4] = "and not break the rules, or just plant 3 rubber trees"
  372.             text[2][1][5] = "and then disappear for ever, like all the others..."
  373.             text[2][1][6] = " "
  374.             text[2][1][7] = "Here you can find all the information you need to know:"
  375.             text[2][1][8] = "from general concerns about the city, its rules, buying"
  376.             text[2][1][9] = "and selling plots, as well es the city staff. This room"
  377.             text[2][1][10] = "will - hopefully - be able to answer all of your"
  378.             text[2][1][11] = "questions."
  379.  
  380.             text[2][2][1] = "Should there still be questions remaining after this short"
  381.             text[2][2][2] = "tour, don't fear asking the city staff for help. We're"
  382.             text[2][2][3] = "(mostly) able to give advice in any circumstances."
  383.             text[2][2][4] = " "
  384.             text[2][2][5] = "On the next pages of this screen you will find overall"
  385.             text[2][2][6] = "information of the city, while the other screens are"
  386.             text[2][2][7] = "color-coded by their topic:"
  387.            
  388.             text[2][3][1] = "Mayor:"
  389.             text[2][3][2] = " "
  390.             text[2][3][3] = " "
  391.             text[2][3][4] = "Co-Mayor:"
  392.             text[2][3][5] = " "
  393.             text[2][3][6] = " "
  394.             text[2][3][7] = " "
  395.             text[2][3][8] = " "
  396.             text[2][3][9] = "Helper:"
  397.            
  398.             text[2][4][1] = "Exceptions to the rules are always possible, but please"
  399.             text[2][4][2] = "discuss these with a staff member first!"
  400.             text[2][4][3] = " "
  401.             text[2][4][4] = "When breaking rules possible actions are: loss of special"
  402.             text[2][4][5] = "permissions, no more power provided by the city, or in"
  403.             text[2][4][6] = "particularly hard cases a kick out of the city. However we"
  404.             text[2][4][7] = "are usually giving hints before taking action."
  405.             text[2][4][8] = " "
  406.             text[2][4][9] = "The server rules are obviously still applying here!"
  407.             text[2][4][10] = " "
  408.             text[2][4][11] = "Everything city-related should be discussed here -> /tc"
  409.            
  410.             text[2][5][1] = "Every resident of the city, plot-owner or not, has to pay"
  411.             text[2][5][2] = "taxes at 12:00 CET. This happens automatically."
  412.             text[2][5][3] = " "
  413.             text[2][5][4] = "The amount of paid tax depends on your current balance,"
  414.             text[2][5][5] = "always 1% of that will get collected."
  415.             text[2][5][6] = " "
  416.             text[2][5][7] = "WHen owning more that 20.000$ you can become VIP of the"
  417.             text[2][5][8] = "city, which relieves you of paying taxes and displays you"
  418.             text[2][5][9] = "as VIP at /t"
  419.             text[2][5][10] = " "
  420.             text[2][5][11] = "You can donate money at any time with /t deposit [amount]"
  421.            
  422.             text[2][6][1] = "If the amount of tax you pay isn't above 0.01$ you will"
  423.             text[2][6][2] = "get kicked from the city automatically, which results"
  424.             text[2][6][3] = "in loss of your plot."
  425.             text[2][6][4] = " "
  426.             text[2][6][5] = "Special advice:"
  427.             text[2][6][6] = "-> Because the Towny-Plugin does not acknowledge money"
  428.             text[2][6][7] = "   less than units of 0.01$ you will always need more than"
  429.             text[2][6][8] = "   1$ to be able to pay your tax!"
  430.             text[2][6][9] = " "
  431.             text[2][6][10] = "-> The taxes get collected even if you are not online!"
  432.            
  433.             text[2][7][1] = "If you are not online for more than 4 Weeks"
  434.             text[2][7][2] = "(/seen is our measurement) you will get kicked from the"
  435.             text[2][7][3] = "city and your plot gets cleared, without you getting items"
  436.             text[2][7][4] = "or money back."
  437.             text[2][7][5] = " "
  438.             text[2][7][6] = "If you have been active in the city for a reasonable time"
  439.             text[2][7][7] = "your stuff won't get cleared, but instead taken into the"
  440.             text[2][7][8] = "city storage, waiting for the user to come back. All"
  441.             text[2][7][9] = "devices will be deactivated, but the blocks will remain."
  442.            
  443.             text[2][8][1] = "If you know in advance that you will be offline for more"
  444.             text[2][8][2] = "than 4 Weeks (vacation, school/job, technical issues,"
  445.             text[2][8][3] = "recovery from health issues) please write to a staff member"
  446.             text[2][8][4] = "of the city when he is online. (/mail does NOT count!)"
  447.             text[2][8][5] = "Please provide the period when you are inactive as well as"
  448.             text[2][8][6] = "a short reason why. Unrealistic statements ('I'll be back"
  449.             text[2][8][7] = "in 2 years') will get denied."
  450.             text[2][8][8] = " "
  451.             text[2][8][9] = "Attention: We don't keep track of the ban-management; if"
  452.             text[2][8][10] = "you get temp-banned for 21 days this exceeds the 14 days."
  453.            
  454.            
  455.    
  456.     --Highlights
  457.         highlight = {}
  458.         --setHighlight(id, sprache, seite, "Text", xpos, ypos, "backcolor", "textcolor")
  459.        
  460.         --Deutsch
  461.         setHighlight(1, 1, 2, "  Allgemeine Regeln     ", 4, 12, "red", "black")
  462.         setHighlight(2, 1, 2, "  GrundståBCcke           ", 4, 14, "yellow", "black")
  463.         setHighlight(3, 1, 2, "  Leistungen der Stadt  ", 34, 12, "green", "black")
  464.         setHighlight(4, 1, 2, "  Befehle               ", 34, 14, "lightblue", "black")
  465.        
  466.         setHighlight(5, 1, 3, "[         ]", 15, 4, "black", "gray")
  467.         setHighlight(6, 1, 3, "Supporter", 16, 4, "black", "lime")
  468.         setHighlight(7, 1, 3, "MagmaLP", 27, 4, "black", "yellow")
  469.        
  470.         setHighlight(8, 1, 3, "[         ]", 15, 7, "black", "gray")
  471.         setHighlight(9, 1, 3, "Developer", 16, 7, "black", "blue")
  472.         setHighlight(10, 1, 3, "_N1KL4S_", 27, 7, "black", "lightgray")
  473.        
  474.         setHighlight(11, 1, 3, "[      ]", 15, 9, "black", "gray")
  475.         setHighlight(12, 1, 3, "Stammi", 16, 9, "black", "cyan")
  476.         setHighlight(13, 1, 3, "Kikkeksler", 24, 9, "black", "lightgray")
  477.        
  478.         setHighlight(14, 1, 3, "[         ]", 37, 7, "black", "gray")
  479.         setHighlight(15, 1, 3, "Supporter", 38, 7, "black", "lime")
  480.         setHighlight(16, 1, 3, "Justin8303", 49, 7, "black", "yellow")
  481.        
  482.         setHighlight(17, 1, 3, "[      ]", 37, 9, "black", "gray")
  483.         setHighlight(18, 1, 3, "Stammi", 38, 9, "black", "cyan")
  484.         setHighlight(19, 1, 3, "Rene200", 46, 9, "black", "lightgray")
  485.        
  486. --      setHighlight(20, 1, 3, "[      ]", 15, 14, "black", "gray")
  487. --      setHighlight(21, 1, 3, "Stammi", 16, 14, "black", "cyan")
  488. --      setHighlight(22, 1, 3, "4Real_", 24, 14, "black", "lightgray")
  489.        
  490.         setHighlight(23, 1, 3, "[    ]", 15, 12, "black", "gray")
  491.         setHighlight(24, 1, 3, "Gold", 16, 12, "black", "yellow")
  492.         setHighlight(25, 1, 3, "Gnomers", 22, 12, "black", "blue")
  493.        
  494.         setHighlight(26, 1, 3, "[      ]", 37, 12, "black", "gray")
  495.         setHighlight(27, 1, 3, "Stammi", 38, 12, "black", "cyan")
  496.         setHighlight(28, 1, 3, "Qivex", 46, 12, "black", "lightgray")
  497.        
  498. --      setHighlight(29, 1, 3, "[      ]", 37, 14, "black", "gray")
  499. --      setHighlight(30, 1, 3, "Stammi", 38, 14, "black", "cyan")
  500. --      setHighlight(31, 1, 3, "TT_Finn12", 46, 14, "black", "lightgray")
  501.        
  502.        
  503.        
  504.        
  505.        
  506.         --English
  507.         setHighlight(32, 2, 2, "  Rules                 ", 4, 12, "red", "black")
  508.         setHighlight(33, 2, 2, "  Plots                 ", 4, 14, "yellow", "black")
  509.         setHighlight(34, 2, 2, "  Advantages            ", 34, 12, "green", "black")
  510.         setHighlight(35, 2, 2, "  Commands              ", 34, 14, "lightblue", "black")
  511.        
  512.         setHighlight(36, 2, 3, "[         ]", 15, 4, "black", "gray")
  513.         setHighlight(37, 2, 3, "Supporter", 16, 4, "black", "lime")
  514.         setHighlight(38, 2, 3, "MagmaLP", 27, 4, "black", "yellow")
  515.        
  516.         setHighlight(39, 2, 3, "[         ]", 15, 7, "black", "gray")
  517.         setHighlight(40, 2, 3, "Developer", 16, 7, "black", "blue")
  518.         setHighlight(41, 2, 3, "_N1KL4S_", 27, 7, "black", "lightgray")
  519.        
  520.         setHighlight(42, 2, 3, "[      ]", 15, 9, "black", "gray")
  521.         setHighlight(43, 2, 3, "Stammi", 16, 9, "black", "cyan")
  522.         setHighlight(44, 2, 3, "Kikkeksler", 24, 9, "black", "lightgray")
  523.        
  524.         setHighlight(45, 2, 3, "[         ]", 37, 7, "black", "gray")
  525.         setHighlight(46, 2, 3, "Supporter", 38, 7, "black", "lime")
  526.         setHighlight(47, 2, 3, "Justin8303", 49, 7, "black", "yellow")
  527.  
  528.         setHighlight(48, 2, 3, "[      ]", 37, 9, "black", "gray")
  529.         setHighlight(49, 2, 3, "Stammi", 38, 9, "black", "cyan")
  530.         setHighlight(50, 2, 3, "Rene200", 46, 9, "black", "lightgray")
  531.        
  532. --      setHighlight(51, 2, 3, "[      ]", 15, 14, "black", "gray")
  533. --      setHighlight(52, 2, 3, "Stammi", 16, 14, "black", "cyan")
  534. --      setHighlight(53, 2, 3, "4Real_", 24, 14, "black", "lightgray")
  535.        
  536.         setHighlight(54, 2, 3, "[    ]", 15, 12, "black", "gray")
  537.         setHighlight(55, 2, 3, "Gold", 16, 12, "black", "yellow")
  538.         setHighlight(56, 2, 3, "Gnomers", 22, 12, "black", "blue")
  539.        
  540.         setHighlight(57, 2, 3, "[      ]", 37, 12, "black", "gray")
  541.         setHighlight(58, 2, 3, "Stammi", 38, 12, "black", "cyan")
  542.         setHighlight(59, 2, 3, "Qivex", 46, 12, "black", "lightgray")
  543.        
  544. --      setHighlight(60, 2, 3, "[      ]", 37, 14, "black", "gray")
  545. --      setHighlight(61, 2, 3, "Stammi", 38, 14, "black", "cyan")
  546. --      setHighlight(62, 2, 3, "TT_Finn12", 46, 14, "black", "lightgray")
  547.        
  548.        
  549.        
  550. end
  551.  
  552. function setHighlight(id, sprache, seite, text, xpos, ypos, backColor, textColor)
  553.     highlight[id] = {}
  554.     highlight[id]["lang"] = sprache
  555.     highlight[id]["page"] = seite
  556.     highlight[id]["text"] = text
  557.     highlight[id]["x"] = xpos
  558.     highlight[id]["y"] = ypos
  559.     highlight[id]["backColor"] = backColor
  560.     highlight[id]["textColor"] = textColor
  561. end
  562.  
  563. textZuweisen()
  564. screen()
  565. while true do
  566.     main()
  567. end
Add Comment
Please, Sign In to add comment