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.
Old TA mouse click behavior
Moderator: Moderators
-
- Posts: 2
- Joined: 16 Mar 2014, 20:06
Old TA mouse click behavior
Last edited by gajop on 17 Apr 2014, 11:21, edited 1 time in total.
Reason: title fix
Reason: title fix
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Can someone help with this
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.)
(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
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.
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
True.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.
False.There was before an option to do this in engine but it was dropped some years ago.
Re: Old TA mouse click behavior
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
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.
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.
-
- Posts: 2
- Joined: 16 Mar 2014, 20:06
Re: Old TA mouse click behavior
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
Thanks to all for the info
Re: Old TA mouse click behavior
Can't you read?wizardrealm wrote:Thank you for your responses, looks like there is no option to do the left mouse click
It is possible.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.
Re: Old TA mouse click behavior
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
Well he is making a mod so I don't see what's the problem..AF wrote:For a content developer, I gather this person is either a player or someone from the OTA community who has just discovered the enginegajop wrote:It is possible.
Re: Old TA mouse click behavior
Oh noes we got the blatters - soon we will have coinsized growth all over our forums.