• One last Derma question for a long time (Hopefully...)
    7 replies, posted
Ok, my last question and this project is done and hopefully I will have learned enough about derma to not have to come back here for help again! Every derma frame/panel I have tried using captures the mouse and does not let the player move / continue as if the frame were not there.. How do I stop it from making the panel active on the player and just show up without interfeiring with gameplay?
Why'd you make another thread about the same thing? Just ask your questions in the same thread. I'm guessing you'd disable the Pop up thing.
Because this is referring to a different problem, just the same script? I disable MakePopup, and it does not display at all. Here is my code... [lua] --Declare the Panel local DermaPanel = vgui.Create("DFrame") ... -- Size of the frame DermaPanel:SetSize(width,50) --Start the frame off the screen DermaPanel:SetPos(ScrW(),100) --Title of Frame DermaPanel:SetTitle("Notice:") --Make some general Settings changes DermaPanel:SetDraggable(false) -- Don't allow drag DermaPanel:SetVisible(true) -- Make screen visible DermaPanel:ShowCloseButton(false) -- Show the close buttaon? DermaPanel:SetMouseInputEnabled(false) DermaPanel:SetKeyboardInputEnabled(false) DermaPanel:MakePopup() -- Show the frame DermaPanel:SetDeleteOnClose(true)--Delete the frame when we are done DermaPanel:SetScreenLock(false) ... --Animate and make the frame pretty DermaPanel.Paint = function() draw.RoundedBox( 8, 0, 0, PanelPosition, 75, Color( 0, 100, 100, 100 ) ) DermaPanel:SetPos(PanelPosition, 75) end ... [/lua] NOTE: the ... is a placeholder for other, non relevant code.
Use [lua] tags. [editline]8th March 2011[/editline] And, do you even declare what DermaPanel:SetPos([b]PanelPosition[/b], 75)
Oh sorry, I will edit it... And yes, as I said the ... is a placeholder for other, non relevant code. Or any code that is not relevant to the visibility of the frame.
Oh sorry.
[b][url=http://wiki.garrysmod.com/?title=Gui.EnableScreenClicker]Gui.EnableScreenClicker [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Then figure try to figure out what to do with this :)
panel:SetVisible(true) gui.EnableScreenClicker(true)
Sorry, you need to Log In to post a reply to this thread.