Page 2 of 3
Re: loveui 0.7 (just started)
Posted: Fri Jul 08, 2011 11:08 am
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.
Re: loveui 0.7 (just started)
Posted: Fri Jul 08, 2011 11:20 am
by Robin
And there is a typo in your README.markdown, line 31:
should be
Why is that test.html in there, btw?
Re: loveui 0.7 (just started)
Posted: Fri Jul 08, 2011 1:02 pm
by appleide
Robin wrote:And there is a typo in your README.markdown, line 31:
should be
Why is that test.html in there, btw?
Thanks. Corrected for next version.
I use it to figure out how styles work in html/css and copy it.
Re: loveui 0.7 (just started)
Posted: Sat Jul 09, 2011 5:49 pm
by T-Bone
Totally works!
Look forward to seeing more of this.
Re: loveui 0.7 (just started)
Posted: Sat Jul 09, 2011 8:39 pm
by ishkabible
very nice, why dose the background flash frantically though?
Re: loveui 0.7 (just started)
Posted: Sun Jul 10, 2011 9:18 am
by appleide
ishkabible wrote:very nice, why dose the background flash frantically though?
No idea. Try turning it off.
Re: loveui 0.7 (just started)
Posted: Wed Jul 20, 2011 10:26 pm
by chrism
This looks promising; looking forward to more widgets and tag implementation.
Re: loveui 0.7 (just started)
Posted: Wed Jul 27, 2011 7:48 pm
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.
Re: loveui 0.7 (just started)
Posted: Wed Jul 27, 2011 10:42 pm
by GijsB
I just had an epilectic attack because the background...
JK
Re: loveui 0.7 (just started)
Posted: Fri Jul 29, 2011 1:34 pm
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.