Ulysses Stuff > Ulysses Release Archives
XGUI - Fully featured modular GUI for ULX! (Included with ULX v3.51 and SVN)
Stickly Man!:
--- Quote from: Megiddo on July 21, 2009, 05:12:00 AM ---I've already given the code a quick perusal a couple times and it seems pretty good. :)
--- End quote ---
Whew, that's a relief ;D-- and now-- An update!
(This ones for you, Jay :D)
Added a tab for plugins/addons! You can now integrate any GUI you want into XGUI with just a few lines of code!
As you can see, there is a dropdown box at the top to list all the addons, and it will display info about the addon to the right. The rest of the space is used for whichever addon is currently selected! For those of you looking to work with integrating your addon into XGUI, check out the 'xgui_addon_examples.lua' file. It shows the code behind those two addons shown on the image.
But, in a nutshell, it works like this:
--- Code: ---local function function1( parent )
--Using xgui_helpers, this will make a simple label parented to the xgui menu.
x_makelabel{ label="I am an Addon!", textcolor=Color( 0, 0, 0, 255 ), parent=parent }
end
local function function2()
xgui_add_addon{ func=function1, name="Addon_Name", author="Author", version="Version", description="Description" }
end
hook.Add( "xgui_addon", "xgui_addon_test", function2 )
--- End code ---
function1 is where you put all of the gui code, and function2 is where the command is to add your gui elements in function1 to XGUI (along with your name, version, description, etc.)
Also note that everything in function1 needs to be parented to 'parent', which is basically just a 570 x 330 panel parented to the plugins tab.
Anyways, tell me what you guys think! If you have any questions/suggestions, feel free to let me know! I do want to hear what you think when putting URestrict on here, Jay ;)
Give it a try and get the code at http://github.com/SticklyMan/xgui/tree/master!
jay209015:
I think I'm about to cry, an update dedicated to me? Really? Lol :D
I will work on testing this out tonight.
[WCA]AIDS:
I have a couple suggestions for when XGUI is finished,
Having so many options right there at your fingertips is wonderful, I truly enjoy what you have accomplished so far.
What I would like to see, and I'm sure you already had plans to do this, is that all of the variables (alltalk, votemap success ratio, pvp damage, etc.) that you can change using your various panels would all start at their current setting.
eg.
if sv_alltalk == 1
then the check box for "alltalk enabled" would be checked.
votemap success ratio is set to 0.5
so the slider would start at 0.5
Sorry if thats difficult to understand, I can't explain it any different.
The second suggestion I have for you is in regards to the votemap panel.
Currently, I have about ~50 maps on the server from the extra content I have installed. I have set ulx votemapsmode to 2 and made a list of the maps I want available for votemap accordingly.
My suggestion is that you have your votemap function retrieve ulx votemapsmode and if 2 then use only the maps listed in ulx votemap.
Thanks for reading, keep up the good work. I can't wait till its finished.
Stickly Man!:
Thank you for the feedback, AIDS! :D
For the convars, I haven't really been testing XGUI on any regular servers.. only listen servers.. So I didn't even notice that was a problem haha (I would have, eventually..) Megiddo has taught me about using replicated convars, so I'll hopefully have those working properly for the next update! Oh and also, I don't play gmod as often as I used to, so if you have any variables you would like to see added to the settings page that I missed, let me know!
As for the votemaps-- Megiddo has brought a few other things to my attention concerning that, so I need to work on that menu quite a bit. I will be putting your suggestion in ASAP!
I am working on fixing everything that I have so far and making a working public release, as Jay has almost recoded most of the GUI for URestrict to work with my GUI-- So stay tuned for more details!
JamminR:
--- Quote from: Stickly Man! on July 29, 2009, 07:20:24 PM ---As for the votemaps
--- End quote ---
Ulx table "ulx.votemaps" is your friend. Should contain the maps you need no matter what mode. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version