fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

feature: Add aspect ratio info to resolution selection dialog

Open Osmodium opened this issue 2 years ago • 17 comments

resolves #6586

Osmodium avatar Feb 06 '23 23:02 Osmodium

Hi @Osmodium please remove extra spaces at the end of the line and reorder the includes as suggested by the code style check workflow.

oleg-derevenetz avatar Feb 07 '23 00:02 oleg-derevenetz

I kind of wanted to add the ratios as two new fields on ResolutionInfo but since it needs to be computed based on width and height it would require for the constructor to calculate it, or where it is instantiated to calculate it. Don't know if it would even be a concern since the only time we spend resources calculating it, is when the dialog is shown.

Osmodium avatar Feb 07 '23 10:02 Osmodium

If this ratio is only needed in one place for illustration purpose only, then there is no need to store it in the ResolutionInfo. It is better to calculate it in-place.

oleg-derevenetz avatar Feb 07 '23 10:02 oleg-derevenetz

@ihhub, so I just posted images of potential layouts in the issue to find out which direction to go. I mostly like this one but not showing the x1 (only showing scale when above 1): image

Osmodium avatar Feb 12 '23 18:02 Osmodium

@ihhub I might even like this layout better image

Osmodium avatar Feb 13 '23 10:02 Osmodium

Hi @Osmodium , since most of readers in the world read text from left to right we have to put the most important information at the left and less important on the right. Ratio factor is less important information I believe. What do you think?

ihhub avatar Feb 13 '23 16:02 ihhub

Hi @Osmodium , since most of readers in the world read text from left to right we have to put the most important information at the left and less important on the right. Ratio factor is less important information I believe. What do you think?

Hi @ihhub I certainly see your point. I can get behind this format too 😄 image

Osmodium avatar Feb 13 '23 16:02 Osmodium

Hi @Osmodium , think about the design from a perspective of a new player. The player will see something like x2 and x3 on the left corner and immediately rises a question "What is this?" While putting it just besides the resolution intuitively is being understandable as a scale factor.

ihhub avatar Feb 14 '23 16:02 ihhub

Hi @Osmodium , think about the design from a perspective of a new player. The player will see something like x2 and x3 on the left corner and immediately rises a question "What is this?" While putting it just besides the resolution intuitively is being understandable as a scale factor.

Hi @ihhub. This was why I had placed it on the right since it would make more sense it being a scale factor, however I'm not sure all players, new or otherwise will get what a (x2) means intuitively. I tried having it in parenthesies (image is for demonstration purposes) image But I feel like this looks too cramped. A thing we could try it to have a header for each column that indicates the information in that column? EDIT: Hmm adding a column might prove a bit more difficult since the dialog is one big sprite :)

Osmodium avatar Feb 14 '23 16:02 Osmodium

In the middle: image

Here a version where it is at 1/3 instead of in the middle to give room? image

Osmodium avatar Feb 14 '23 17:02 Osmodium

@ihhub Just for fun, I threw together a dialog with headers :) image

Osmodium avatar Feb 14 '23 18:02 Osmodium

Hi, @Osmodium , @ihhub !

I personally prefer next alignment more:

Here a version where it is at 1/3 instead of in the middle to give room? image

I'd probably shift aspect ratio closer to the central area: Res

How do you think?

Branikolog avatar Feb 14 '23 19:02 Branikolog

Personally, I think resolution should always be the leftmost column. It is also more intuitive when the scale factor is attached to it, but you raise a good point about it feeling too crammed if we have resolution in the middle and the ratio to the right.

Honestly I think the best one is the one with the resolution all the way to the left and the scale factor attached to the resolution, and the aspect ratio all the way to the right like this one: image

I also considered your last one with three evenly divided spaces but it feels off because no other place in the game is this dialog displayed in such a way.

I think headers for the columns aren't really necessary and would just require more work trying to invent a new look for this dialog.

zenseii avatar Feb 17 '23 15:02 zenseii

Hi @zenseii I have introduced the 2 column layout again, which looks like this: image The left and right padding might need to be more that 6 pixels, what do you think?

Osmodium avatar Feb 21 '23 20:02 Osmodium

@ihhub Do you have further to this issue? :)

Osmodium avatar Mar 09 '23 16:03 Osmodium

@ihhub Do you have further to this issue? :)

Hi @Osmodium , I will review this pull request again tomorrow. It is on my TODO list. I am also adding @Branikolog to gather his opinion.

ihhub avatar Mar 09 '23 16:03 ihhub

Hi @ihhub and @Osmodium Sorry, but I'm not really satisfied how this window looks now. It's not so bad though and I can accept it, but I wish it looks more elegant... The aspect ratio feature is good, but I personally cannot propose any good looking integration of this feature into the current window. Maybe we need more global rework of the whole window now? Also, I'm concerning about the variety of available aspect ratio values. image

Could we approximate the first number, which is before the colon ( : ) in such way, so the second number would take more common values, like 3,4,9 or 10? I think it's more demonstrative to have like [15.9 : 9] or [17.7 : 10] rather than [62 : 35].

Branikolog avatar Mar 09 '23 19:03 Branikolog