• Keyboard Input when using a Panel w/ MakePopup()
    0 replies, posted
Hey everyone, I may just be blind to see what I'm doing wrong here, but if someone could just let know that's be great. Here's the panel. [CODE]lobbypanel = vgui.Create( "Panel" ) lobbypanel:SetPos( 0, 0 ) lobbypanel:SetSize( ScrW(), ScrH() ) lobbypanel:MakePopup() lobbypanel:SetKeyboardInputEnabled( true ) lobbypanel.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 0, 0, 0, 255 ) ) surface.SetMaterial( Material( "droo/lobbybg3.jpg" ) ) surface.SetDrawColor( 255, 255, 255, 255 ) surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() ) end[/CODE] As you can see, I tried using SetKeyboardInputEnabled() and SetKeyBoardInputEnabled() with no luck. When this panel is open, you cannot press escape which the user will obviously need to disconnect, etc. Thanks if you point out my blatantly stupid mistake.
Sorry, you need to Log In to post a reply to this thread.