Ledger Nano X - The secure hardware wallet
SHARE
TWEET

server.lua

a guest Apr 10th, 2020 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local GUI = require("GUI")
  2. local component = require("component")
  3. local m = component.modem
  4.  
  5. --------------------------------------------------------------------------------
  6.  
  7. local workspace = GUI.workspace()
  8. m.open(123)
  9.  
  10. workspace:addChild(GUI.panel(1, 1, workspace.width, workspace.height, 0x2D2D2D))
  11.  
  12. local horizontalList = workspace:addChild(GUI.list(34, 2, 100, 3, 2, 0, 0xE1E1E1, 0x4B4B4B, 0xE1E1E1, 0x4B4B4B, 0x696969, 0xFFFFFF, true))
  13. horizontalList:setDirection(GUI.DIRECTION_HORIZONTAL)
  14. horizontalList:setAlignment(GUI.ALIGNMENT_HORIZONTAL_CENTER, GUI.ALIGNMENT_VERTICAL_TOP)
  15.  
  16. local item64 = horizontalList:addItem("64 000 rf/t").onTouch = function()
  17.   m.broadcast("64")
  18. end
  19.  
  20. local item128 = horizontalList:addItem("128 000 rf/t").onTouch = function()
  21.   m.broadcast("128")
  22. end
  23.  
  24. local item192 = horizontalList:addItem("192 000 rf/t").onTouch = function()
  25.   m.broadcast("192")
  26. end
  27.  
  28. --------------------------------------------------------------------------------
  29.  
  30. workspace:draw()
  31. workspace:start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top