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.
Löve Frames - A GUI Library
Re: Löve Frames - A GUI Library
Can you post a .love?
Edit: Nevermind. I see you posted one in the Advanced Tiled Loader thread.
Edit: Nevermind. I see you posted one in the Advanced Tiled Loader thread.
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Löve Frames - A GUI Library
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
Re: Löve Frames - A GUI Library
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..
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Löve Frames - A GUI Library
Thanks a lot Kadoba. That did fix it. I appreciate the help.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..
- Nikolai Resokav
- Party member
- Posts: 140
- Joined: Wed Apr 28, 2010 12:51 am
- Location: United States
Re: Löve Frames - A GUI Library
Glad to see your color issue is resolved. Also, are you still having that button problem?
Re: Löve Frames - A GUI Library
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.
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Löve Frames - A GUI Library
The button problem I fixed. I was calling the function incorrectly.Nikolai Resokav wrote:Glad to see your color issue is resolved. Also, are you still having that button problem?
- Nikolai Resokav
- Party member
- Posts: 140
- Joined: Wed Apr 28, 2010 12:51 am
- Location: United States
Re: Löve Frames - A GUI Library
Perhaps I'll add that in the next commit.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.
Ah, well I'm glad you got it working!KingRecycle wrote:The button problem I fixed. I was calling the function incorrectly.
Re: Löve Frames - A GUI Library
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?
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?
Who is online
Users browsing this forum: No registered users and 5 guests