Page 1 of 1

Old TA mouse click behavior

Posted: 17 Apr 2014, 06:22
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.

Re: Can someone help with this

Posted: 17 Apr 2014, 08:18
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.)

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 12:05
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.

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 14:01
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.

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 14:46
by Jools
That's maybe the long version, but to be more laconic: it depends on what you consider this engine.

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 15:49
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.

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 21:14
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

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 21:24
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.

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 21:39
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

Re: Old TA mouse click behavior

Posted: 17 Apr 2014, 22:02
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..

Re: Old TA mouse click behavior

Posted: 16 Jun 2014, 09:29
by PicassoCT
Oh noes we got the blatters - soon we will have coinsized growth all over our forums.