Page 2 of 6
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 8:20 pm
by Robin
Trappingnoobs wrote:I mean you'd need to calculate the width of every letter, put it in a table or something, and calculate how much to move the text.
You could look at how LoveUI does things.
Trappingnoobs wrote:Then you'd need to make it so that it only shows a particular substring,
Also, take a look at
love.graphics.setScissor.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 8:28 pm
by kraftman
Feel free to take a look at my code for LuaEdit, its very messy but contains frames that resize to fit the text they contain.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 8:33 pm
by Trappingnoobs
kraftman wrote:Feel free to take a look at my code for LuaEdit, its very messy but contains frames that resize to fit the text they contain.
I can do that; my problem is making text scroll if you get too far into the textbox.
For example, look at an ordinary HTML textinput, if you type all the way to the end, it starts shifting the text to the left. That's what I'd worry about primarily.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 8:34 pm
by Trappingnoobs
Robin wrote:
Trappingnoobs wrote:Then you'd need to make it so that it only shows a particular substring,
Also, take a look at
love.graphics.setScissor.
Thanks, that looks like it'd work. I'll work on it as soon as I figure out why my class system is messing up and not inheriting properly :L
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 8:45 pm
by Trappingnoobs
Trappingnoobs wrote:Robin wrote:
Trappingnoobs wrote:Then you'd need to make it so that it only shows a particular substring,
Also, take a look at
love.graphics.setScissor.
Thanks, that looks like it'd work. I'll work on it as soon as I figure out why my class system is messing up and not inheriting properly :L
I'm getting a realy wierd bug. I'm not ready to release the source yet, can anyone fix it for me? If so, I'll message you a .love and details.
It'd be greatly appreciated.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 9:22 pm
by bartbes
Do not double post, let alone triple post.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 9:27 pm
by Ensayia
Trappingnoobs wrote:
I'm getting a realy wierd bug. I'm not ready to release the source yet, can anyone fix it for me? If so, I'll message you a .love and details.
It'd be greatly appreciated.
If somebody fixes if for you, how will you learn from it? We can attempt to help you fix the bug if you provide the suspect code. Posting it here for everyone to see is a much easier way of getting help than trying to ask people on a one-on-one basis.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 9:42 pm
by Trappingnoobs
Ensayia wrote:Trappingnoobs wrote:
I'm getting a realy wierd bug. I'm not ready to release the source yet, can anyone fix it for me? If so, I'll message you a .love and details.
It'd be greatly appreciated.
If somebody fixes if for you, how will you learn from it? We can attempt to help you fix the bug if you provide the suspect code. Posting it here for everyone to see is a much easier way of getting help than trying to ask people on a one-on-one basis.
I wasn't ready to release the source, but if you think it'd be better; I'll edit this post with a mediafire link. I'm not sure how to use the forum uploading.
bartbes wrote:Do not double post, let alone triple post.
Sorry, I thought I was editing, not posting. My mistake, if there's still delete and edit buttons on them (Some forums remove them for some reason after some time), I'll merge them.
Edit;
Can't merge. Why does the delete button disapear ?
Sorry for the triple post though :-(
Oh, there's the upload button
The problem is in class.lua somewhere.
You can see what's going wrong if you trigger one of the button's events (Hover them or something)- It triggers events for ALL instances for some reason. It's definitly my class file going wrong somewhere.
If you're wondering what part of my code is for, just ask.
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 9:57 pm
by GijsB
trappingnoobs, you can only delete your last post in a thread.
so you have the remove al your post after a post, to remove a post xD
Re: Unnamed GUI library
Posted: Fri Jul 22, 2011 9:59 pm
by Trappingnoobs
GijsB wrote:trappingnoobs, you can only delete your last post in a thread.
so you have the remove al your post after a post, to remove a post xD
I did try. Once you've posted over it, it doesn't let you :-(