ihhub/fheroes2

Vertical position of text in windows

Aperta

#1260 aperta il 17 ago 2020

 (5 commenti) (0 reazioni) (0 assegnatari)C++ (469 fork)auto 404
good first issuepixel-precisionui

Metriche repository

Star
 (3415 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

For all windows where text appears, I suggest applying simple rules inspired by the original game.

  • The top of the start of the text should always be at the same vertical position relative to the window. For this, the same distance between the top edge of the window and the beginning of the text as that of the original game could be used. Or a slightly greater distance, I always found this distance a little too narrow, I find that the text is too close to the shadows of the window decorations.
  • The distance between the end of the text and the bottom edge of the window should always be at least as large as the distance between the start of the text and the top edge of the window. For this, the length of the window must be adjusted accordingly.

In the original game, the lower text space relative to the window is larger than the upper text space relative to the window:

Scenario selection 23

In fheroes2 this is not the case and it visually unbalances the window, and the top of the start of the text is also a little too far from the top edge of the window:

Scenario selection 24

In the original game, the lower text space relative to the window is larger than the upper text space relative to the window:

Scenario selection 25

In fheroes2 this is not the case and it visually unbalances the window, and the top of the start of the text is also a little too far from the top edge of the window:

Scenario selection 26

Guida contributor