Hi, this is another thing for my "search" release, I have created the following (which does work)
if SERVER then return end
if CLIENT then
function DermaHTML()
local HTMLDerma = vgui.Create( "DFrame" )
HTMLDerma:SetSize( ScrW() * 0.9, ScrH() * 0.9 )
HTMLDerma:Center()
HTMLDerma:SetTitle( "Tom's HTML Menu" )
HTMLDerma:SetSizable( false )
HTMLDerma:SetDraggable( true )
HTMLDerma:ShowCloseButton( true )
HTMLDerma:MakePopup()
local HTMLTest = vgui.Create("HTML", HTMLDerma )
HTMLTest:StretchToParent(5, 25, 5, 5)
HTMLTest:OpenURL("http://www.google.com")
end
concommand.Add( "+html", DermaHTML )
end
which will bring up a derma menu displaying google, now my question is how would I go about doing this:
If the user has (example) "search_menu derma" set then it will use the derma menu instead of steam ui (I know how to do this part)
but how would I get the value from ulx to send to derma (when the player runs the ulx search command)