Page 5 of 41
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 1:50 pm
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.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 2:03 pm
by Kadoba
Can you post a .love?
Edit: Nevermind. I see you posted one in the Advanced Tiled Loader thread.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 2:21 pm
by KingRecycle
Here is one. Press M and it will pop up with a panel with text on it.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 2:44 pm
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..
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 4:29 pm
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.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 5:11 pm
by Nikolai Resokav
Glad to see your color issue is resolved. Also, are you still having that button problem?
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 7:13 pm
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.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 8:10 pm
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.
Re: Löve Frames - A GUI Library
Posted: Fri May 25, 2012 8:32 pm
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!
Re: Löve Frames - A GUI Library
Posted: Sun May 27, 2012 3:41 pm
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?