• Print

Author Topic: Derma buttons issue with new ulx  (Read 4218 times)

0 Members and 1 Guest are viewing this topic.

Offline jobforacowboy1

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Derma buttons issue with new ulx
« on: March 09, 2016, 07:09:32 pm »
Hello,

I've been using my derma buttons in my server for a while now and i've never had any issues with the ulx, untill I updated to the latest ulx. I use two simple derma buttons on my server that looks like this:
Code: Lua
  1.  
  2. local DermaButton = vgui.Create( "DButton" )    // Create the button
  3. DermaButton:SetParent( DermaPanel )                      
  4. DermaButton:SetText( "Mute" )                          
  5. DermaButton:SetPos( 25, 50 )                                   
  6. DermaButton:SetSize( 70, 30 )                            
  7. DermaButton.DoClick = function()                       
  8. RunConsoleCommand( "mute_menu" )                       
  9. end
  10.  
  11.  
  12. local DermaButton = vgui.Create( "DButton" )    // Create the button
  13. DermaButton:SetParent( DermaPanel )                    
  14. DermaButton:SetText( "Third Person" )                            
  15. DermaButton:SetPos( 25, 75 )                                   
  16. DermaButton:SetSize( 70, 30 )                            
  17. DermaButton.DoClick = function()                         
  18. RunConsoleCommand( "say","!3p" )                       
  19. end
  20.  

Now the buttons still shows but when I try and click on them, nothing happens. I have the derma buttons in a cilentside file in the game mode. I was wondering if anyone could point me in the right direction where I still can use the new ulx with my derma buttons?

Thanks,

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: Derma buttons issue with new ulx
« Reply #1 on: March 09, 2016, 07:15:42 pm »
ULX should in no way conflict with custom VGUI scripts you have made.

  • Print