Jump to content




PocketShell 2.3 - A multitasking pocket OS - Mix and match colors!


30 replies to this topic

#21 Mr. Bateman

  • Members
  • 98 posts
  • LocationAustralia

Posted 11 December 2014 - 11:25 PM

View PostDannySMc, on 11 December 2014 - 03:45 PM, said:

At last a decent environment for Pocket Computers! Nice look as well!! +1
Thanks, I plan to start updating this again after finishing a secret project.

#22 Dahknee

  • Members
  • 1,808 posts
  • Location/home/da

Posted 12 December 2014 - 11:02 AM

View PostMr. Bateman, on 11 December 2014 - 11:25 PM, said:

View PostDannySMc, on 11 December 2014 - 03:45 PM, said:

At last a decent environment for Pocket Computers! Nice look as well!! +1
Thanks, I plan to start updating this again after finishing a secret project.

Yeah do it!!

#23 GreenGene

  • Members
  • 79 posts
  • LocationMagic land, awesomeness

Posted 12 December 2014 - 10:20 PM

You could call a function every time an app launches.

#24 Mr. Bateman

  • Members
  • 98 posts
  • LocationAustralia

Posted 13 December 2014 - 10:15 AM

View PostComputerCraft_rules!, on 12 December 2014 - 10:20 PM, said:

You could call a function every time an app launches.
What will the function do?

#25 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 13 December 2014 - 08:05 PM

Wow. I clicked this thinking "oh boy, another "os"", but this is actually a legitiment OS with multitasking and everything, not just a fake loading screen startup script!
Keep it up!

View PostComputerCraft_rules!, on 12 December 2014 - 10:20 PM, said:

You could call a function every time an app launches.
I think he means call a function that, by default, is blank, but apps can overwrite it and use it to detect when an app is launched. But since ComputerCraft has an event system, it'd be better to use it.

Edited by Geforce Fan, 13 December 2014 - 11:14 PM.


#26 willwac

  • Members
  • 182 posts

Posted 15 December 2014 - 11:44 PM

Posted Image
You might want to change the buttons now!

View PostMr. Bateman, on 26 August 2014 - 12:29 PM, said:

(The background is cut off vertically because it's an emulator of a normal computer)
What are you using to emulate a pocket computer on a standard CC computer?

View PostMr. Bateman, on 13 December 2014 - 10:15 AM, said:

View PostComputerCraft_rules!, on 12 December 2014 - 10:20 PM, said:

You could call a function every time an app launches.
What will the function do?
iOS (and maybe Android) throws an event when an app is launched, crashed, when control and notification center is opened. It also throws an event when the multiswitcher is opened and the app is hidden from view. I believe that's what ComputerCraft_rules! is wanting, and I think its a great idea.
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 Mr. Bateman

  • Members
  • 98 posts
  • LocationAustralia

Posted 16 December 2014 - 01:49 AM

View Postwillwac, on 15 December 2014 - 11:44 PM, said:

You might want to change the buttons now!
I might end up creating custom buttons in the settings instead. Too confusing with so many standards.

View Postwillwac, on 15 December 2014 - 11:44 PM, said:

What are you using to emulate a pocket computer on a standard CC computer?
I've built in a feature that allows it to run on a standard CC computer. I'm using the extra space as developer debug info, which is why I haven't made it public.

View Postwillwac, on 15 December 2014 - 11:44 PM, said:

iOS (and maybe Android) throws an event when an app is launched, crashed, when control and notification center is opened. It also throws an event when the multiswitcher is opened and the app is hidden from view. I believe that's what ComputerCraft_rules! is wanting, and I think its a great idea.
That does seem like a great idea, certainly will be in next update.

View Postwillwac, on 15 December 2014 - 11:44 PM, 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.
I guess I can do these too, but I'll leave it as a lower priority.

View Postwillwac, on 15 December 2014 - 11:44 PM, said:

EDIT: Where's the API documentation?
Which API? There's many, but I'm guessing you want the PocketShell one. I'll quickly draw up the documentation and post it, but there isn't much that's new over Multishell.

#28 willwac

  • Members
  • 182 posts

Posted 16 December 2014 - 11:11 PM

Yes.
You've said that the settings app in modular, and I'd like to put that to work.

#29 Mr. Bateman

  • Members
  • 98 posts
  • LocationAustralia

Posted 16 December 2014 - 11:32 PM

View Postwillwac, on 16 December 2014 - 11:11 PM, said:

Yes.
You've said that the settings app in modular, and I'd like to put that to work.
Ah, that's simple. I've yet to make formal documentation, but I'll quickly type up the app API now:

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!;switch
How 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.


#30 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 16 December 2014 - 11:41 PM

View PostMr. Bateman, on 16 December 2014 - 11:32 PM, said:

icon.nft is an Ink/NitrogenFingers paint file

*Sketch?

:P

Those settings look quite neat though, a nice idea.

#31 Mr. Bateman

  • Members
  • 98 posts
  • LocationAustralia

Posted 17 December 2014 - 12:40 AM

View Postoeed, on 16 December 2014 - 11:41 PM, said:

View PostMr. Bateman, on 16 December 2014 - 11:32 PM, said:

icon.nft is an Ink/NitrogenFingers paint file

*Sketch?

:P/>

Those settings look quite neat though, a nice idea.
Right. Too early in the morning.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users