LoveUI for Love 0.5.0

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield

Post by appleide »

Thanks Kaze :) I'll issue a new version in a couple of days.

EDIT:

After using my own class system for so long I've noticed some imperfections with it. So after I publish the next version with a new element "ScrollView", I'm going to fix up my class system in a seperate project, thus pausing this one for a while. And later on I might have to port things too.

I originally started upon the task of creating a gui for use in a rather complex RTS game. I seem to be going away from my goal rather than towards it..... :/ I started with an RTS demo, then a gui, gui remake, now I'm just going to be doing classes....

If you feel like it download the demo. I was at this stage in July. Needs java
http://appleide.sitesled.com/SpaceFare_Mac.zip
http://appleide.sitesled.com/SpaceFare_Windows.zip
http://appleide.sitesled.com/SpaceFare_Linux.zip

Go back to first page of this thread and thats where I am now. :/
Don't laugh.


What happened was that given the same number of ships you will never be able to win. Your ability to control your ships is just too crap, because the gui widgets interfacing between you and your fleets are too crap. The AI has full control.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield

Post by appleide »

Said class system in this link:
http://love2d.org/forum/viewtopic.php?f=5&t=633

Umm I'm having trouble scaling scroll bar coordinates... I am postponing this last widget indefinitely.

I will first port everything I have done so far to the new classes before continuing on. (Porting after I've finished testing...)
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield

Post by appleide »

Time for a release... everything re-implemented. Lots of code copying, so maybe some erroneous code, or bugs caused by erroneous code...

Currently has button, textfield, and an un-finished scrollView. omitting panel for now.

Unfinished, cannot be used , except for button, textfield, and these may have bugs I havent found yet. Bug elimination is not a priority yet.

I'm releasing because the scrollview will imminently be finished, but its 1 am and I got an mid-semester exam tomorrow.
Attachments
LoveUI(demo).love
(71.13 KiB) Downloaded 220 times
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield

Post by appleide »

ScrollView finished...
Attachments
Picture 3.png
Picture 3.png (8.46 KiB) Viewed 3905 times
LoveUI(alpha).love
(81.67 KiB) Downloaded 220 times
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield, scrollVIew

Post by appleide »

I have implemented a prototype of some sort of listView. No selection is implemented yet. Just a table of views. (though those views should be able to detect mouse events);

EDIT: update... single selection implemented...
Last edited by appleide on Sun May 03, 2009 5:59 am, edited 2 times in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LoveUI... has button, Textfield, scrollVIew

Post by Robin »

Looks flashy.

One minor suggestion: the scrollView might look better if the darker rows were, well... not so dark. Maybe more like the background of these forum posts.
Help us help you: attach a .love.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield, scrollVIew

Post by appleide »

I agree Robin. I've uploaded newer version in my post above with the lighter background. :)
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LoveUI... has button, Textfield, scrollVIew

Post by Robin »

The new version looks great. I thought there was some kind of bug that crashed the demo if you clicked on the ListView, but it actually appears to be a quick&dirty "message box".
Help us help you: attach a .love.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LoveUI... has button, Textfield, scrollVIew

Post by Robin »

Played around a bit, and I came up with the following modified version of the demo*:
main.lua
(2.07 KiB) Downloaded 248 times
I think this one shows more of the capabilities LoveUI already has, even though it's still in alpha.

*I am not to be held liable for any blown up servers
Help us help you: attach a .love.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: LoveUI... has button, Textfield, scrollVIew

Post by appleide »

Nice... but Sydney server1 happened to be my computer... :/ :x

After changing the data you could call aListView:reloadData(), which will fetch the number of rows again and so you don't need the "or '' " bit in the viewForRow function.
There was no way you could've known that though.

I also found a bug when you select the last index and then delete it, it'll crash soon after because the index doesn't exist anymore. I've changed it so it resets to nil.
Attachments
LoveUI(alpha).love
(85.17 KiB) Downloaded 214 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests