DermaMenu freezes player movement when opens.
I have this DermaMenu:
[code] local p1_base = vgui.Create( "DFrame") //Menu Frame
p1_base:SetSize(176, 571)
p1_base:SetPos(sWidth-176,sHight-779)
p1_base:SetTitle("Menu Title")
p1_base:SetVisible( true )
p1_base:SetDeleteOnClose(false)
p1_base:ShowCloseButton(false)
p1_base:SetDraggable(false)
p1_base:SetKeyBoardInputEnabled(false)//Should disable Keyboard input to Menu.
p1_base:SetMouseInputEnabled(true)//Should allow Mouse input to Menu.
p1_base:MakePopup(false)[/code]
I want that the player could still move yet be able to interact with the menu with the mouse.
Now could you give me a hint as to where is my mistake here?
I appreciate anyone's help!!
/VashBaldeus
[QUOTE=VashBaldeus;46214470]
[code]p1_base:SetKeyBoardInputEnabled(false)//Should disable Keyboard input to Menu.
p1_base:SetMouseInputEnabled(true)//Should allow Mouse input to Menu.
p1_base:MakePopup(false)[/code][/QUOTE]
[url=http://wiki.garrysmod.com/page/Panel/MakePopup]Panel:MakePopup[/url] doesn't take any arguments.
Move the Panel:MakePopup call to before the SetKeyboardInputEnabled call:
[code]p1_base:MakePopup()
p1_base:SetKeyboardInputEnabled(false)
p1_base:SetMouseInputEnabled(true)[/code]
[QUOTE=!cake;46214505][url=http://wiki.garrysmod.com/page/Panel/MakePopup]Panel:MakePopup[/url] doesn't take any arguments.
Move the Panel:MakePopup call to before the SetKeyboardInputEnabled call:
[code]p1_base:MakePopup()
p1_base:SetKeyboardInputEnabled(false)
p1_base:SetMouseInputEnabled(true)[/code][/QUOTE]
And if I understood what you said, it should allow the player to move using the keyboard but no move the camera..
Sorry, you need to Log In to post a reply to this thread.