EGS v2 - Screenshots! Redesign! (Easy GUI System)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Unnamed GUI library

Post 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.
Help us help you: attach a .love.
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: Unnamed GUI library

Post 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.
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: Unnamed GUI library

Post 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.
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: Unnamed GUI library

Post 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
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: Unnamed GUI library

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Unnamed GUI library

Post by bartbes »

Do not double post, let alone triple post.
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Unnamed GUI library

Post 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.
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: Unnamed GUI library

Post 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.
Attachments
BrokenGUI.love
(9.46 KiB) Downloaded 283 times
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Unnamed GUI library

Post 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
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: Unnamed GUI library

Post 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 :-(
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests