Open Licho1 opened 9 years ago
Spring offers no API to set engine startpos currently.
I think it is good to block clicks outside box because it prevents misclicks which result in people starting on bad places on edges.
Maybe some visual feedback when clicking outside of box would be good.
I like clicking outside the boxes. Could we lua it? Alternately the box could flash or otherwise show itself on a failed click.
Misclick is not a huge problem there are timers that wait so you always have time to correct.
I liked clicking outside of boxes too. Misclick was only a problem back when we still had Ready button - you could misclick trying to click Ready and then immediately confirm the wrong spot by hitting the button.
Unfortunately as Sprung pointed API lacks required functions, there is GetTeamStartPosition but no corresponding Set function. So a solution would require lots of hacks.
This makes it much harder to for newbies to realize whats going on and to place. In some cases, like FFA, box is very tiny.
If possible, point closest to clicked location should be selected within valid startbox.