News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

[idea] Highlight objects in focus

Started by Yona-TYT, January 31, 2021, 04:47:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


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.

Andarix

With minimized buildings and construction pit view, special buildings have their own construction pits.


Leartin

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.

Yona-TYT

@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

Isaac Eiland-Hall

Heyy, don't be pointing at me, that's rude! ;-)


prissi

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.

Yona-TYT

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

Isaac Eiland-Hall

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