Ulysses

General => Developers Corner => Topic started by: Professor_Smiley on May 07, 2015, 10:10:34 AM

Title: CUSTOM ULX STUFF
Post by: Professor_Smiley 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
Title: Re: CUSTOM ULX STUFF
Post by: Stickly Man! 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 (https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/xgui/settings/client.lua#L4) and Line 57 (https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/xgui/settings/client.lua#L57) -- Those two lines should be all you need to get something started.
Title: Re: CUSTOM ULX STUFF
Post by: Professor_Smiley 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
Title: Re: CUSTOM ULX STUFF
Post by: Aaron113 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.
Title: Re: CUSTOM ULX STUFF
Post by: Professor_Smiley 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.