ULX

Author Topic: Add a new tab in the xgui  (Read 3429 times)

0 Members and 1 Guest are viewing this topic.

Offline Organik

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Artifice Gaming Network
Add a new tab in the xgui
« on: November 14, 2013, 05:02:52 PM »
Hello all,

I've searched high and low and can't seem to find any solid information on adding my own tab into the xgui. There doesn't seem to be any developer documentation for it so I assume I'd have to dig through source files or other addons to find out how it works.. but I was hoping someone could perhaps get me started in the right direction?

Any help is appreciated!

Thanks

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Add a new tab in the xgui
« Reply #1 on: November 14, 2013, 08:33:20 PM »
Quick answer - Tabs are created during the 'category' variable setting from the ulx.command object setup.
Long answer -
ULib is documented publicly here - http://www.ulyssesmod.net/docs
ULX, which heavily uses ULib, commands aren't documented publicly, but are commented pretty well within the code itself. (And, even the code is in english, no obfuscated variable names or command structures)

Then, when ULX commands are set up correctly, they're automatically added to the tabs within XGUI.
I'd recommend looking over the TTT commands release by terrortownteam - http://forums.ulyssesmod.net/index.php/topic,6279.0.html
They make thier own category and XGUI tabs mostly by just adding a new ulx.command ("Category" ... ) and using it for the rest of the functions.

If you have further questions needing clarification, feel free to ask.
« Last Edit: November 14, 2013, 08:35:25 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Add a new tab in the xgui
« Reply #2 on: November 15, 2013, 01:26:10 PM »
JamminR is referring to the categories on the "commands" tab. If you want to add your own tab on the top of XGUI, then .. it's actually quite easy! And highly undocumented! I was supposed to document this.... years ago. I suppose a quick documentation would be fairly easy to roll out, but.. I may not have a large enough chunk of time to fill it out for a while.

In the meantime, add me as a friend on steam and I can help you get started. :P

(Your name looks familiar- you may have tried to add me as a friend previously, but I tend to ignore random requests because I'm tired of risking the chance of getting people who just ask me "hey can u code for gmod i have this cool idea!11~" lol)
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: Add a new tab in the xgui
« Reply #3 on: December 04, 2013, 10:38:44 AM »
Have you had time to document this yet? I'm wanting to add a tab as well, and couldn't find anything on it.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Add a new tab in the xgui
« Reply #4 on: December 04, 2013, 04:32:46 PM »
Have you had time to document this yet? I'm wanting to add a tab as well, and couldn't find anything on it.

They most likely will make an announcement about it somewhere, if or when Sticky Man chooses to document it. So as of this moment I'm going to say no, he most likely didn't update it yet.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Add a new tab in the xgui
« Reply #5 on: December 05, 2013, 09:18:22 AM »
I haven't been able to start it yet- but with this increase in interest I will try to get it done as soon as possible. I'll be building a webpage and sticking it up on ulyssesmod.net, and I've already started on some of the text. It will hopefully be descriptive enough to explain all of what XGUI can do (and hopefully helps me remember how it all works :P)
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6