Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("textXAPI")
- os.loadAPI("monitorXAPI")
- btnFill = colors.lightGray
- btnText = colors.black
- btnDisFill = colors.gray
- btnDisText = colors.black
- mainPage = {}
- mainPage[1] = monitorXAPI.StatusBar:new()
- mainPage[2] = monitorXAPI.Button:new
- { x = 2,
- y = 3,
- size = 2,
- length = 25,
- text = "Touch to set path1",
- enabled = true,
- visible = true,
- enabledFillColor = btnFill,
- enabledTextColor = btnText,
- disabledFillColor = btnDisFill,
- disabledTextColor = btnDisText,
- onClickFunction = function() mainPage[1].path = "Zmieniono tytul 1!" end
- }
- mainPage[3] = monitorXAPI.Button:new
- { x = 2,
- y = 9,
- size = 2,
- length = 25,
- text = "Touch to set path2",
- enabled = false,
- visible = true,
- enabledFillColor = btnFill,
- enabledTextColor = btnText,
- disabledFillColor = btnDisFill,
- disabledTextColor = btnDisText,
- onClickFunction = function() mainPage[1].path = "Zmieniono tytul 2!" end
- }
- monitorXAPI.monitorSetup("right", 0.5, colors.blue)
- monitorXAPI.uiEvents(mainPage, 1)
Add Comment
Please, Sign In to add comment