transparency and invisibility merged, how?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

transparency and invisibility merged, how?

Post by Alberth »

Hello,

I have been trying to merge the visibility options from the 'options' dropdown and the 'transparency' window together, and could use some help on window layout.
how to merge in a nice way?
how to merge in a nice way?
how_to_merge.png (20.72 KiB) Viewed 8841 times
This solution looks bad imho, partly vertical partly horizontal, settings that belong together are spread, and last but not least, the icons do not look very clickable.

So the question is, can you find a better layout?
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: transparency and invisibility merged, how?

Post by Lord Aro »

2 columns for the 'list' perhaps?
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
John_Smith
Chairman
Chairman
Posts: 780
Joined: 15 Apr 2010 10:00

Re: transparency and invisibility merged, how?

Post by John_Smith »

How about the arrows used in the advantaged settings, with the options, 'On', 'Transparency' and 'Invisibility' and to lock it you click the icon.
JS.
I not an boring person, I just get excited over boring things.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: transparency and invisibility merged, how?

Post by Alberth »

@lord aro: It seems that way, although it makes me somewhat sad, I kind of like the icons.

@John_Smith:
Hmm, locking. Good point. So we have 3 values, and a 'locked' boolean.

I don't understand how you want to combine the arrows and the icon, unfortunately.


For reference, I have added the bits that need to be controlled below:

Code: Select all

/* Display Options */
enum DisplayOptions {
	DO_SHOW_TOWN_NAMES     = 0,
	DO_SHOW_STATION_NAMES  = 1,
	DO_SHOW_SIGNS          = 2,
	DO_FULL_ANIMATION      = 3,
	DO_FULL_DETAIL         = 5,
	DO_SHOW_WAYPOINT_NAMES = 6,
};

enum TransparencyOption {
	TO_SIGNS = 0,  ///< signs
	TO_TREES,      ///< trees
	TO_HOUSES,     ///< town buildings
	TO_INDUSTRIES, ///< industries
	TO_BUILDINGS,  ///< company buildings - depots, stations, HQ, ...
	TO_BRIDGES,    ///< bridges
	TO_STRUCTURES, ///< other objects such as transmitters and lighthouses
	TO_CATENARY,   ///< catenary
	TO_LOADING,    ///< loading indicators
	TO_END,
};

typedef uint TransparencyOptionBits; ///< transparency option bits
extern TransparencyOptionBits _transparency_opt;
extern TransparencyOptionBits _transparency_lock;
extern TransparencyOptionBits _invisibility_opt;
extern byte _display_opt; ///< What do we want to draw/do?
It doesn't seem to be symmetric, so for some things there is a display option, and for some there isn't and vice versa.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: transparency and invisibility merged, how?

Post by planetmaker »

a GUI interface could possibly look like the attached mock-up. Also I fancy the buttons a lot ;-)

Complete transparency could be displayed as an empty, depressed button or as the icon drawn with the palette converted to the crash palette, that is in gray.
Attachments
mock-up
mock-up
transparency.png (17.47 KiB) Viewed 8769 times
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: transparency and invisibility merged, how?

Post by Zuu »

How about a grid with the different settings on one axis and the different states on another axis?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: transparency and invisibility merged, how?

Post by Alberth »

Zuu wrote:How about a grid with the different settings on one axis and the different states on another axis?
After a long discussion at IRC, we concluded you need more than one axis for a category.

There are three states (visible, partial transparent, and invisible), and you have lock.

Questions are how does 'x' work with 3 values,
is locked visible of any use?

Most likely, I have not all the questions, let alone I have answers.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: transparency and invisibility merged, how?

Post by planetmaker »

Alberth wrote: is locked visible of any use?
Definitely. I use it for catenary and the vehicle % view. Sometimes also for bridges.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: transparency and invisibility merged, how?

Post by Zuu »

Here is a mockup of a grid. For options that are only on/off there will not be an option for "transparent".

IIRC OpenTTD does not have radio buttons, so that will either have to be implemented or another widget solution to be seeked.



