Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- [ "testwp.lua" ] = "os.loadAPI('tos/tos')\
- print(tos.getPersistentVariable('wpc'))",
- upline = "os.loadAPI('/uap')\
- os.loadAPI('lg/lg')\
- lg.setup('term')\
- lg.fillScreen(colors.white)\
- lg.fill(1,26,2,2,colors.lightGray)\
- lg.drawText(2,4,colors.white,colors.gray,' Enter upline color: ')\
- lg.drawInput(' ',2,25,6,6,20)\
- \
- lg.drawBT('heart',2,2,12,12,colors.black,colors.white,'\\3')\
- lg.drawBT('note',4,4,12,12,colors.black,colors.white,'\\15')\
- lg.drawBT('dot',6,6,12,12,colors.black,colors.white,'\\7')\
- lg.drawBT('smileface',8,8,12,12,colors.black,colors.white,'\\2')\
- lg.drawBT('blank',10,10,12,12,colors.white,colors.black,'\ ')\
- lg.drawBT('save',2,6,17,17,colors.white,colors.green,' save ')\
- local upl_col = \"gray\"\
- local upl_sym = \"\\15\"\
- if not lg.isColor(upl_col) then\
- upl_col = \"gray\"\
- end\
- os.sleep(0.5)\
- while true do\
- local event, button, x, y = os.pullEvent( \"mouse_click\" )\
- if (lg.isInput(x,y) == \" \") then\
- upl_col = lg.getInput(x,y)\
- if not lg.isColor(upl_col) then upl_col = \"gray\" end\
- tos.writePersistentVariable(\"upl_col\",upl_col)\
- elseif (lg.isButton(x,y) == 'heart') then\
- upl_sym = '\\3'\
- elseif (lg.isButton(x,y) == 'note') then\
- upl_sym = '\\15'\
- elseif (lg.isButton(x,y) == 'dot') then\
- upl_sym = '\\7'\
- elseif (lg.isButton(x,y) == 'smileface') then\
- upl_sym = '\\2'\
- elseif (lg.isButton(x,y) == 'blank') then\
- upl_sym = '\ '\
- elseif (lg.isButton(x,y) == 'save') then\
- tos.writePersistentVariable('upl_sym', upl_sym)\
- os.sleep(0.5)\
- os.reboot()\
- end\
- if lg.isButton(x,y) or lg.isInput(x,y) then\
- lg.drawText(2,14,colors.white,lg.getColor(upl_col)\
- ,upl_sym)\
- end \
- end\
- \
- lg.exit()",
- settings = "os.loadAPI('lg/lg')\
- os.loadAPI('tos/tos')\
- os.loadAPI(\"uap\")\
- lg.setup('term')\
- lg.fillScreen(colors.white)\
- lg.fill(1,26,2,2,colors.lightGray)\
- \
- lg.drawBT('wp',2,25,4,4,colors.black,colors.lightGray,' Wallpaper color')\
- lg.drawBT('upl',2,25,6,6,colors.black,colors.lightGray,' Upper line settings')\
- lg.drawBT('dwnl',2,25,8,8,colors.black,colors.lightGray,' Down line color')\
- uap.upd()\
- while true do\
- local event, button, x, y = os.pullEvent( \"mouse_click\" )\
- if (lg.isButton(x,y) == \"wp\") then\
- tos.openFile('/settings/wallpaper')\
- sleep(0.1)\
- elseif (lg.isButton(x,y) == 'upl') then\
- tos.openFile('/settings/upline')\
- elseif (lg.isButton(x,y) == 'dwnl') then\
- tos.openFile('/settings/dwnline')\
- end\
- end\
- \
- lg.exit()",
- wallpaper = "os.loadAPI('/uap')\
- os.loadAPI('lg/lg')\
- lg.setup('term')\
- local wpcolor = \"gray\"\
- if not lg.isColor(wpcolor) then\
- wpcolor = \"gray\"\
- end\
- lg.fillScreen(colors.white)\
- lg.fill(1,26,2,2,colors.lightGray)\
- lg.drawText(2,4,colors.white,colors.gray,' Enter wallpaper color: ')\
- lg.drawInput(' ',2,25,6,6,20)\
- os.sleep(0.5)\
- while true do\
- local event, button, x, y = os.pullEvent( \"mouse_click\" )\
- if (lg.isInput(x,y) == \" \") then\
- local wpcolor = lg.getInput(x,y)\
- tos.writePersistentVariable('color',wpcolor)\
- end\
- end\
- \
- lg.exit()",
- dwnline = "os.loadAPI('/uap')\
- os.loadAPI('lg/lg')\
- lg.setup('term')\
- lg.fillScreen(colors.white)\
- lg.fill(1,26,2,2,colors.lightGray)\
- lg.drawText(2,4,colors.white,colors.gray,' Enter downline color: ')\
- lg.drawInput(' ',2,25,6,6,20)\
- local dwl_col = \"gray\"\
- if not lg.isColor(dwl_col) then\
- dwl_col = \"gray\"\
- end\
- os.sleep(0.5)\
- while true do\
- local event, button, x, y = os.pullEvent( \"mouse_click\" )\
- if (lg.isInput(x,y) == \" \") then\
- local dwl_col = lg.getInput(x,y)\
- tos.writePersistentVariable('dwl_col',dwl_col)\
- end\
- end\
- \
- lg.exit()",
- }
Advertisement
Add Comment
Please, Sign In to add comment