View icon on every location-related window

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

View icon on every location-related window

Post by Hyronymus »

I propose to add a view icon to every location-related window in OpenTTD. The function of this button is that it focuses the main view on the location attached to the window, be it a town council window, a vehicle window or a tile information window and whatever type of window that can be related to a location. In some cases the function of this icon may replace an existing button.

The icon can be placed next to the cross to close a window and the other 2 icons to the right or completely opposite to the left. As a suggestion I'm thinking of a simple icon of an eye for the icon.
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: View icon on every location-related window

Post by Supercheese »

Hyronymus wrote:The icon can be placed next to the cross to close a window and the other 2 icons to the right or completely opposite to the left. As a suggestion I'm thinking of a simple icon of an eye for the icon.
So you mean to replace the eye on vehicle windows, and the "Location" button on town and industry windows? They're not good enough as-is?
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
wojteks86
Traffic Manager
Traffic Manager
Posts: 159
Joined: 30 Dec 2006 23:26
Location: Ruda Slaska[PL]

Re: View icon on every location-related window

Post by wojteks86 »

Hi, I always like the minimalistic ideas - I prefer icons rather than text.
Going after your idea, what should we do with the "Display chain" button?
Make it an icon or leave it as it is now? For this particular function I'd rather leave this as a text button.
Regards,
Wojtek
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: View icon on every location-related window

Post by Hyronymus »

Supercheese wrote:
Hyronymus wrote:The icon can be placed next to the cross to close a window and the other 2 icons to the right or completely opposite to the left. As a suggestion I'm thinking of a simple icon of an eye for the icon.
So you mean to replace the eye on vehicle windows, and the "Location" button on town and industry windows? They're not good enough as-is?
Where the function already exists it works well as-is and there are windows that lack it together with room to supply such a button. And as wojteks86 put it, adding an icon is a minimilastic way of solving this and yet offer a standard solution throughout multiple windows. It's definetly not a complaint against the function.
AndyLandy
Engineer
Engineer
Posts: 30
Joined: 10 Sep 2008 20:09

Re: View icon on every location-related window

Post by AndyLandy »

Supercheese wrote:
Hyronymus wrote:The icon can be placed next to the cross to close a window and the other 2 icons to the right or completely opposite to the left. As a suggestion I'm thinking of a simple icon of an eye for the icon.
So you mean to replace the eye on vehicle windows, and the "Location" button on town and industry windows? They're not good enough as-is?
I do like the idea of 'standardising' the function. I assume the ability to control-click on a vehicle's location button will still allow you to 'follow' a vehicle?
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: View icon on every location-related window

Post by Hyronymus »

AndyLandy wrote:
Supercheese wrote:
Hyronymus wrote:The icon can be placed next to the cross to close a window and the other 2 icons to the right or completely opposite to the left. As a suggestion I'm thinking of a simple icon of an eye for the icon.
So you mean to replace the eye on vehicle windows, and the "Location" button on town and industry windows? They're not good enough as-is?
I do like the idea of 'standardising' the function. I assume the ability to control-click on a vehicle's location button will still allow you to 'follow' a vehicle?
Yes, of course, following to me is something completely different from the defauly view function.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: View icon on every location-related window

Post by frosch »

Independent of the unification...

What windows refer to locations and miss a button currently?
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: View icon on every location-related window

Post by Hyronymus »

frosch wrote:Independent of the unification...

What windows refer to locations and miss a button currently?
- tile information window
- city council window
- rename city window
- error messages

Windows that can be "unified" are:
- town windows
- industry windows
- vehicle depot windows
- station windows
- vehicle windows
- buoy/waypoint windows
User avatar
supermop
Tycoon
Tycoon
Posts: 1104
Joined: 21 Feb 2010 00:15
Location: Fitzroy North - 96

Re: View icon on every location-related window

Post by supermop »

I was just thinking last night that it was silly that this function is sometimes a text button at bottom of window, and sometimes an icon on the right. Regardless of position I would like to see this move to a standardized icon on all relevant windows.
talebowl
Engineer
Engineer
Posts: 1
Joined: 02 Mar 2014 12:09

Re: View icon on every location-related window

Post by talebowl »

Working on a patch for a unified top-of-the-window graphical location button, as previously talked about on IRC.

About the proposed list of new windows to get the location button:
Hyronymus wrote:
frosch wrote:Independent of the unification...