Edit: I took a look at the last 500 lines of the IRC logs and found some discussion. However, didn't find the relevant part that concerns the conclusion regarding using two axes for categories. Did you come up with a by word-prototype? Eg. what categories to put on each axis? Or did I missunderstood you? (my understanding of two axes for "categories" is that you would put eg houses and bridges at one axis and stations and industries at another as for an example)
Attachments
transparency-grid.png
transparency-grid.png (6.52 KiB) Viewed 8718 times
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: transparency and invisibility merged, how?

Post by Hyronymus »

Radio buttons would be really neat in my opinion.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: transparency and invisibility merged, how?

Post by Roujin »

I feel (judging from the mockups) that the planned implementation takes away a usage of the invisibility option that I frequently use..

This is how I use the current transparency options:
I lock some options to visible that do not disturb me in any activity and I do not want to disappear when 'x'-toggling (Signs, Catenary, Loading Indicator).
I (sometimes) lock to invisible trees, because they disturb me very often.

Then when the situation arises (mostly while building track) I hit x to toggle transparency of the rest, do what I want to do, and hit x again to toggle it back. However I want some of the options to toggle to invisible (trees definately, they're often still a hindrance even when transparent), while others only to transparent (e.g. industries, bridges - making them completely invisible can lead to false assumption of empty tiles).


I do not see how I could configure the behavior of 'x' to my likes if invisibility becomes a third state instead of a boolean toggle. :(
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5658
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: transparency and invisibility merged, how?

Post by andythenorth »

Roujin wrote:I feel (judging from the mockups) that the planned implementation takes away a usage of the invisibility option that I frequently use..
Eddi thought roughly the same thing for roughly the same reasons ;)
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: transparency and invisibility merged, how?

Post by Zuu »

Roujin wrote:I feel (judging from the mockups) that the planned implementation takes away a usage of the invisibility option that I frequently use..

...

Good point. That's how I usually also use the transparency settings


Edit: Though, if only the presentation change, but not the backend data store, then the old behaviour of x could be kept. It might not be perfectly intutitive, but works from a technical point of view.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: transparency and invisibility merged, how?

Post by Roujin »

andythenorth wrote:
Roujin wrote:I feel (judging from the mockups) that the planned implementation takes away a usage of the invisibility option that I frequently use..
Eddi thought roughly the same thing for roughly the same reasons ;)
Where did he state so, in the IRC discussion? Sorry, I was not present nor did I read the logs, so I did not know I was posting stuff that had already been stated by someone else.
Zuu wrote:Edit: Though, if only the presentation change, but not the backend data store, then the old behaviour of x could be kept. It might not be perfectly intutitive, but works from a technical point of view.
Hm, you're right. The behavior of 'x' would then be "sets visibility status of all non-locked categories to the last non-verbose state you set it to manually in the transparency window (transparent if you did not ever set it), unless all of them are already in that state, in which case they will all be set to verbose".
I think it will be pretty hard to communicate this behavior to new players ^^

Maybe we can find a different mechanic that is equally or more powerful than the current 'x' behavior? I don't have any ideas though...
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3427
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: transparency and invisibility merged, how?

Post by Emperor Jake »

How about "x just makes everything invisible unless it's locked?" Then maybe shift-X could make everything invisible, even if it is locked. (similar to how shift-del closes sticky windows)
3298
Traffic Manager
Traffic Manager
Posts: 143
Joined: 02 Apr 2011 12:55

Re: transparency and invisibility merged, how?

Post by 3298 »

I really like the old system with three booleans.
1. toggle transparency/invisibility (this is what the X key changes)
2. use invisibility instead of transparency
3. the lock thing
That way I can easily tell OpenTTD, "make this category transparent and that one invisible, but not until I press X". But the additional categories in the transparency window are nice - I think it is a bit easier to use than the settings menu. The gray palette also looks like a useful addition - it could be drawn on the buttons for the second boolean instead of the empty buttons used until now. Another suggestion for this old system: make X just toggle everything, instead of turning everything off if anything is on and turning everything on if nothing is on. (makes "inverted" transparency selection possible, see below)

