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:
Post
by Bambo » Thu Jun 02, 2011 7:52 pm
Hey there seems to be a problem with Goo textinput's
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:
Post
by Bambo » Thu Jun 02, 2011 8:11 pm
Any ideas?
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
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:
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.
legendman3
Citizen
Posts: 68 Joined: Sun Jan 22, 2012 8:29 pm
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.
Lap
Party member
Posts: 256 Joined: Fri Apr 30, 2010 3:46 pm
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.
A-lox
Prole
Posts: 43 Joined: Sun Apr 10, 2022 1:58 am
Post
by A-lox » Fri Aug 12, 2022 9:50 pm
the site is down
togFox
Party member
Posts: 828 Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia
Post
by togFox » Sat Aug 13, 2022 2:06 am
Just double checking you noticed you bumped a 10 year old thread? I'd be surprised if the site was up.
zorg
Party member
Posts: 3468 Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:
Post
by zorg » Sat Aug 13, 2022 5:04 am
Necroposting aside, the github does include the docs:
https://github.com/perky/Goo/tree/master/docs .
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Users browsing this forum: No registered users and 4 guests