Author Topic: CUSTOM ULX STUFF  (Read 1770 times)

0 Members and 1 Guest are viewing this topic.

Offline Professor_Smiley

  • Newbie
  • *
  • Posts: 45
  • Karma: -24
CUSTOM ULX STUFF
« on: May 07, 2015, 10:10:34 AM »
I want to make a ulx thing that you can go to !menu and then settings tab then there will be another tab next to 'client' tab and in that tab some stuff.
first how to make this tab?
sorry im a lua noob

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: CUSTOM ULX STUFF
« Reply #1 on: May 11, 2015, 11:02:55 AM »
You can create a new file in <your addon>/lua/ulx/xgui/settings/<whatever.lua>, and use the already existing client.lua as a starting point:
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/xgui/settings/client.lua

(The important lines are Line 4 and Line 57 -- Those two lines should be all you need to get something started.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Professor_Smiley

  • Newbie
  • *
  • Posts: 45
  • Karma: -24
Re: CUSTOM ULX STUFF
« Reply #2 on: May 11, 2015, 11:20:29 AM »
Hello
I don't really understand much, is there a video tutorial on how to sort that code out

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: CUSTOM ULX STUFF
« Reply #3 on: May 11, 2015, 04:23:35 PM »
You could use URS as a base (I only suggest because it's a bit more simple).
https://github.com/Aaron113/urs/blob/master/lua/ulx/xgui/settings/cl_urs_gui.lua

As far as a video, I do not know of any video.  There also isn't a lot of documentation, but I'm sure it'll get better with time.  In the mean time, just try to narrow down your questions so they can be answered easier.
« Last Edit: May 11, 2015, 04:25:16 PM by Aaron113 »

Offline Professor_Smiley

  • Newbie
  • *
  • Posts: 45
  • Karma: -24
Re: CUSTOM ULX STUFF
« Reply #4 on: May 14, 2015, 08:51:42 AM »
Fine. I bet someone will steal my idea anyway.
I wanna make chat tags that are customizable in the xgui menu. Thats my idea.