The International Simutrans Forum

 

Author Topic: [idea] Highlight objects in focus  (Read 588 times)

0 Members and 1 Guest are viewing this topic.

Online Yona-TYT

  • Devotee
  • *
  • Posts: 1622
    • Simutrans-BLOG
  • Languages: ES
[idea] Highlight objects in focus
« 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.

Offline Andarix

  • *
  • Posts: 274
  • Languages: de
Re: [idea] Highlight objects in focus
« Reply #1 on: January 31, 2021, 07:58:43 PM »
With minimized buildings and construction pit view, special buildings have their own construction pits.


Offline Leartin

  • Oh no, not him again!
  • Devotee
  • *
  • Posts: 1578
  • PAK-DEV P192C
  • Languages: DE, EN
Re: [idea] Highlight objects in focus
« Reply #2 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.

Online Yona-TYT

  • Devotee
  • *
  • Posts: 1622
    • Simutrans-BLOG
  • Languages: ES
Re: [idea] Highlight objects in focus
« Reply #3 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

Offline Isaac Eiland-Hall

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3917
  • Providing hosting for Simutrans projects
    • pc2.io
  • Languages: EN
Re: [idea] Highlight objects in focus
« Reply #4 on: February 03, 2021, 05:39:56 PM »
Heyy, don't be pointing at me, that's rude! ;-)

Online Yona-TYT

  • Devotee
  • *
  • Posts: 1622
    • Simutrans-BLOG
  • Languages: ES
Re: [idea] Highlight objects in focus
« Reply #5 on: February 04, 2021, 02:59:21 AM »
Heyy, don't be pointing at me, that's rude! ;)
Nor did you like that they clicked on you!.  ;D


I leave you the link in case you missed it:  https://forum.simutrans.com/index.php/topic,16991.msg161612.html#msg161612  :P

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10662
  • Languages: De,EN,JP
Re: [idea] Highlight objects in focus
« Reply #6 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.

Online Yona-TYT

  • Devotee
  • *
  • Posts: 1622
    • Simutrans-BLOG
  • Languages: ES
Re: [idea] Highlight objects in focus
« Reply #7 on: February 04, 2021, 02:22:10 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.
Wow this is great.  8)


@leartin, I think they took your job heheheh.   :P

Offline Isaac Eiland-Hall

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3917
  • Providing hosting for Simutrans projects
    • pc2.io
  • Languages: EN
Re: [idea] Highlight objects in focus
« Reply #8 on: February 04, 2021, 04:26:58 PM »
Nor 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