Ulysses
General => Developers Corner => Topic started by: LuaTenshi on November 04, 2011, 08:28:58 PM
-
local textbox = vgui.Create("TextEntry", DermaPanel)
textbox:SetPos( 5,290 )
textbox:SetTall( 20 )
textbox:SetWide( 150 )
textbox:SizeToContents()
textboxval = textbox:GetValue()
local button = vgui.Create( "DButton", DermaPanel )
button:SizeToContents()
button:SetPos( 5,310 )
button:SetSize( 150, 20 )
button:SetText( "Cleanup!" )
button:SetConsoleCommand( "ups_clnstr".. textboxval )
Honestly I have no idea but textboxval returns nil even tho I am getting a value from user input...
Is LUA broken in Gmod or did I some how manage to break my client side LUA?
-
Sorry, I've no experience with Derma.
I tried to poke around the garrysmod.com wiki, but it kept timing out/acting slow.
I found something about a DTextEntry.GetValue, but thats when everything started crashing.
-
local textbox = vgui.Create("TextEntry", DermaPanel)
Are you sure you didn't mean to create a "DTextEntry"?
-
local textbox = vgui.Create("TextEntry", DermaPanel)
Are you sure you didn't mean to create a "DTextEntry"?
That. I was doing something like this earlier too. Stickly was kind enough to help me via steam chat.
-
I found something about a DTextEntry.GetValue, but thats when everything started crashing.
Me, Aaron, Stickly man blah blah Dtextentry blah blah
That.
Glad I guessed right. Shame Gmod wiki is/was so slow as to not help me, with my lack of Derma experience, help you more.
Glad we could help.