This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Grim Reaper's profile picture

Clickable Shell

Started by Grim Reaper, 20 November 2012 - 11:11 AM
Grim Reaper #1
Posted 20 November 2012 - 12:11 PM
I originally wanted to develop an "OS", but felt that the necessity for it wasn't great enough to put forth the effort, and thus I leave you with this: my clickable interface.

These scripts allow for a clickable interface based desktop environment. At this stage, I created one simple interface to operate the main systems, but I am releasing it so users may write their own programs with the APIs provided.

Clickable interfaces have been placed into a class that can be reused, while there are several other APIs to allow easy manipulation over how the system behaves. The nature of this system is that it allows for users to write their own programs without having to worry about dependencies caused by pre-written programs already in the shell.

I'm sure there are bugs and features to be added; I will fix bugs as I find them and are presented to me, but features will only be added if requested.
I hope that you all enjoy using this as I did making it!

Screenshots:
Spoilerhttp://imgur.com/a/T6vTO

Installer Script:
http://pastebin.com/24LYTFV0

This is a little script that works with this system, but keep in mind that this script in particular is under heavy development for the time being -> There are a lot of bugs in this browser and it is not very feature rich, however what it demonstrates is the possibilities with so little code.
http://pastebin.com/PLE0GXGU
UMayBleed #2
Posted 20 November 2012 - 12:31 PM
Looks good :(/>/> but i say use term.getSize() and center the GUI so it makes it more Epic
Grim Reaper #3
Posted 20 November 2012 - 01:10 PM
Looks good :(/>/> but i say use term.getSize() and center the GUI so it makes it more Epic

I take it you didn't read through the source? term.getSize() is implemented. Interfaces aren't centered because they are draggable.
nutcase84 #4
Posted 22 November 2012 - 06:32 AM
This sounds epic. Good job! Can I use this in my OS? And also, can i edit the code?
Grim Reaper #5
Posted 23 November 2012 - 10:18 AM
Sure, I realized it's not as applicable as I would've hoped. But please give credit where credit is due.
darkness3560 #6
Posted 13 December 2012 - 05:19 PM
Please help! When I try to run this from a floppy disk it says:

File not found
File not found
File not found
File not found
File not found
File not found
grimShellMain:27: attempt to index ? (a nil value)
I think it has something to do with os.loadAPI, but I don't know how to fix it!
Please help.