• Need Help With DMenu
    4 replies, posted
Just for some quick context, I'm trying to make a relatively simple admin menu for practice and fun. Anyways, I've noticed that once the DMenu I make is closed through clicking on one of the options or clicking outside of the menu, it doesn't reopen. I've looked everywhere, but unfortunately, there's only some documentation on DMenu itself, and no video tutorials as far as I know. plyList.OnRowSelected = function(panel,line) -- plyList is a DListView with all online players local pmenu = DermaMenu() local kill = pmenu:AddOption("Kill",function()RunConsoleCommand("killplayer",plySelected)end) kill:SetIcon("icon16/bomb.png") local kick = pmenu:AddOption("Kick",function()RunConsoleCommand("kickplayer",plySelected)end) kick:SetIcon("icon16/user_delete.png") local ban = pmenu:AddOption("Ban",function() -- Going to add to this later, it doesn't create any errors so don't worry about it local length = vgui.Create("DNumSlider",rpanel) -- rpanel is a panel on the right side of a DFrame length:SetPos(10,25) length:SetSize(sizeX/2-30,sizeY-60) length:SetText("Time of Ban (minutes): ")  length:SetMin(1) length:SetMax(256) length:SetDecimals(0) end) pmenu:Open() end inb4 the answer is really obvious because i have 2 brain cells xd
Override this function (just remove CloseDermaMenus) on each option (DMenu/AddOption returns a new panel)
Sorry if I sound stupid, but what do you mean by override?
https://pastebin.com/A0AkDKje
This works, thanks!
Sorry, you need to Log In to post a reply to this thread.