right mouse button on menu

Discuss the future of Warzone 2100 with us.
coolkid
Trained
Trained
Posts: 233
Joined: 23 Jul 2008, 02:52
Location: Parsons, Kansas USA

right mouse button on menu

Post by coolkid »

topic pretty much says it all but i think that the right mouse button should be used to move in the opposite direction than left
I.e. the game resolution there are several options left mouse button goes one way but right dosent do anything. this had been kinda bothering me and i think it would be a fairly simple and useful addition.
the largest wz steam community http://steamcommunity.com/groups/wz2100 (all welcome to join help find matches find new relese and recruit new players)
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: right mouse button on menu

Post by Buginator »

coolkid wrote:topic pretty much says it all but i think that the right mouse button should be used to move in the opposite direction than left
I.e. the game resolution there are several options left mouse button goes one way but right dosent do anything. this had been kinda bothering me and i think it would be a fairly simple and useful addition.
Nothing is fairly simple when working with WZ GUI code... but I was going to fix that one of these days/months/years.
and it ends here.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: right mouse button on menu

Post by i-NoD »

Buginator wrote:but I was going to fix that one of these days/months/years.
Use this... :D
rm_resolution_changer.patch
You do not have the required permissions to view the files attached to this post.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: right mouse button on menu

Post by cybersphinx »

i-NoD wrote:Use this... :D
Can you generalize the patch so it works in all menus? After a short look at the patch and not much else of the surrounding code, I'd say something like
* remove addTextRMButton again, and just put that stuff in addTextButton,
* add an increment variable that is set to 1 for the LMB and to -1 for the RMB,
* and then just add that to those items with more than two choices (the others just change regardless of mouse button)
should do the trick, and be somewhat easy to do.