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

rGUI - Easy-to-use GUI library [public alpha/beta]

Started by robhol, 13 March 2013 - 07:52 PM
robhol #1
Posted 13 March 2013 - 08:52 PM
rGUI is dead. Repositories are private, development and support are ceased.




Features
  • Windows or full-screen GUIs
  • Most of the common controls; labels, buttons, textboxes, checkboxes, radio buttons, comboboxes/dropdown lists, menus (doubles as listbox), progress bars, etc
  • Movable windows
  • Hierarchical layout - elements are created on their "parent"
  • Filters (allow you to apply an effect to part of the screen)
  • Images (uses the standard CC paint/NFP format)
  • Animations
  • Largely mouse OR keyboard-driven (there's nothing worse than a GUI system you can't navigate with the keyboard >_>)
  • The way things look are usually completely customizable by setting properties on the object
  • Flexible - you can add new behavior to almost anything and all CC events are supported
  • Simple message box function
  • More :D/>
Link to code/repository/issue tracker
(removed)

Link to wiki
(removed)

Direct download
(removed)

Screenshots
Spoiler
test/controls



A simple login form from demo/demo2 (unfinished) - displays messagebox functionality and uses filters to "darken" the screen behind the box.


Filters can have any effect at all, though. :)/> (picture from test/filter)

Terms of use
These are some nice ground rules you should agree to if you want to use rGUI:
  • Do not claim it as your own creation.
  • Do not "repackage" and claim the result as your own creation.
  • Do not "repackage" at all if the other package contents are trivial.
  • Give credit to me (robhol) and any hypothetical other developers when distributing it. (Ideally, don't distribute it at all - it's better to redirect people to the repository where they can get a freshly updated version.)
  • If you fix something or introduce new features, please post a pull request so everyone can benefit. :)/>
  • If you discover "unintended functionality" (cough, bugs, cough), kindly report those on the issue tracker.
  • Don't be shy about contributing. Some help on the issue tracker and documentation, in particular, would be appreciated.
  • On the other hand, please don't use a wildly different code style or anything.
FAQ
(nothing here, but feel free to ask questions)
nutcase84 #2
Posted 14 March 2013 - 11:44 AM
Nice work.
robhol #3
Posted 14 March 2013 - 08:43 PM
Thanks. Now updated with a very brief wiki page - explains how to install and run (although it isn't exactly rocket science, anyway :P/>) and provides a short "recipe" for a basic example program.
CoolisTheName007 #4
Posted 15 March 2013 - 10:25 AM
For anyone with difficulties finding the download button, it's on the right side of the overview page.
One thing I think you could improve is avoiding resuming the computer's coroutine every 0.05 seconds.
cant_delete_account #5
Posted 15 March 2013 - 10:32 AM
Ok, I've been trying to download the source, without doing it file by file. Still figuring out how to do it with bitbucket (ideally I would like to use my github windows client for that…, without installing anything bitbucket related). Maybe you should consider adding an easy download method?
You just use this link:
https://bitbucket.org/robhol/rgui/get/default.zip
Or do:
Downloads tab > Branches > zip
robhol #6
Posted 15 March 2013 - 09:39 PM
Updated main post with generic download link. (Thanks to thesbros)

For the record, there's an obvious download link on the repo's overview page and an explanation on the wiki.. :P/>

By the way, if you use this for something, it'd be nice if you shared a screenshot or two :)/>
Mads #7
Posted 17 March 2013 - 12:08 AM
Very nice work. I'd suggest one thing, though: text formatting. Like, "&6some text&asome other text", etc. That'd be really nice!
InputUsername #8
Posted 18 March 2013 - 03:11 AM
This is amazing, though I think the installation could use some documentation (at least, I couldn't find any); I think it's quite hard to figure out how to get the API(s ?) up-and-running. But gosh, this is great.
robhol #9
Posted 18 March 2013 - 03:29 AM
There's a wiki on the repository, they're both linked *directly* from the main post. :P/>

I'm planning to make it more polished and generally just… easier to deal with, but this should be considered unfinished (hence the alpha/beta notation) as of now.

I'm busy with other stuff than CC/MC now too, so anybody is encouraged to contribute.
gamax92 #10
Posted 23 March 2013 - 06:10 PM
So … I'm trying to even get this setup. Having issues with that.

I saw demotour looked for rgui in rgui/rgui, so moved that from the root to that folder.

Now rgui wants to see redirect, there is no reference to the string "redirect" in any other file.

It also uses robapi, do i load that before hand or what?

EDIT: So redirect is something from Gophers apis. Now it wants util and prototype.

EDIT2: found them, moved them to /rgui/.
Now I get this:
util:19: invalid inherit() arguments
obj: {
  1,
  false,
  0,
  0,
  "root"
}
proto: nil
I have object sitting in /lib/, does it need to be in /rgui?

EDIT3:
Moved /lib to /rgui/lib, now prototype loads a bunch of stuff, demos work.
robhol #11
Posted 23 March 2013 - 08:52 PM
Oh derp, I forgot. I'll make it reference the APIs properly soon. The API is presumed to be loaded already.

All the rgui stuff needs to be in root/rgui/* to work currently - the plugins were just presumed to be loaded. To be clear, the best way to install rgui is take the zip off the repo, and make sure the contents end up in root/rgui, that's what it's meant to do. :P/>

Edit: should be fixed in version 42 and is pushed to the repo now.
gamax92 #12
Posted 24 March 2013 - 03:35 AM
But thats not what its ment to do.
demotour looks for rgui in /rgui/ but tests and demo in /
Extracting it to /rgui gets /rgui/test and /rgui/demo

Moving demo and test to / doesn't even work if demotour is in /rgui because demotour is using relative paths.
It has to be moved to / as well.

Wouldn't it be better to just package it correctly instead? I.E actually making an rgui folder in the zip with all the necessary stuff for rGUI to work?
robhol #13
Posted 24 March 2013 - 06:09 AM
Disregard demotour, they're outdated and have been removed from the repo.
spyman68 #14
Posted 29 March 2013 - 11:00 AM
The downloads don't even work
robhol #15
Posted 29 March 2013 - 11:50 AM
No longer offered.
Cruor #16
Posted 29 March 2013 - 11:52 AM
Locked as requested.