Another idea would be to make two options for each category:
1. appearance with visibility switch (toggled by the X key) OFF
2. appearance with visibility switch ON
These options can be set to "normal", "transparent" or "invisible" independently. Locking means to set both to the same value. This system would also make it possible to "invert" the transparency, i.e. draw something transparent/invisible in mode 1 and normal in mode 2 (even with another category which is set up the other way round). Or you could make the X key toggle between "transparent" and "invisible".
Attachments
My design of a much more flexible transparency window, with rearranged categories (from left to right): trees, lighthouses/antennas, houses, industries, stations, bridges, signs, station names, waypoint names, town names, loading indicators, catenary, full detail, full animation. Some options are changed through the arrows, others (those without the&quot;transparent&quot; option) by clicking on the picture. The numbers on the left are buttons to switch between the two modes by mouse, and they show which one is currently activated.
My design of a much more flexible transparency window, with rearranged categories (from left to right): trees, lighthouses/antennas, houses, industries, stations, bridges, signs, station names, waypoint names, town names, loading indicators, catenary, full detail, full animation. Some options are changed through the arrows, others (those without the"transparent" option) by clicking on the picture. The numbers on the left are buttons to switch between the two modes by mouse, and they show which one is currently activated.
new_transparency_window.png (8.75 KiB) Viewed 8395 times
Last edited by 3298 on 26 Apr 2011 16:23, edited 1 time in total.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: transparency and invisibility merged, how?

Post by frosch »

Usually (well, when i play :p ) I have to transparency options permanently opened and positioned next to the other toolbars. So IMO it should not be a huge GUI of the size of the news settings.
Maybe there could be some expand button like for the economy window. (which I also keep opened in the minimised layout at the start of games).

The option "full animation" does not fit into the transparency options at all IMHO. It could be moved to advanced settings or even game options, or just stay in the menu.

Finally, to add another layout suggestion:
my mockup
my mockup
TransparencyDropdowns.png (5.24 KiB) Viewed 8504 times
  • This adds dropdowns to the signs button for individual settings for individual sign types,
  • removes the "loading indicator" button and moves it into the "signs"-dropdown,
  • turns the "catenary" button into a "miscellaneous" button and
  • adds "full detail" to it.
Wrt. the behaviour: Unchecking stuff in the dropdown hides them permanently. Checked stuff is drawn according to the toggle button, i.e. is affected by the "lock" and toggle-all-transparency-settings-hotkey.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
John_Smith
Chairman
Chairman
Posts: 780
Joined: 15 Apr 2010 10:00

Re: transparency and invisibility merged, how?

Post by John_Smith »

In my personal view I like Zuu suggestion the best, it is ten times better than the current version, it is clearer, and easier to understand. Even if you do not brother merging the two options, just that would be great.

The full detail and full animation options, should not be in the transparency options. In additional I do not understand why there are still there anyway all computers built today can handle OTTD its not the 1990’s.

JS.
I not an boring person, I just get excited over boring things.
Eddi
Tycoon
Tycoon
Posts: 8269
Joined: 17 Jan 2007 00:14

Re: transparency and invisibility merged, how?

Post by Eddi »

John_Smith wrote:In additional I do not understand why there are still there anyway all computers built today can handle OTTD its not the 1990’s.
to quote a friend of mine who studied biotechnology:
I don't understand why you are so happy that computers double their power every year, we'll just take one atom more into our models, and it brings them down to their knees
they are still there, because they still make a difference.

i like frosch's idea. that, and some way to make the "lock" feature more obvious is all that should be done to the window.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: transparency and invisibility merged, how?

Post by planetmaker »

frosch's idea sounds quite nice indeed. Give the signs and the misc buttons then the same size as the bridges and both the invisibility and drop down switch associated with them remain click-able.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 33 guests