ihhub/fheroes2

Vertical position of text in windows

開放

#1,260 建立於 2020年8月17日

 (5 則留言) (0 個反應) (0 位負責人)C++ (469 個分叉)auto 404
good first issuepixel-precisionui

倉庫指標

星標
 (3,415 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南