ULX

Author Topic: UGest - Mouse Gestures in GMod  (Read 22497 times)

0 Members and 1 Guest are viewing this topic.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
UGest - Mouse Gestures in GMod
« on: August 05, 2007, 02:58:27 PM »
Description:
For anyone who has used mouse gestures in another program (browsers especailly) you know that they can allow for quick and easy access to common functions. UGest brings such mouse gestures to GMod.

Features:
  • 100% Client side.
  • Create gestures for any console command.
  • Optional mouse tail while drawing gestures.
  • Seperatly customizable colors for both tail and text.

Tips:
  • If you are having trouble drawing a gesture consistantly, try changing the gest_mindist CVAR This value defines how many pixels away you must move the mouse for it to register a new point.
  • Pause momentarily at each corner, this will help you create more easily recognizable changes in direction.
  • If you just can't get it, consider a less complicated gesture.
  • Avoid creating gestures that could be easily mistaken for eachother. (ie. LU and L9U)

Commands/CVARS:
  • gest_create <gesture> <name> <command> - Create a new gesture. (If the command contains spaces then it must be enclosed in quotes)
  • gest_list - List all defined gestures.
  • +gesture - Bind this to a key to use gestures
  • gest_mindist <pixels> - Minimum number of pixels the mouse must move before defining a new point (Default: 15)
  • gest_drawtail <0|1> - Whether or not to draw the tail behind the mouse (Default: 1)
  • gest_tail_* <0-255> - Define the RGBA color of the mouse tail
  • gest_text_* <0-255> - Define the RGBA color of the text

Set-up/use:
1) Place ugest.lua in your /garrysmod/lua/autorun/client directory.
2) If you want to use the example gestures place gesture.txt in your /garrysmod/data directory.
3) Bind a key to +gesture (I use mouse3).
4) Hold down the +gesture button and draw your gesture.
5) Release the +gesture button to execute the command.

Screenshot:

(Picture is blurry, that orange spot is actually a very clear line when ingame.)

Download:
http://www.ulyssesmod.net/spbogie/UGest.zip
« Last Edit: March 24, 2009, 07:04:36 AM by spbogie »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UGest - Mouse Gestures in GMod
« Reply #1 on: August 05, 2007, 02:59:54 PM »
Another quality release by spbogie.

I suck at drawing so I can only use the simplest of shapes, but it's really handy for doing an action quickly!
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UGest - Mouse Gestures in GMod
« Reply #2 on: August 05, 2007, 03:21:57 PM »
I missed renaming something in the first release. It has been fixed and the download updated.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: UGest - Mouse Gestures in GMod
« Reply #3 on: August 05, 2007, 09:35:00 PM »
Looks useful but..I don't understand what it does lol ?

You draw something on the screen then what, why tool_remover ?

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UGest - Mouse Gestures in GMod
« Reply #4 on: August 05, 2007, 09:51:59 PM »
The gesture in the picture is RL, meaning I drew right then left. On the bottom it is showing what the currently drawn gesture is, and what it will do. tool_remover is the command tied to the RL gesture, and is executed when the +gesture button is released after drawing Right then Left. All gestures are fully customizable by the end user. You don't need to have a tool_remover gesture if you don't want one.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: UGest - Mouse Gestures in GMod
« Reply #5 on: August 05, 2007, 11:42:20 PM »
Nice nice.


Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: UGest - Mouse Gestures in GMod
« Reply #6 on: August 06, 2007, 07:51:42 AM »
So you mean, if i move my mouse up -> down it select a tool, if i move down -> up it select another tool, etc ? That's awesome and i will use it for sure :)

Thanks.

Offline truck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: UGest - Mouse Gestures in GMod
« Reply #7 on: August 25, 2007, 03:03:17 PM »
I installed correctly and he doesnt work.... I binded +gesture and i cant use

Offline truck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: UGest - Mouse Gestures in GMod
« Reply #8 on: August 29, 2007, 01:07:23 PM »
up

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UGest - Mouse Gestures in GMod
« Reply #9 on: August 29, 2007, 03:13:15 PM »
You've been warned before not to bump truck, please take this day ban as incentive not to do it anymore.
Experiencing God's grace one day at a time.

Offline truck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: UGest - Mouse Gestures in GMod
« Reply #10 on: August 30, 2007, 06:10:56 PM »
ok... iwill stop bumping but why you dont answer at my question???

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UGest - Mouse Gestures in GMod
« Reply #11 on: August 30, 2007, 06:33:58 PM »
1) I don't see a question.
2) Because the author of UGest probably hasn't been here in a while.

Truck, these forums go much slower than others. Expect answers in days/weeks, not minutes/hours
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UGest - Mouse Gestures in GMod
« Reply #12 on: August 30, 2007, 06:56:36 PM »
Provide more information if you want help. I am done responding to posts without information. Look around, we (Team Ulysses) have made many replies requesting information when people have problems. I'm sick of asking. Provide all info you can if you want a response.

Want to know what info you should reply with, take a look around at the other support topics for what we ask, and use some common sense. Read all instructions, double check you did each step, then come back with as much relavent information as you can.

Untill you do this, you will recieve no help from me.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UGest - Mouse Gestures in GMod
« Reply #13 on: August 30, 2007, 07:49:06 PM »
Provide more information if you want help. I am done responding to posts without information. Look around, we (Team Ulysses) have made many replies requesting information when people have problems. I'm sick of asking. Provide all info you can if you want a response.

Want to know what info you should reply with, take a look around at the other support topics for what we ask, and use some common sense. Read all instructions, double check you did each step, then come back with as much relavent information as you can.

Untill you do this, you will recieve no help from me.

Or what spbogie said.
I was thinking same. "it doesn't work" does not equal a question
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline truck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: UGest - Mouse Gestures in GMod
« Reply #14 on: August 30, 2007, 09:40:01 PM »
1) Place ugest.lua in your /garrysmod/lua/autorun/client directory.
2) If you want to use the example gestures place gesture.txt in your /garrysmod/data directory.
3) Bind a key to +gesture (I use mouse3).
4) Hold down the +gesture button and draw your gesture.
5) Release the +gesture button to execute the command.

I do this correctly and i cant use gesture. When i press "X"(my gesture bind) ...

that is a question

thx ^^

PS: I have a question in the Uclip topic

« Last Edit: August 30, 2007, 09:44:55 PM by truck »