Old TA mouse click behavior

Old TA mouse click behavior

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
wizardrealm
Posts: 2
Joined: 16 Mar 2014, 20:06

Old TA mouse click behavior

Post by wizardrealm »

Hello to all, I want to change the mouse click to be like in Old TA (left mouse click) for unit selection, movement, attack, etc... is there a way to introduce it via a mod or do I need to rewrite some piece of code in the engine itself and rebuild it. Any help will be greatly appreciated. I want to try it on a MOD that I'm working on. Thank you in advance.

ps: Just need help if possible not criticism on why and why not, is just a personal preference.

gajop: Please name your threads in a more descriptive way.
Last edited by gajop on 17 Apr 2014, 11:21, edited 1 time in total.
Reason: title fix
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Can someone help with this

Post by Silentwings »

What game are you trying to play?
(In general - if you want it to be exactly the same - afaik you'll need to code it yourself. But many games are similar and most do use left click to select units and give single orders.)
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Old TA mouse click behavior

Post by Jools »

I think he means mouse like in OTA: left click = select unit, give order. Right click = clear selection.

I think it's possible but you need to do it yourself. Returning true from MousePress events overrrides engine, but there's a lot of events in the UI to go through.

There was before an option to do this in engine but it was dropped some years ago.

http://springrts.com/wiki/FAQ:player#Wh ... y_keyboard.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Old TA mouse click behavior

Post by FLOZi »

Jools wrote:I think he means mouse like in OTA: left click = select unit, give order. Right click = clear selection.

I think it's possible but you need to do it yourself. Returning true from MousePress events overrrides engine, but there's a lot of events in the UI to go through.
True.
There was before an option to do this in engine but it was dropped some years ago.
False.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Old TA mouse click behavior

Post by Jools »

That's maybe the long version, but to be more laconic: it depends on what you consider this engine.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Old TA mouse click behavior

Post by AF »

There are good reasons for moving to the right click orders left click selection model, it seems the SY's when starting the engine agreed.

E.g. how would you issue an area command with a left click mouse setup? Are you dragging out a formation or a selection box?

I can also backup flozi when he says there was never an option for this, I remember asking for it myself in the very early days of spring and being told, no.
wizardrealm
Posts: 2
Joined: 16 Mar 2014, 20:06

Re: Old TA mouse click behavior

Post by wizardrealm »

Thank you for your responses, looks like there is no option to do the left mouse click, wish there was a way to implement it on a MOD, but i'll keep reading and try different ways.

Thanks to all for the info
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Old TA mouse click behavior

Post by gajop »

wizardrealm wrote:Thank you for your responses, looks like there is no option to do the left mouse click
Can't you read?
Jools wrote:I think it's possible but you need to do it yourself. Returning true from MousePress events overrrides engine, but there's a lot of events in the UI to go through.
It is possible.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Old TA mouse click behavior

Post by AF »

gajop wrote:It is possible.

For a content developer, I gather this person is either a player or someone from the OTA community who has just discovered the engine
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Old TA mouse click behavior

Post by gajop »

AF wrote:
gajop wrote:It is possible.
For a content developer, I gather this person is either a player or someone from the OTA community who has just discovered the engine
Well he is making a mod so I don't see what's the problem..
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Old TA mouse click behavior

Post by PicassoCT »

Oh noes we got the blatters - soon we will have coinsized growth all over our forums.
Post Reply

Return to “General Discussion”