|
|
@ -13,13 +13,14 @@ function menu.open( dt ) |
|
|
|
local f = vgui.Create( "DFrame" ) |
|
|
|
local f = vgui.Create( "DFrame" ) |
|
|
|
f:SetTitle( "Character Menu" ) |
|
|
|
f:SetTitle( "Character Menu" ) |
|
|
|
f:SetSize( sw, sh ) |
|
|
|
f:SetSize( sw, sh ) |
|
|
|
|
|
|
|
f:MakePopup() |
|
|
|
|
|
|
|
|
|
|
|
local txt = vgui.Create( "DTextEntry" ) |
|
|
|
local txt = vgui.Create( "DTextEntry", f ) |
|
|
|
txt:SetText( "Enter name here" ) |
|
|
|
txt:SetText( "Enter name here" ) |
|
|
|
txt:SizeToContents() |
|
|
|
txt:SizeToContents() |
|
|
|
txt:SetPos( 100, 100 ) |
|
|
|
txt:SetPos( 100, 100 ) |
|
|
|
|
|
|
|
|
|
|
|
local b = vgui.Create( "DButton" ) |
|
|
|
local b = vgui.Create( "DButton", f ) |
|
|
|
b:SetText( "Create Char" ) |
|
|
|
b:SetText( "Create Char" ) |
|
|
|
b:SizeToContents() |
|
|
|
b:SizeToContents() |
|
|
|
b.DoClick = function() |
|
|
|
b.DoClick = function() |
|
|
|