loveui 0.7 (just started)

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 0.7 (just started)

Post by appleide »

Ensayia wrote:For me, the background flashes black and white very rapidly at a nauseating pace. Something might be wrong...
o.0 I used love's function to set the background color. Try comment out the first line of love.load function to remove the background.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: loveui 0.7 (just started)

Post by Robin »

And there is a typo in your README.markdown, line 31:

Code: Select all

    widget:1add(style1)
should be

Code: Select all

    widget1:add(style1)
Why is that test.html in there, btw?
Help us help you: attach a .love.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: loveui 0.7 (just started)

Post by appleide »

Robin wrote:And there is a typo in your README.markdown, line 31:

Code: Select all

    widget:1add(style1)
should be

Code: Select all

    widget1:add(style1)
Why is that test.html in there, btw?
Thanks. Corrected for next version.

:oops: I use it to figure out how styles work in html/css and copy it.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: loveui 0.7 (just started)

Post by T-Bone »

Totally works! :nyu: Look forward to seeing more of this.
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: loveui 0.7 (just started)

Post by ishkabible »

very nice, why dose the background flash frantically though?
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: loveui 0.7 (just started)

Post by appleide »

ishkabible wrote:very nice, why dose the background flash frantically though?
No idea. Try turning it off.
chrism
Prole
Posts: 21
Joined: Wed May 25, 2011 6:17 pm

Re: loveui 0.7 (just started)

Post by chrism »

This looks promising; looking forward to more widgets and tag implementation.
chrism
Prole
Posts: 21
Joined: Wed May 25, 2011 6:17 pm

Re: loveui 0.7 (just started)

Post by chrism »

I believe that the reason people are getting flashing and corruption (myself included) is that love.graphics.setScissor() is being called in the widgets' draw routines, but it is not being disabled/reset to its previous value afterwards. So, you end up with only the portion of the screen that is covered by widgets getting updated, and everything else is garbage.

In the sample code, I added "love.graphics.setScissor()" after the context:draw() call in love.draw() and the flickering/corruption went away. Ideally, each widget should get the current scissor value before changing it, perhaps modify its own area to comply with the current settings, and then restore it after drawing to the previous setting.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: loveui 0.7 (just started)

Post by GijsB »

I just had an epilectic attack because the background...

JK
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: loveui 0.7 (just started)

Post by appleide »

chrism wrote:I believe that the reason people are getting flashing and corruption (myself included) is that love.graphics.setScissor() is being called in the widgets' draw routines, but it is not being disabled/reset to its previous value afterwards. So, you end up with only the portion of the screen that is covered by widgets getting updated, and everything else is garbage.

In the sample code, I added "love.graphics.setScissor()" after the context:draw() call in love.draw() and the flickering/corruption went away. Ideally, each widget should get the current scissor value before changing it, perhaps modify its own area to comply with the current settings, and then restore it after drawing to the previous setting.
Good point. Tried to add a fix. See first page for download.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests