Advertisement
Guest User

dialer

a guest
Aug 23rd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. os.loadAPI("touchpoint")
  2.  
  3. local page1 = touchpoint.new("right")
  4. local page2 = touchpoint.new("right")
  5.  
  6. local t
  7. local pages = {}
  8. local addressbook = {}
  9.  
  10. function addAddress()
  11.   addressbook.gate1 = "BAARAANAA"
  12.   addressbook.gate2 = "CABDAARAA"
  13.   addressbook.gate3 = "AAB3AAAAA"
  14.   addressbook.gate4 = "AAB5AA5AA"
  15.   addressbook.gate5 = "AAB4ABKAA"
  16.   addressbook.gate6 = "AABVABSAA"
  17.   addressbook.gate7 = "AAA7ACBAA"
  18.   addressbook.gate8 = "AAAXACLAA"
  19. end
  20.  
  21. function arrowPage(page)
  22.   if page == pages.getn() then
  23.     t = pages(1)
  24.   else t = pages(page+1)
  25.   end
  26. end
  27.  
  28. pages = {page1, page2}
  29. local pagenum = 1
  30. print(table.getn(pages))
  31. --print(pagenum)
  32. --t = page1
  33. --t:draw()
  34. --arrowPage(pagenum)
  35. --os.sleep(3)
  36. --t:draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement