Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signals GUI: indicate ctrl state #3123

Closed
DorpsGek opened this issue Aug 15, 2009 · 6 comments
Closed

Signals GUI: indicate ctrl state #3123

DorpsGek opened this issue Aug 15, 2009 · 6 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

laurijh opened the ticket and wrote:

Holding ctrl when building railway signals makes them electric if the default is semaphores and vice versa, but there's currently no indication of this on the GUI.

This patch does 2 things;
- switches lowered button variant while ctrl is pressed so that the interface reflects the actual variant to be built
- raises signal button when the signal convert button is activated and ctrl is pressed, because in that situation the selected signal type has no effect on conversion

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3123
@DorpsGek
Copy link
Member Author

Terkhen wrote:

There's an issue with this patch. Since CTRL+Drag automatically builds signals of the selected type along the railway, changing the selected signal gives the idea that it will build the type that has its button lowered, when it will actually build the originally selected type of signal.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123#comment6496

@DorpsGek
Copy link
Member Author

laurijh wrote:

That's interesting, I had no idea about that "autofill" functionality. Seems a bit strange that ctrl does completely different things with the same tool depending on whether you click or drag...

I guess there are two ways I could fix that in the patch; either disable the autofill and make ctrl simply switch the signal variant also when dragging, or keep the functionality and make the displayed variant switch back to normal when the drag is initiated. Which is preferable?


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123#comment6497

@DorpsGek
Copy link
Member Author

Terkhen wrote:

I can't live without autofill: it is incredibly useful when you are creating big train networks. Disabling existing features is not an option. Because of that I suggest implementing the second option.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123#comment6498

@DorpsGek
Copy link
Member Author

planetmaker wrote:

Disabling an existing feature is no option.
There are certainly means to detect whether the signals are dragged. Not displaying the other signal variant in that case should do the trick.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123#comment6500

@DorpsGek
Copy link
Member Author

laurijh wrote:

Ok, here's a new version. So now the patch does also a 3rd thing; shown variant reverts back to the "original" when dragging is detected (selection spans over more than one tile).

It was a bit trickier to get just right than I thought but after a couple of rewrites the new code ended up decently neat.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123#comment6503

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Won't implement

Mass closure of patch tickets with no commentary for >5 years. Goal is to reduce patch queue as an experiment to see if it aids faster reviewing and rejection/acceptance (it may not). If this offends you and the patch is maintained and compiles with current trunk, discuss with andythenorth in irc. (andythenorth has no ability to review patches but can re-open tickets).


This comment was imported from FlySpray: https://bugs.openttd.org/task/3123

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) wontfix patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant