Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("config")
- mon = peripheral.wrap(monSide)
- mon.setTextScale(.5)
- local xMax,yMax = mon.getSize()
- function Background(col)
- mon.setBackgroundColor(col)
- for xPos = 1,xMax do
- for yPos = 1,yMax do
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- end
- end
- function JoJa(xPos,yPos)
- mon.setCursorPos(xPos,yPos)
- mon.setBackgroundColor(colors.gray)
- mon.setTextColor(colors.cyan)
- mon.write("Jo")
- mon.setTextColor(colors.orange)
- mon.write("Ja ")
- mon.setTextColor(colors.lightGray)
- mon.write("Productions")
- mon.setTextColor(colors.white)
- end
- function overlay(xP,yP,txt)
- mon.setCursorPos(xP,yP)
- mon.write(txt)
- end
- vorschau = false
- function Bt(xP1,yP1,xP2,yP2,txt1,col)
- mon.setBackgroundColor(col)
- for xPos = xP1,xP2 do
- for yPos = yP1,yP2 do
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- end
- mon.setCursorPos((xP1+((xP2-xP1)/2))-#txt1/2,(yP1+(yP2-yP1)/2))
- mon.write(txt1)
- end
- function Background(col)
- mon.setBackgroundColor(col)
- for xPos = 1,xMax do
- for yPos = 1,yMax do
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- end
- end
- function JoJa(xPos,yPos)
- mon.setCursorPos(xPos,yPos)
- mon.setBackgroundColor(colors.gray)
- mon.setTextColor(colors.cyan)
- mon.write("Jo")
- mon.setTextColor(colors.orange)
- mon.write("Ja ")
- mon.setTextColor(colors.lightGray)
- mon.write("Productions")
- mon.setTextColor(colors.white)
- end
- function overlay(xP,yP,txt)
- mon.setCursorPos(xP,yP)
- mon.write(txt)
- end
- function Bt(xP1,yP1,xP2,yP2,txt1,col)
- mon.setBackgroundColor(col)
- for xPos = xP1,xP2 do
- for yPos = yP1,yP2 do
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- end
- mon.setCursorPos((xP1+((xP2-xP1)/2))-#txt1/2,(yP1+(yP2-yP1)/2))
- mon.write(txt1)
- end
- function createArray()
- Button = {}
- --Effekte
- --Button = (xP1,yP1,xP2,yP2)
- Button[1] = {7,6,21,6, "Diamond" ,colors.cyan, false,"Effects" ,colors.white}
- Button[2] = {7,8,21,8, "Glowstone" ,colors.red, false,"Effects" ,colors.orange}
- --Shape
- Button[3] = {7,17,21,17,"Gold Nugget" ,colors.orange, false,"Shape" ,colors.magenta}
- Button[4] = {7,19,21,19,"Fire Charge" ,colors.red, false,"Shape" ,colors.lightBlue}
- Button[5] = {7,21,21,21,"Feather" ,colors.lightGray,false,"Shape" ,colors.yellow}
- --Farben1
- Button[6] = {27, 6,41, 6,"White" ,colors.lightGray,false,"Color" ,colors.white}
- Button[7] = {27, 8,41, 8,"Orange" ,colors.orange, false,"Color" ,colors.orange}
- Button[8] = {27,10,41,10,"Magenta" ,colors.magenta, false,"Color" ,colors.magenta}
- Button[9] = {27,12,41,12,"light Blue" ,colors.lightBlue,false,"Color" ,colors.lightBlue}
- Button[10]= {27,14,41,14,"Yellow" ,colors.yellow, false,"Color" ,colors.yellow}
- Button[11]= {27,16,41,16,"Lime" ,colors.lime, false,"Color" ,colors.lime}
- Button[12]= {27,18,41,18,"Pink" ,colors.pink, false,"Color" ,colors.pink}
- Button[13]= {27,20,41,20,"Gray" ,colors.black, false,"Color",colors.gray}
- Button[14]= {27,22,41,22,"light Gray" ,colors.lightGray,false,"Color" ,colors.lightGray}
- Button[15]= {27,24,41,24,"Cyan" ,colors.cyan, false,"Color" ,colors.cyan}
- Button[16]= {27,26,41,26,"Purple" ,colors.purple, false,"Color" ,colors.purple}
- Button[17]= {27,28,41,28,"Blue" ,colors.blue, false,"Color" ,colors.blue}
- Button[18]= {27,30,41,30,"Brown" ,colors.brown, false,"Color" ,colors.brown}
- Button[19]= {27,32,41,32,"Green" ,colors.green, false,"Color" ,colors.green}
- Button[20]= {27,34,41,34,"Red" ,colors.red, false,"Color" ,colors.red}
- Button[21]= {27,36,41,36,"Black" ,colors.black, false,"Color" ,colors.black}
- --Power
- Button[22]= {7,30,21,30, "lvl 1" ,colors.lime, false,"Power" ,colors.lime}
- Button[23]= {7,32,21,32, "lvl 2" ,colors.orange, false,"Power" ,colors.pink}
- Button[24]= {7,34,21,34, "lvl 3" ,colors.red, false,"Power" ,colors.gray}
- --Farben2
- Button[25] = {47, 6,60, 6,"White" ,colors.lightGray,false,"Color2",colors.white}
- Button[26] = {47, 8,60, 8,"Orange" ,colors.orange, false,"Color2",colors.orange}
- Button[27] = {47,10,60,10,"Magenta" ,colors.magenta, false,"Color2",colors.magenta}
- Button[28] = {47,12,60,12,"light Blue" ,colors.lightBlue,false,"Color2",colors.lightBlue}
- Button[29]= {47,14,60,14,"Yellow" ,colors.yellow, false,"Color2" ,colors.yellow}
- Button[30]= {47,16,60,16,"Lime" ,colors.lime, false,"Color2" ,colors.lime}
- Button[31]= {47,18,60,18,"Pink" ,colors.pink, false,"Color2" ,colors.pink}
- Button[32]= {47,20,60,20,"Gray" ,colors.black, false,"Color2" ,colors.gray}
- Button[33]= {47,22,60,22,"light Gray" ,colors.lightGray,false,"Color2" ,colors.lightGray}
- Button[34]= {47,24,60,24,"Cyan" ,colors.cyan, false,"Color2" ,colors.cyan}
- Button[35]= {47,26,60,26,"Purple" ,colors.purple, false,"Color2" ,colors.purple}
- Button[36]= {47,28,60,28,"Blue" ,colors.blue, false,"Color2" ,colors.blue}
- Button[37]= {47,30,60,30,"Brown" ,colors.brown, false,"Color2" ,colors.brown}
- Button[38]= {47,32,60,32,"Green" ,colors.green, false,"Color2" ,colors.green}
- Button[39]= {47,34,60,34,"Red" ,colors.red, false,"Color2" ,colors.red}
- Button[40]= {47,36,60,36,"Black" ,colors.black, false,"Color2" ,colors.black}
- --weite Buttons
- Button[41]= {70,6,90,8, "Vorschau" ,colors.orange, false,"Extra" ,colors.white}
- Button[42]= {70,10,90,12,"Craften" ,colors.blue, false,"Extra" ,colors.orange}
- Button[43]= {70,14,90,16,"Reset" ,colors.red, false,"Extra"}
- --Menge
- Button[44]= {70,20,"1" ,"Amount"}
- Button[45]= {74,20,"2" ,"Amount"}
- Button[46]= {78,20,"3" ,"Amount"}
- Button[47]= {70,24,"4" ,"Amount"}
- Button[48]= {74,24,"5" ,"Amount"}
- Button[49]= {78,24,"6" ,"Amount"}
- Button[50]= {70,28,"7" ,"Amount"}
- Button[51]= {74,28,"8" ,"Amount"}
- Button[52]= {78,28,"9" ,"Amount"}
- Button[53]= {74,32,"0" ,"Amount"}
- Button[54]= {78,32,"<-","Amount"}
- end
- function printAmount()
- overlay(70,18,"Amount")
- mon.setBackgroundColor(colors.gray)
- for B = 44,54 do
- for xP = Button[B][1],Button[B][1]+2 do
- for yP = Button[B][2],Button[B][2]+2 do
- mon.setCursorPos(xP,yP)
- mon.write(" ")
- end
- end
- mon.setCursorPos(Button[B][1]+1,Button[B][2]+1)
- mon.write(Button[B][3])
- end
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(70,37)
- mon.write(amt)
- end
- function checkAmount(xP,yP)
- for B = 44,54 do
- if xP >= Button[B][1] and xP <= Button[B][1]+2
- and yP >= Button[B][2] and yP <= Button[B][2]+2 then
- if B == 54 then
- amt = string.sub(amt, 0, #amt-1)
- else
- amt = amt..Button[B][3]
- end
- end
- end
- end
- function printButton(b1,b2)
- mon.setBackgroundColor(colors.black)
- xP = Button[b1][1]-2
- yP = Button[b1][2]-2
- Pos1 = yP+1
- Pos2 = yP+2
- overlay(xP,yP,Button[b1][8])
- mon.setBackgroundColor(colors.black)
- for b = b1,b2 do
- overlay(xP,Pos1,"|")
- overlay(xP,Pos2,"+-")
- Pos1 = Pos1+2
- Pos2 = Pos2+2
- if Button[b][7] then
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],Button[b][6])
- mon.setBackgroundColor(colors.black)
- else
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],colors.gray)
- mon.setBackgroundColor(colors.black)
- end
- end
- end
- function printButton2(b1,b2)
- mon.setBackgroundColor(colors.black)
- xP = Button[b1][1]-2
- yP = Button[b1][2]-2
- Pos1 = yP+1
- Pos2 = yP+2
- overlay(xP,yP,Button[b1][8])
- mon.setBackgroundColor(colors.black)
- overlay(xP,Pos1,"|")
- overlay(xP,Pos1+1,"|")
- overlay(xP,Pos1+2,"+-")
- for b = b1,b2 do
- if b ~= b1 then
- Pos1 = Pos1+4
- overlay(xP,Pos1-1,"|")
- overlay(xP,Pos1,"|")
- overlay(xP,Pos1+1,"|")
- overlay(xP,Pos1+2,"+-")
- end
- if Button[b][7] then
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],Button[b][6])
- mon.setBackgroundColor(colors.black)
- else
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],colors.gray)
- mon.setBackgroundColor(colors.black)
- end
- end
- end
- function printButtonAnimation(b1,b2)
- mon.setBackgroundColor(colors.black)
- xP = Button[b1][1]-2
- yP = Button[b1][2]-2
- Pos1 = yP+1
- Pos2 = yP+2
- overlay(xP,yP,Button[b1][8])
- mon.setBackgroundColor(colors.black)
- for b = b1,b2 do
- overlay(xP,Pos1,"|")
- overlay(xP,Pos2,"+-")
- Pos1 = Pos1+2
- Pos2 = Pos2+2
- if Button[b][7] then
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],Button[b][6])
- mon.setBackgroundColor(colors.black)
- else
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],colors.gray)
- mon.setBackgroundColor(colors.black)
- end
- sleep(0.1)
- end
- end
- function printButton2Animation(b1,b2)
- mon.setBackgroundColor(colors.black)
- xP = Button[b1][1]-2
- yP = Button[b1][2]-2
- Pos1 = yP+1
- Pos2 = yP+2
- overlay(xP,yP,Button[b1][8])
- mon.setBackgroundColor(colors.black)
- overlay(xP,Pos1,"|")
- overlay(xP,Pos1+1,"|")
- overlay(xP,Pos1+2,"+-")
- for b = b1,b2 do
- if b ~= b1 then
- Pos1 = Pos1+4
- overlay(xP,Pos1-1,"|")
- overlay(xP,Pos1,"|")
- overlay(xP,Pos1+1,"|")
- overlay(xP,Pos1+2,"+-")
- end
- if Button[b][7] then
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],Button[b][6])
- mon.setBackgroundColor(colors.black)
- else
- Bt(Button[b][1],Button[b][2],Button[b][3],Button[b][4],Button[b][5],colors.gray)
- mon.setBackgroundColor(colors.black)
- end
- sleep(0.1)
- end
- end
- function checkButton(xP,yP)
- col1 = 0
- col2 = 0
- for B = 1,21 do
- if Button[B][7] then
- col1 = col1+1
- end
- end
- for B = 25,40 do
- if Button[B][7] then
- col2 = col2+1
- end
- end
- for B = 1,43 do
- if xP >= Button[B][1] and xP <= Button[B][3] and
- yP >= Button[B][2]-0.5 and yP <= Button[B][4]+0.5 then
- if Button[B][7] then
- Button[B][7] = false
- elseif Button[B][7] == false then
- if B >= 1 and B <= 21 or B >= 25 and B <= 40 then
- if B >= 1 and B <= 21 then
- if col1 >=8 then
- else
- Button[B][7] = true
- if B == 1 then
- Button[2][7] = false
- elseif B == 2 then
- Button[1][7] = false
- elseif B == 3 then
- Button[4][7] = false
- Button[5][7] = false
- elseif B == 4 then
- Button[3][7] = false
- Button[5][7] = false
- elseif B == 5 then
- Button[3][7] = false
- Button[4][7] = false
- end
- end
- elseif B >= 25 and B <= 40 then
- if col2 >=8 then
- else
- Button[B][7] = true
- end
- end
- else
- Button[B][7] = true
- if B == 22 then
- Button[23][7] = false
- Button[24][7] = false
- elseif B == 23 then
- Button[22][7] = false
- Button[24][7] = false
- elseif B == 24 then
- Button[22][7] = false
- Button[23][7] = false
- end
- end
- end
- end
- end
- end
- function list()
- i=0
- overlay(67,6,"Auswahl:")
- for B = 1,#Button do
- if Button[B][7] then
- mon.setCursorPos(67,8+2*i)
- mon.write(Button[B][8].." "..Button[B][5].." ")
- i=i+1
- end
- end
- end
- function progress(actualProgress, maxProgress, title, msg, cAProgress, cMaxProgress)
- x1 = (xMax/2)-15
- x2 = (xMax/2)+15
- y1 = (yMax/2)-7
- y2 = (yMax/2)+7
- mon.setBackgroundColor(colors.gray)
- mon.setTextColor(colors.white)
- for i=y1, y2 do
- mon.setCursorPos(x1,i)
- for j=x1, x2 do
- if i==y1 or i==y2 then
- if j==x1 or j==x2 then
- mon.write("+")
- else
- mon.write("-")
- end
- else
- if j==x1 or j==x2 then
- mon.write("|")
- else
- mon.write(" ")
- end
- end
- end
- end
- mon.setCursorPos((xMax/2)-(#title/2), y1+2)
- mon.write(title)
- mon.setCursorPos((xMax/2)-(#msg/2), y1+6)
- mon.write(msg)
- mon.setCursorPos(x1+2,y1+9)
- mon.setBackgroundColor(colors.lightGray)
- for i=1,27 do
- mon.write(" ")
- end
- mon.setCursorPos(x1+2,y1+9)
- mon.setBackgroundColor(colors.lime)
- for i=1,((27/maxProgress)*actualProgress) do
- mon.write(" ")
- end
- if cAProgress~=nil and cMaxProgress~=nil then
- percentage = tostring(math.floor((100/cMaxProgress)*cAProgress)) .. "%"
- mon.setCursorPos(x1+2,y1+12)
- mon.setBackgroundColor(colors.lightGray)
- for i=1,27 do
- mon.write(" ")
- end
- mon.setCursorPos(x1+2,y1+12)
- mon.setBackgroundColor(colors.blue)
- for i=1,((27/cMaxProgress)*cAProgress) do
- mon.write(" ")
- end
- mon.setBackgroundColor(colors.gray)
- mon.setCursorPos((xMax/2)-(#percentage/2), y1+11)
- mon.write(percentage)
- end
- mon.setBackgroundColor(colors.black)
- end
- function craft(anzahl)
- --set 0
- rs.setBundledOutput(BundledCableColorESP,0)
- rs.setBundledOutput(BundledCableColor1,0)
- rs.setBundledOutput(BundledCableColor2,0)
- if vorschau == true then
- rs.setBundledOutput(BundledCableExtra,colors.lime+colors.magenta+colors.lightBlue+colors.pink+colors.gray)
- progress(0, 4, "Vorschau-Progress", "starting...")
- else
- rs.setBundledOutput(BundledCableExtra,colors.lime+colors.magenta+colors.lightBlue+colors.pink)
- progress(0, 3, "Crafting-Progress", "starting...")
- end
- sleep(5)
- --Color1
- for b = 6,21 do
- if Button[b][7] then
- rs.setBundledOutput(BundledCableColor1,rs.getBundledOutput(BundledCableColor1)+Button[b][9])
- end
- end
- for b = 1,5 do
- if Button[b][7] then
- rs.setBundledOutput(BundledCableColorESP,rs.getBundledOutput(BundledCableColorESP)+Button[b][9])
- end
- end
- if vorschau == true then
- progress(1, 4, "Vorschau-Progress", "initialising...", 1, 2)
- else
- progress(1, 3, "Crafting-Progress", "initialising...", 1, 2)
- end
- sleep(7)
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate/2)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- for b = 25,40 do
- if Button[b][7] then
- rs.setBundledOutput(BundledCableColor2,rs.getBundledOutput(BundledCableColor2)+Button[b][9])
- end
- end
- if vorschau == true then
- progress(1, 4, "Vorschau-Progress", "initialising...", 2, 2)
- else
- progress(1, 3, "Crafting-Progress", "initialising...", 2, 2)
- end
- sleep(7)
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate/2)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- if Button[22][7] then
- rs.setBundledOutput(BundledCableColorESP,rs.getBundledOutput(BundledCableColorESP)+Button[22][9]+colors.lightGray)
- elseif Button[23][7] then
- rs.setBundledOutput(BundledCableColorESP,rs.getBundledOutput(BundledCableColorESP)+Button[22][9]+Button[23][9] +colors.lightGray)
- elseif Button[24][7] then
- rs.setBundledOutput(BundledCableColorESP,rs.getBundledOutput(BundledCableColorESP)+Button[22][9]+Button[23][9]+Button[24][9]+colors.lightGray)
- end
- if vorschau == true then
- progress(2, 4, "Vorschau-Progress", "crafting...", 0, anzahl+3)
- else
- progress(2, 3, "Crafting-Progress", "crafting...", 0, anzahl+3)
- end
- sleep(7)
- for b = 1,anzahl+3 do
- progress(3, 5, "Crafting-Progress", "crafting...", b, anzahl+3)
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate/2)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- end
- if vorschau == true then
- progress(3, 4, "Vorschau-Progress", "cleaning up...", 1, 2)
- else
- progress(3, 3, "Crafting-Progress", "cleaning up...", 1, 2)
- end
- rs.setBundledOutput(BundledCableColor1, 0)
- rs.setBundledOutput(BundledCableExtra, colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.magenta))
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- if vorschau == true then
- progress(3, 4, "Vorschau-Progress", "cleaning up...", 2, 2)
- else
- progress(3, 3, "Crafting-Progress", "cleaning up...", 2, 2)
- end
- rs.setBundledOutput(BundledCableColor2, 0)
- rs.setBundledOutput(BundledCableExtra, colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.lightBlue))
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- rs.setBundledOutput(BundledCableColorESP, colors.subtract(rs.getBundledOutput(BundledCableColorESP),colors.white,colors.orange,colors.magenta,colors.lightBlue,colors.yellow))
- rs.setBundledOutput(BundledCableExtra, colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.lime))
- rs.setBundledOutput(BundledCableExtra,rs.getBundledOutput(BundledCableExtra)+Button[42][9])
- sleep(tickrate)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.orange))
- sleep(tickrate/2)
- rs.setBundledOutput(BundledCableExtra,0)
- if vorschau == true then
- rs.setBundledOutput(BundledCableExtra, rs.getBundledOutput(BundledCableExtra)+colors.gray)
- end
- rs.setBundledOutput(BundledCableColorESP,0)
- rs.setBundledOutput(BundledCableColor1,0)
- rs.setBundledOutput(BundledCableColor2,0)
- sleep(10)
- mon.setBackgroundColor(colors.black)
- mon.clear()
- end
- function Vorschau()
- vorschau = true
- rs.setBundledOutput(BundledCableExtra, rs.getBundledOutput(BundledCableExtra)+colors.gray)
- craft(3)
- t = 0
- if Button[22][7] then
- t = 0.5
- elseif Button[23][7] then
- t = 0.9
- elseif Button[24][7] then
- t = 1.2
- end
- progress(4, 4, "Vorschau-Progress", "showing Firework...", 0, 5)
- for i = 1,5 do
- progress(4, 4, "Vorschau-Progress", "showing Firework...", i, 5)
- rs.setBundledOutput(BundledCableExtra, rs.getBundledOutput(BundledCableExtra)+colors.lightGray)
- sleep(t)
- rs.setBundledOutput(BundledCableExtra, rs.getBundledOutput(BundledCableExtra)+colors.cyan)
- sleep(0.5)
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.lightGray,colors.cyan))
- sleep(0.5)
- end
- rs.setBundledOutput(BundledCableExtra,colors.subtract(rs.getBundledOutput(BundledCableExtra),colors.gray))
- vorschau = false
- mon.clear()
- end
- --startup
- rs.setBundledOutput(BundledCableColorESP,0)
- rs.setBundledOutput(BundledCableColor1,0)
- rs.setBundledOutput(BundledCableColor2,0)
- rs.setBundledOutput(BundledCableExtra,0)
- amt = ""
- createArray()
- Background(colors.black)
- JoJa(xMax/2-7,1)
- mon.setBackgroundColor(colors.black)
- mon.setTextColor(colors.white)
- overlay(xMax/2-10,yMax/2-1,"Bitte auf den Monitor")
- overlay(xMax/2-5,yMax/2,"klicken...")
- event = os.pullEvent("monitor_touch")
- Background(colors.black)
- JoJa(xMax/2-7,1)
- printButtonAnimation(1,2)
- printButtonAnimation(3,5)
- printButtonAnimation(22,24)
- printButtonAnimation(6,21)
- printButtonAnimation(25,40)
- printButton2Animation(41,43)
- sleep(0.1)
- printAmount()
- while true do
- JoJa(xMax/2-7,1)
- event,_,xPos,yPos = os.pullEvent("monitor_touch")
- Background(colors.black)
- checkButton(xPos,yPos)
- checkAmount(xPos,yPos)
- if Button[41][7] then
- Vorschau()
- Button[41][7] = false
- end
- if Button[42][7] then
- craft(amt)
- Button[42][7] = false
- end
- printButton(1,2)
- printButton(3,5)
- printButton(22,24)
- printButton(6,21)
- printButton(25,40)
- printButton2(41,43)
- if Button[43][7] then
- sleep(1)
- createArray()
- amt = ""
- printButton(1,2)
- printButton(3,5)
- printButton(22,24)
- printButton(6,21)
- printButton(25,40)
- printButton2(41,43)
- end
- printAmount()
- end
Add Comment
Please, Sign In to add comment