• Print

Author Topic: Sending a ulx value to a derma menu  (Read 4173 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
Sending a ulx value to a derma menu
« on: June 08, 2015, 02:11:53 am »
Hi, this is another thing for my "search" release, I have created the following (which does work)
Code: Lua
  1. if SERVER then return end
  2. if CLIENT then
  3.        
  4. function DermaHTML()
  5.  
  6.         local HTMLDerma = vgui.Create( "DFrame" )
  7.         HTMLDerma:SetSize( ScrW() * 0.9, ScrH() * 0.9 )
  8.         HTMLDerma:Center()
  9.         HTMLDerma:SetTitle( "Tom's HTML Menu" )
  10.         HTMLDerma:SetSizable( false )
  11.         HTMLDerma:SetDraggable( true )
  12.         HTMLDerma:ShowCloseButton( true )
  13.         HTMLDerma:MakePopup()
  14.  
  15.         local HTMLTest = vgui.Create("HTML", HTMLDerma )
  16.                 HTMLTest:StretchToParent(5, 25, 5, 5)
  17.                 HTMLTest:OpenURL("http://www.google.com")
  18.         end
  19.         concommand.Add( "+html", DermaHTML )
  20. 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)
« Last Edit: June 08, 2015, 02:38:47 am by Tomzen »
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
Re: Sending a ulx value to a derma menu
« Reply #1 on: June 08, 2015, 05:35:29 pm »
Oh and if it makes any difference, one file is in the /sh directory and this one is in the /autorun
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

  • Print