Page 5 of 6
Re: Unnamed GUI library
Posted: Sat Jul 23, 2011 1:45 pm
by Trappingnoobs
Robin wrote:Trappingnoobs wrote:That's what I'm doing... Inheriting is the same as subclassing; everything from class A is put into class B if class B asks for it.
Not what I meant. You could make a class called Object which implements the event system. Then you let all the other classes subclass Object and voilà: one free event system.
Yeah that's what I am doing..
Code: Select all
Class "GUIElement" {
General_GUI_properties
Event_stuff
}
Class "Checkbox" ({Checkbox properties}, {GUIElement})
If you're just looking at the old .love, every element has every event (Because of that problem; they were all refferencing the same event; I assumed that making it local to the object fixed it, so I just did a workaround and did it in every object. Once I'd fixed the tables-don't-clone problem, I moved them all to the main GUI class.), but in the version I'm editing right now, I moved them all to GUIClassDecleration.lua.
And checkbox automatically has "Event_stuff" and "General_GUI_Properties"- The only events inside Checkbox will just be it's own ones that no other elements have.
Robin wrote:Trappingnoobs wrote:I'm probably wrong.
Yes, you are.
I don't want to make the tables in the constructor (Assuming you're reffering to the optional load function that is auto-called when the class is instanced) because that's too limiting. The class system is primarily included due to the GUI using it- The person who 'installs' the GUI stuff into their game doesn't necessarily need to make their own classes, and if they did, I can't think why they'd want a class that refferences itself.
Re: LoveGUI - RELEASED!
Posted: Sun Jul 24, 2011 8:47 pm
by Trappingnoobs
I heard we're allowed to double post after 24 hours; and this question wouldn't get noticed unless I replied;
Are we allowed to make a wiki page? If not; can we make user subpages for it? It'd be easier than me making hundreds of html documents and updating every single one when I did something.
I released, by the way. I've also got dropdown boxes and 'TextCheckBox' (Basically a box with a checkbox and some text in, good for documenting a checkbox), fully working. They'll be released in a few days once I get a proper demo up and running
Re: LoveGUI - RELEASED!
Posted: Sun Jul 24, 2011 10:20 pm
by thelinx
Trappingnoobs wrote:Are we allowed to make a wiki page?
Please do!
Re: LoveGUI - RELEASED!
Posted: Sun Jul 24, 2011 10:26 pm
by Trappingnoobs
thelinx wrote:Trappingnoobs wrote:Are we allowed to make a wiki page?
Please do!
In the main wiki namespace though?
Re: LoveGUI - RELEASED!
Posted: Sun Jul 24, 2011 10:41 pm
by TechnoCat
Trappingnoobs wrote:In the main wiki namespace though?
Just replicate what you see on these library pages:
http://love2d.org/wiki/Category:Libraries
Re: LoveGUI - RELEASED!
Posted: Mon Jul 25, 2011 12:15 am
by thelinx
Trappingnoobs wrote:
In the main wiki namespace though?
You should probably try to keep it to one page.
Re: LoveGUI - RELEASED!
Posted: Mon Jul 25, 2011 10:07 pm
by Trappingnoobs
Decide name is 'EGS' (Easy GUI System)
it's on
http://love2d.org/wiki/Easy_GUI_System
I also added:
DropDownBoxes which work awesomely but are realy efficient, but I've already made my copy about 7x more efficient, and I'll reupload it to github in a day or two.
You now HAVE to pass in time to both GUIUpdate and GUIDraw. It's for caption and stuff. I added a few other things too.
Another object I added is TextCheckBox (Or something like that, check /GUIElements and see what it's called), which is essentialy a checkbox with text. I did include an example of both that and dropdownbox in the new main.lua.
Re: EGS (Easy GUI System)
Posted: Tue Jul 26, 2011 9:04 am
by T-Bone
Pics or it didn't happen.
Re: EGS (Easy GUI System)
Posted: Thu Jul 28, 2011 9:00 am
by Trappingnoobs
T-Bone wrote:Pics or it didn't happen.
Won't be pics anytime soon, sorry. Got either glandular fever or quinsy. Having a bloodtest tomorrow and if it's quinsy I need an operation to get rid of it but I don't know what that consists of, so I don't know what to expect tbh. (Could be tonsilitus but it's lasted out nearly three weeks against antibiotics so I doubt that).
The example main.lua and the 'oldmain.lua' file have loads of examples you can look at.
Re: EGS v2 - Screenshots! Redesign! (Easy GUI System)
Posted: Sun Aug 21, 2011 5:13 pm
by Trappingnoobs
v2!
Changelog:
- Almost completely rewrote everything.
- No longer uses love.graphics.line, too antialised and ugly
- Borders now look a lot cleaner
- Shading amount is now customisable
- captions are now called toolTips and are more customisable
- Slider
- TextButton
- Checkbox
- Screenshots!