What windows refer to locations and miss a button currently?
- tile information window
- city council window
- rename city window
- error messages
Any more opinions on this? Also, Hyronymus, could you give an example of an error message that's tied to a location, can't really think of one at the moment..

frosch on the wiki wrote:The vehicle viewport GUI should not become too flat after loosing a button on the right. Maybe the other buttons could be changed in size, or maybe there is another useful button which could be added? :p
I've currently made the panel/empty space at the bottom of that list of buttons bigger by the height of the previous button, though I'm not quite fond of how it looks (especially on non-train windows, thinking it would look better if train view and other-vehicle view would be the same size). Can't really think of a button that would be useful there though (and would think that that's not quite the "correct" approach to gui design?). Not sure if making the other buttons longer would be good either, for example: road vehicle depot looks a bit awkward as it is, to me, with the buttons longer than they need to be / images not vertically centered. Might be alone in that view though.

Additionally: opinions on where it should be in the top-bar? I've now put it in the right-most corner, but I feel like it would be better fitting just right of the caption, as it is more related to the "subject" of the window than some of the other buttons in there...
Last edited by talebowl on 07 Apr 2014 20:26, edited 1 time in total.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: View icon on every location-related window

Post by planetmaker »

talebowl wrote:Working on a patch for a unified top-of-the-window graphical location button, as previously talked about on IRC.

About the proposed list of new windows to get the location button:
Hyronymus wrote:
frosch wrote:Independent of the unification...

What windows refer to locations and miss a button currently?
- tile information window
- city council window
- rename city window
- error messages
Any more opinions on this? Also, Hyronymus, could you give an example of an error message that's tied to a location, can't really think of one at the moment..
* Cannot clear tile
* Bridge in way
* Must be build on XXX terrain
...
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: View icon on every location-related window

Post by Zuu »

Slightly related to this is that the Story Book window supports a page element for viewing a location. It will insert an icon at the left margin and some text adjacent to it that the GS decide. At the moment the same icon is used for any type of target, although it is possible for someone to make icons for "view station", "view town" etc. and provide different page element types for that.

I don't know if any GS is actually using this right now. But you can see it in this example screenshot, where "Town B" and "Town C" are page element that when clicked will center the view on some tile:

Image

You find the development thread for these graphics here:
http://www.tt-forums.net/viewtopic.php? ... 1#p1081551
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
J0anJosep
Traffic Manager
Traffic Manager
Posts: 139
Joined: 06 Aug 2011 15:51
Location: Spain

Re: View icon on every location-related window

Post by J0anJosep »

talebowl wrote:frosch on the wiki wrote:
The vehicle viewport GUI should not become too flat after loosing a button on the right. Maybe the other buttons could be changed in size, or maybe there is another useful button which could be added? :p
Maybe a button for vehicles sharing the same orders. The button may be shadowed if no vehicles share the same orders. If the orders are shared, clicking it would make the window show next (+ctrl, previous) vehicle in the chain. I think that next vehicle can be shown in the same window instead of opening a new window.
Attachments
arrow-chain.png
arrow-chain.png (1.77 KiB) Viewed 4729 times
vehicle_gui-vehicles-on-same-schedule.diff
(7.17 KiB) Downloaded 128 times
Formerly known as Juanjo
Transportman
Tycoon
Tycoon
Posts: 2781
Joined: 22 Feb 2011 18:34

Re: View icon on every location-related window

Post by Transportman »

Juanjo wrote:
talebowl wrote:frosch on the wiki wrote:
The vehicle viewport GUI should not become too flat after loosing a button on the right. Maybe the other buttons could be changed in size, or maybe there is another useful button which could be added? :p
Maybe a button for vehicles sharing the same orders. The button may be shadowed if no vehicles share the same orders. If the orders are shared, clicking it would make the window show next (+ctrl, previous) vehicle in the chain. I think that next vehicle can be shown in the same window instead of opening a new window.
And when would this button be useful? I don't really see a use-case for such a button.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
J0anJosep
Traffic Manager
Traffic Manager
Posts: 139
Joined: 06 Aug 2011 15:51
Location: Spain

Re: View icon on every location-related window

Post by J0anJosep »

Transportman wrote:And when would this button be useful? I don't really see a use-case for such a button.
Not really useful, but may fill some space.
I only used this very few times for spotting problems (vehicles piling up at some station due to timetabling/full load order or low income because transporting almost no cargo), which can be done by other existing means.
Formerly known as Juanjo
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 24 guests