The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on January 31, 2021, 04:47:51 PM

Title: [idea] Highlight objects in focus
Post by: Yona-TYT on January 31, 2021, 04:47:51 PM

My idea is that, for example, when focusing on a factory from in factories list with the arrow button "Go to location", in addition to showing the button "pressed" also make a highlight to the factory on the map (you can be highlighted in red as I do in the tutorial), and just as the button stops being pressed when moving from the location, the highlight also disappears in the factory.

This is something that I find very useful, if for example we are looking for a factory in a very large city.
Title: Re: [idea] Highlight objects in focus
Post by: Andarix on January 31, 2021, 07:58:43 PM
With minimized buildings and construction pit view, special buildings have their own construction pits.


Title: Re: [idea] Highlight objects in focus
Post by: Leartin on January 31, 2021, 08:44:28 PM
Considering "go to location" is generally a coordinate, but we don't always know whats there (and if it can be highlighted), I'd suggest something like a big arrow being displayed at the coordinate for a few seconds when you click on "go to location" - no matter which "go to location" it is. This would also make sure the correct coordinate can be identified if it's hidden behind highrise buildings, and there couldn't be conflict with other options that highlight or hide objects.
I guess the big arrow could just be a symbol object, since paksets would need them in fitting sizes and designs.

I'll bookmark this thread in case I end up with too much time, since that might be easy enough to do.
Title: Re: [idea] Highlight objects in focus
Post by: Yona-TYT on February 03, 2021, 04:08:44 PM
@Leartin
Some paksets already have a nice arrow for an experiment like this, additionally it would be good to mark the tiles with an orange line as seen in the image.   8)


Image: monument dedicated to our benevolent dictator. :p
Title: Re: [idea] Highlight objects in focus
Post by: Isaac Eiland-Hall on February 03, 2021, 05:39:56 PM
Heyy, don't be pointing at me, that's rude! ;-)
Title: Re: [idea] Highlight objects in focus
Post by: Yona-TYT on February 04, 2021, 02:59:21 AM
Quote from: Isaac Eiland-Hall on February 03, 2021, 05:39:56 PMHeyy, don't be pointing at me, that's rude! ;)
Nor did you like that they clicked on you!.  ;D
Quote from: Yona-TYT on April 11, 2017, 03:55:55 PM


I leave you the link in case you missed it:  https://forum.simutrans.com/index.php/topic,16991.msg161612.html#msg161612 (https://forum.simutrans.com/index.php/topic,16991.msg161612.html#msg161612)  :P
Title: Re: [idea] Highlight objects in focus
Post by: prissi on February 04, 2021, 12:41:05 PM
This was surprisingly easy, just needed six lines of code. In r9598 the cursor will be placed on the tile in all reposition events (using the eye) and the posbutton. This makes also connection factories etc. easier.
Title: Re: [idea] Highlight objects in focus
Post by: Yona-TYT on February 04, 2021, 02:22:10 PM
Quote from: prissi on February 04, 2021, 12:41:05 PMThis was surprisingly easy, just needed six lines of code. In r9598 the cursor will be placed on the tile in all reposition events (using the eye) and the posbutton. This makes also connection factories etc. easier.
Wow this is great.  8)


@leartin, I think they took your job heheheh.   :P
Title: Re: [idea] Highlight objects in focus
Post by: Isaac Eiland-Hall on February 04, 2021, 04:26:58 PM
Quote from: Yona-TYT on February 04, 2021, 02:59:21 AMNor did you like that they clicked on you!

Good grief. I have no recollection of that. That is hilarious that I phrased it the same way. LOL