Page 12 of 41
Re: Löve Frames - A GUI Library
Posted: Fri Dec 28, 2012 11:40 pm
by MZ|One
That's what I do. Just to let you know - it would definitely be useful to have this built in Löve Frames already
Re: Löve Frames - A GUI Library
Posted: Mon Dec 31, 2012 8:24 am
by Karai17
Hey Mate, is there any way to align text in a Text Object? A sort of vertical align and horizontal align?
Re: Löve Frames - A GUI Library
Posted: Mon Dec 31, 2012 1:09 pm
by Nikolai Resokav
Karai17 wrote:Hey Mate, is there any way to align text in a Text Object? A sort of vertical align and horizontal align?
Not currently, but this is something that might be added in a future update.
Re: Löve Frames - A GUI Library
Posted: Thu Jan 03, 2013 11:42 pm
by Karai17
Could you explain two more things for me?
1) What would be considered the proper way to make a text object scrollable? I am working on a chat box and I need to be able to [auto]scroll whenever new data is added
2) How would I detect when a particular tab is clicked? I have 3 tabs in a tab object and when I click on each tab, a flag needs to be set.
Thank you for your assistance and patience while I learn how to use this amazing library <3
Re: Löve Frames - A GUI Library
Posted: Fri Jan 04, 2013 2:44 am
by Nikolai Resokav
Karai17 wrote:Could you explain two more things for me?
1) What would be considered the proper way to make a text object scrollable? I am working on a chat box and I need to be able to [auto]scroll whenever new data is added
The easiest way would be to create a list object and then add each text object to the list. You can make the list scroll to the it's bottom-most content by doing this: list:SetAutoScroll(true)
Karai17 wrote:
2) How would I detect when a particular tab is clicked? I have 3 tabs in a tab object and when I click on each tab, a flag needs to be set.
The tab button currently doesn't support this feature. However, your question gives me an idea to add optional arguments for callback functions when creating a new tab. So essentially, you could have custom functions that would run when each tab is activated or deactivated. I'll see about adding this feature soon, possibly within a few updates.
Karai17 wrote:
Thank you for your assistance and patience while I learn how to use this amazing library <3
No problem. Let me know if you have any more questions.
Re: Löve Frames - A GUI Library
Posted: Thu Jan 10, 2013 1:25 am
by bizcaus
Are you developing this on Windows/Linux? I am having some issues using it on OSX.
For example running the "demo" I get the error:
Code: Select all
Error
libraries/loveframes/objects/frame.lua:189: attempt to index local 'skin' (a nil value)
Traceback
libraries/loveframes/objects/frame.lua:189: in function 'draw'
libraries/loveframes/objects/base.lua:58: in function 'draw'
libraries/loveframes/init.lua:104: in function 'draw'
main.lua:29: in function 'draw'
[C]: in function 'xpcall'
I also had to add this code surrounding line 53 of skins.lua or else it would crash saying it couldn't decode the image:
After all that when I get the game to run the buttons appear white
- z1ff1l.jpg (44.19 KiB) Viewed 554 times
but when I hover over the button it seems alright
- jusZwl.jpg (38.9 KiB) Viewed 554 times
Thanks!
-bizcaus
Re: Löve Frames - A GUI Library
Posted: Sun Apr 28, 2013 11:49 am
by ixjf
I was able to cut your code in half, you put too many spaces.
Re: Löve Frames - A GUI Library
Posted: Sun Apr 28, 2013 10:39 pm
by xXxMoNkEyMaNxXx
Readability is more important than file size. (I'm talking about readability...? ¬_¬) Large volumes of code are most likely one of the easiest things to compress.
Re: Löve Frames - A GUI Library
Posted: Mon Apr 29, 2013 5:50 pm
by ixjf
You don't need a space in every single scope to be able to read the code, my code is perfectly readable without these spaces (the only down side is that I haven't commented it, but it's just for personal use anyway).
Re: Löve Frames - A GUI Library
Posted: Wed May 01, 2013 5:12 am
by hryx
Whoa, holy fuck, this is beautiful. I wish I'd seen this a month ago when I started my level editor. (Still, I am quite happy with
Quickie.) I'd love to dive into the code for this when I have time.
Very nice work, Nikolai!