Ulysses
General => Developers Corner => Topic started 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
-
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.
-
Hello
I don't really understand much, is there a video tutorial on how to sort that code out
-
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.
-
Fine. I bet someone will steal my idea anyway.
I wanna make chat tags that are customizable in the xgui menu. Thats my idea.