Goo: Gui and Animation library.

Showcase your libraries, tools and other projects that help your fellow love users.
Bambo
Prole
Posts: 41
Joined: Thu Mar 24, 2011 8:23 pm
Location: Warrington, England
Contact:

Re: Goo: Gui and Animation library.

Post by Bambo » Thu Jun 02, 2011 7:52 pm

Hey there seems to be a problem with Goo textinput's :cry:

when i try to save the text from the textinput to a variable it just doesn't save.

Code: Select all

	
function Menu:enterState()
	local panel = goo.panel:new()
	panel:setPos( 30, 30 )
	panel:setSize( 200, 200 )
	panel:setDraggable(false)
	panel:showCloseButton(false)
	panel:setTitle( 'Main menu' )
 
	local nick = goo.textinput:new( panel )
	nick:setPos( 10, 20 )
	nick:setText( 'Anon' )
	nick:setSize( 100, 15)
	
	local ip = goo.textinput:new( panel )
	ip:setPos( 10, 45 )
	ip:setText( '127.0.0.1' )
	ip:setSize( 100, 15)
	
	local play = goo.button:new( panel )
	play:setPos( 10, 75 )
	play:setText( 'Play' )
	play:sizeToText()
	play.onClick = function( self, button )
		obj:gotoState('Game')
		nickname = nick:getText()
		ip = ip:getText()
		panel:destroy()
	end	
end

Bambo
Prole
Posts: 41
Joined: Thu Mar 24, 2011 8:23 pm
Location: Warrington, England
Contact:

Re: Goo: Gui and Animation library.

Post by Bambo » Thu Jun 02, 2011 8:11 pm

Any ideas?

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Goo: Gui and Animation library.

Post by bartbes » Thu Jun 02, 2011 8:37 pm

You mean like, you write to a local and it isn't publicly available? Try using unique names.

More importantly, don't bump until a reasonable amount of time has passed, 19 minutes is by no means reasonable.

Bambo
Prole
Posts: 41
Joined: Thu Mar 24, 2011 8:23 pm
Location: Warrington, England
Contact:

Re: Goo: Gui and Animation library.

Post by Bambo » Thu Jun 02, 2011 9:23 pm

Ah im sorry, thanks for the help got it working.

Just so frustrating when something goes wrong and you don't know why.

User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Goo: Gui and Animation library.

Post by legendman3 » Sun Mar 25, 2012 4:46 pm

This is awesomly relevant to my needs. But for the life of me i can not add a new object with out getting a file not found error.

User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: Goo: Gui and Animation library.

Post by Lap » Wed Mar 28, 2012 2:04 pm

legendman3 wrote:This is awesomly relevant to my needs. But for the life of me i can not add a new object with out getting a file not found error.
More descriptive please.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests