Löve Frames - A GUI Library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Löve Frames - A GUI Library

Post by KingRecycle »

Yeah I forgot about unzipping the .love file. Haven't played with Love in awhile.

Do you know what the issue could be that when I use the text control that it stops drawing tiles and player on the screen?
I use the Advance Tile Loader library for the tiles.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Löve Frames - A GUI Library

Post by Kadoba »

Can you post a .love?

Edit: Nevermind. I see you posted one in the Advanced Tiled Loader thread.
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Löve Frames - A GUI Library

Post by KingRecycle »

Here is one. Press M and it will pop up with a panel with text on it.
Attachments
Test2.love
(286.83 KiB) Downloaded 346 times
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Löve Frames - A GUI Library

Post by Kadoba »

It looks like something in loveframes.draw() sets the drawing color to black. If you put the line "love.graphics.setColor(255,255,255,255)" at the very top of your love.draw function then you can reset the color to white and things will draw correctly..
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Löve Frames - A GUI Library

Post by KingRecycle »

Kadoba wrote:It looks like something in loveframes.draw() sets the drawing color to black. If you put the line "love.graphics.setColor(255,255,255,255)" at the very top of your love.draw function then you can reset the color to white and things will draw correctly..
Thanks a lot Kadoba. That did fix it. I appreciate the help.
User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Löve Frames - A GUI Library

Post by Nikolai Resokav »

Glad to see your color issue is resolved. Also, are you still having that button problem?
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Löve Frames - A GUI Library

Post by Kadoba »

Nikolai. It's probably a good idea to save the drawing color at the start of loveframes.draw() and then set it back at the end.
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Löve Frames - A GUI Library

Post by KingRecycle »

Nikolai Resokav wrote:Glad to see your color issue is resolved. Also, are you still having that button problem?
The button problem I fixed. I was calling the function incorrectly.
User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Löve Frames - A GUI Library

Post by Nikolai Resokav »

Kadoba wrote:Nikolai. It's probably a good idea to save the drawing color at the start of loveframes.draw() and then set it back at the end.
Perhaps I'll add that in the next commit.
KingRecycle wrote:The button problem I fixed. I was calling the function incorrectly.
Ah, well I'm glad you got it working!
thekingdf
Prole
Posts: 9
Joined: Thu Apr 26, 2012 6:31 pm

Re: Löve Frames - A GUI Library

Post by thekingdf »

Im trying to remove all the objects on the screen like this
for key, value in pairs(loveframes.base.children) do
value:Remove()
end
But this is only removing 1 of each type of object. So if theres 2 buttons it will only remove 1 of them.
I have no idea why.

Also, you got any ideas on how to stop the textbox from destroying my FPS when theres a lot of text inside it?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests