DannySMc, on 11 December 2014 - 03:45 PM, said:
PocketShell 2.3 - A multitasking pocket OS - Mix and match colors!
#21
Posted 11 December 2014 - 11:25 PM
#23
Posted 12 December 2014 - 10:20 PM
#25
Posted 13 December 2014 - 08:05 PM
Keep it up!
ComputerCraft_rules!, on 12 December 2014 - 10:20 PM, said:
Edited by Geforce Fan, 13 December 2014 - 11:14 PM.
#26
Posted 15 December 2014 - 11:44 PM
You might want to change the buttons now!
Mr. Bateman, on 26 August 2014 - 12:29 PM, said:
Mr. Bateman, on 13 December 2014 - 10:15 AM, said:
Also, I'd love to see mult users like Nova Horizon. And a chat AND email app is a must. I'd like to see a stand alone program to host the cha/email server, and possibly a PHP version, but I'm not asking you to host a real interserver application.
EDIT: Where's the API documentation?
Edited by willwac, 16 December 2014 - 12:11 AM.
#27
Posted 16 December 2014 - 01:49 AM
willwac, on 15 December 2014 - 11:44 PM, said:
willwac, on 15 December 2014 - 11:44 PM, said:
willwac, on 15 December 2014 - 11:44 PM, said:
willwac, on 15 December 2014 - 11:44 PM, said:
willwac, on 15 December 2014 - 11:44 PM, said:
#28
Posted 16 December 2014 - 11:11 PM
You've said that the settings app in modular, and I'd like to put that to work.
#29
Posted 16 December 2014 - 11:32 PM
willwac, on 16 December 2014 - 11:11 PM, said:
You've said that the settings app in modular, and I'd like to put that to work.
Each program in the /programs folder has it's own folder. The contents must include a 'entry.reg', but 'icon.nft' (unless you want it to show up on the main page) and 'settings.template' aren't. If you want to hide the program from the homescreen, simply add a '.' to the start of the folder name. If you don't want to hide it, then 'icon.nft' is required.
The required entry.reg simply tells the system which file to load and the name of the application. It is simply the human friendly name, a new line and the relative path to the program. So if I had a paint program that started as 'main', I would do this:
Paint main
icon.nft is an Sketch/NitrogenFingers paint file, which is 5x4. It isn't required if you don't want it to appear on the home screen, but you must prefix the folder name with a '.' or it will bug out.
settings.template is what you were looking for. As of writing, there are only two kinds of settings available: switches and colours. 'switch' is a toggle, and 'color' (please note the spelling and capitalization for both cases) is a colour selector. Each setting is separated by a new line, and the setting and type is separated by a ';' . I'll put it into example to make it easier.
This is a colour selector!;color This is a switch!;switchHow to access these settings is much different. You can access it like this:
settings.getSettings('Human Friendly Name')['Specific Setting']If we were to combine both examples a bit above, it would look like this if I wanted to get a set colour:
color = settings.getSettings('Paint')['This is a colour selector!]
That is, simply put, how the app API works in PocketShell.
Edited by Mr. Bateman, 17 December 2014 - 03:07 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users