[b]Updated 2008-11-02[/b]
[b]What is this?[/b]
Are you annoyed with having to go to the Q menu to change tools all the time?
Running out of keys close to your movementkeys to bind to?
Why not try a Radial Menu, almost-instant access to your favourite tools merely a single button-click and flick of the mouse away.
[b]Installation[/b]
[url=http://www.garrysmod.org/downloads/?a=view&id=55749][img]http://www.garrysmod.org/img/?t=dll&id=55749[/img][/url]
* Unpack to you addons directory
* Bind a key to [b]+gb-radial[/b], either by editing you config.cfg file, or doing a [b]bind "<KEY>" "+gb-radial"[/b] from the console
Note, when upgrading, your existing settings will be overwritten, but your tool configuration will remain intact.
[b]Setup[/b]
To configure the tool in Garrys Mod, either go to [b]Options/GB Radial Menu/Settings[/b] and click the [b]Open Radial Menu Settings[/b] to open the configuration dialog, or press your bind key, and then right click on your mouse.
To add a new tool to the selection, you have to enter a descriptive name (in the Name field), and the corresponding console command to switch to the tool, in the Con field.
For a list of common Garrys Mod console commands, visit this [url=http://wiki.garrysmod.com/wiki/?title=Console#Tool_Commands]Garrys Mod WiKi[/url]
The tool is not limited to tools, if you can do it from the console, you can add an entry in the radial menu.
[b]Usage[/b]
To switch tools, hold your bind-key, move the mouse over the tool you want to switch to, and let go of your bind key.
Left clicking is not necessary (and, has been disabled while the menu is visible)
[b]Configuration[/b]
Menu Deadzone: How large of a "dead area" around the center, where no selection will take place, if you release your bind key
Labels sized individually: If enabled, labels will size to their contents, if disabled, all labels will be of equal size (the size of the largest label)
Draw selector traceline: Draws a "helper" traceline when selecting tools in the menu
Show Menu Splitters: Do, or do not, display the split-lines between the tools
Splitter Length: If the splitters are visible, how large will the be?
[b]Screenshots[/b]
Just 2, the default tool selection, and the config window.
[img]http://www.gladblad.dk/garrysmod/gb/gb-radial-ss01.jpg[/img] [img]http://www.gladblad.dk/garrysmod/gb/gb-radial-ss02.jpg[/img]
[b]Changelog[/b]
Version 2008-11-02:
* Apparently it is a REALLY bad idea to manipulate the array you are enumerating .. humdedum, major load bug fixed
* Renamed RCon to Con, don't know why I chose RCon to begin with :)
* You can now select if labels should be the same size (the size of the longest), or individually sized.
* A traceline can be drawn from screen-center to mouse cursor when selecting tools
Have fun, and let me know how you like it.
The menu is a bit jumbled up but besides that it looks good.
Looks good, nice job.
Someone already made a radial system.
And I made a tool menu with it. :raise:
Brilliant, this'll be great to quickly wire things up. Thanks, it's a big help.
[QUOTE=OlivierHamel]Someone already made a radial system.
And I made a tool menu with it. :raise:[/QUOTE]
Searched GarrysMod.org, and the only one was for a specific RP mod, not for sandbox. (And, this one is not for a specific mod, it just works in GM generally)
But, basically, does it matter? Its never a bad thing to have choices, is it? :)
It'd be better if it had a way to add wire tools, that's what a really need it for :P.
[b]Maximum strength![/b]
I like it. Have you considered making the label-backgrounds all the same size? That is, all of them the same width as the widest? Seems like it'd look more even that way.
[QUOTE=mahalis]I like it. Have you considered making the label-backgrounds all the same size? That is, all of them the same width as the widest? Seems like it'd look more even that way.[/QUOTE]
I'll add that to the ToDo list, should be an easy enough addition (I calculate the widest label already)
[b]Edit:[/b]
[QUOTE=Occlusion]It'd be better if it had a way to add wire tools, that's what a really need it for :P.[/QUOTE]
Not really sure what you mean, you can configure the tools in the menu yourself, for instance, for the debugger tool you write [b]tool_wire_debugger[/b] in the RCon command.
If thats not it, could you please explain what it is you're missing?
Could you extend this so you could have sub-menus?
e.g. you could have a "Wire" selection on the main radial menu which then opens to a new menu listing x amount of wire tools? I'm sure many people would find it even more helpful. (although some may then end up taking it too far and before you know it, their radial menu is just as complex as the q menu! But if they want it that way, who's to stop them! :D)
[QUOTE=FlyveHest]for the debugger tool you write [b]tool_wire_debugger[/b] in the RCon command.[/QUOTE]
Why are you calling it an "RCon" command? RCon stands for remote console, it's when you send console commands to a dedicated server, this is just a command on the client, so it's just a regular concommand.
[QUOTE=Sa-Mu]Why are you calling it an "RCon" command? RCon stands for remote console, it's when you send console commands to a dedicated server, this is just a command on the client, so it's just a regular concommand.[/QUOTE]
Now that you say it, I don't know :) Will change it
[b]Edit:[/b]
[QUOTE=subenji99]Could you extend this so you could have sub-menus?[/QUOTE]
I am planning on adding a "2nd ring", but if it will be a straigh-out sub-menu of the first ring, time will tell.
Biggest problem with that would probably be making a properly functioning GUI for it.
[b]Edit:[/b]
Hmm, I seem to have found a bug, you need to quit out of your Steam client entirely, and when you get back in, tools will be all jumpled (even though it looks fine in the config dialog)
Will release a new version later today.
Been looking for something like this, thanks man.
[editline]Edited:[/editline]
Don't do this, much simpler way below..
sweet, like cl_quicktool but better.
I would love to use this, but for some reason it won't appear in my console, I have no options for it or anything.
I'm wondering if that code that Turd posted screwed it up :confused:
Damn you Turd, you're code sucks ass and breaks this thing!
It shouldn't do, assuming you add it correctly. I'm using the same code and it works fine. Make sure you remove the numbers, and that it is inside of the last end. Incidentally, why isn't the file in autorun/client? Might make it a bit simpler.
[QUOTE=Turd92]Incidentally, why isn't the file in autorun/client? Might make it a bit simpler.[/QUOTE]
The script is in autorun, and is run every time you start.
You just need to make a bind for it yourself, if you haven't enabled Console in Garrys Mod (normally, the ~ key, right below escape), you can edit your config.cfg in [b]Steam\steamapps\<STEAM USERNAME>\garrysmod\garrysmod\cfg\config.cfg[/b]
If you want to bind it to, for instance, mouse4 (which on my mouse is one of the buttons on the side), you would add this line
[b]bind "MOUSE4" "+gb-radial"[/b]
If you want to map it to a key, you should just change MOUSE4 for something like x, or whatever key you want to use it on.
I haven't made a default bind to any key and/or mouse, because I didn't want to break peoples config, and I have no idea if a given user has already bound something to a given key.
(If you want to use it on your middle-mouse button, you can just bind it to MOUSE3, no need to use additional scripting for that :))
..Edited for clarity
Ah, didn't know you could bind mouse buttons. Thanks ;)
You're very welcome :)
NICE!
Jesus H.
I still like [url=http://forums.facepunchstudios.com/showthread.php?t=387526]overriding lastinv[/url].
It would be great if you steal my code and add said optional functionality.
I pastebinned it for you: [url]http://pastebin.ca/1246395[/url]
Good job by the way.
[QUOTE=Turd92]It shouldn't do, assuming you add it correctly. I'm using the same code and it works fine. Make sure you remove the numbers, and that it is inside of the last end. Incidentally, why isn't the file in autorun/client? Might make it a bit simpler.[/QUOTE]
You know that's probably where I went wrong, I put it outside the last "end", thanks for telling me that (you should really put that in the post). This thing is pretty cool once you get it working anyway.
Hehe, regardless, Flyve's method is the better and correct way to do it. I should've done some research on binding mouse buttons.
[QUOTE=Night-Eagle]I still like overriding lastinv.
It would be great if you steal my code and add said optional functionality.
I pastebinned it for you: [url]http://pastebin.ca/1246395[/url]
Good job by the way.[/QUOTE]
I'm not really sure what it is this does? I don't think i've ever used lastinv for anything.
What you would like is a dynamically built submenu, that is populated with the last X tools you have used? (Or, have I totally misunderstood?)
I haven't got time to do anything on the script before sunday, but i'm planning to add a second tool-ring, so you can have even more tools at the ready (provided that Fallout 3 doesn't steal all my time ;), so, if you could explain in more detailed terms the feature you'd like added, i'll take a look a putting it in.
[QUOTE=Night-Eagle]Jesus H.
I still like [url=http://forums.facepunchstudios.com/showthread.php?t=387526]overriding lastinv[/url].
It would be great if you steal my code and add said optional functionality.
I pastebinned it for you: [url]http://pastebin.ca/1246395[/url]
Good job by the way.[/QUOTE]
This is sexy, can you upload it again? The download is broken.
[b]Edit:[/b]
[QUOTE=FlyveHest]I'm not really sure what it is this does? I don't think i've ever used lastinv for anything.
What you would like is a dynamically built submenu, that is populated with the last X tools you have used? (Or, have I totally misunderstood?)
I haven't got time to do anything on the script before sunday, but i'm planning to add a second tool-ring, so you can have even more tools at the ready (provided that Fallout 3 doesn't steal all my time ;), so, if you could explain in more detailed terms the feature you'd like added, i'll take a look a putting it in.[/QUOTE]
You should make the diameter dynamic, so when you add more tools, the "ring" gets bigger, and it fits more.
[QUOTE=kp3]You should make the diameter dynamic, so when you add more tools, the "ring" gets bigger, and it fits more.[/QUOTE]
You can adjust that by extending the dead-zone.
I have a couple of ideas for making this dynamic, though, in lieu of making a second tool-ring, which didn't work as well as I had hoped. (Still tweaking it, though)
what some people are wanting if i am not mistaking is sub-menus that when you push the button in the main radial it can take you to a second radial with other tools in that radial.
such as main radial has six tabs wire,construction,etc. that when you hit the wire one it comes up with tabs for the more common wire tools such as wire, debug,wired wheel,etc. hope this helps you some.
I would like there to be a way to load multiple tool configs if you can. It would be handy because not every gamemode allows using the same tools and I think having every single command for multiple gamemodes in one menu would be a waste of space, not to mention very cluttered.
Sorry, you need to Log In to post a reply to this thread.