0ad/source/gui
Vantha 8a2a450686 Align text as usual if the scrollbar is invisible
Previously, while `scrollbar` was set to true, the text was always
vertically aligned to the top, no matter what its `text_valign` was, by
the scrolling logic. However, this was done even when the text's caption
was so short that no scrollbar was required in the first place (and not
rendered). Falling back to the specified `text_valign` value in that case
instead seems like the expected behavior.

On a few occasions in the GUI, the text was supposed to be aligned to
the top in either case, but still set `text_valign` to a different value
(for whatever reason), which didn't have any effect previously. But
now since it does, the values have to be corrected to specify what is
actually desired.
2026-04-06 21:39:18 +02:00
..
ObjectBases Remove ScriptEvent with only one parameter 2025-11-05 14:39:44 +01:00
ObjectTypes Align text as usual if the scrollbar is invisible 2026-04-06 21:39:18 +02:00
Scripting Remove Script::CreateArray 2026-02-08 19:27:50 +01:00
SettingTypes Revert temporary workarounds for font baseline issues 2026-01-29 19:05:34 +01:00
tests Fix some includes all over the place 2025-08-14 20:15:30 +02:00
CGUI.cpp Use promises to fetch net messages 2026-03-13 18:07:56 +01:00
CGUI.h Remove ScriptEvent with only one parameter 2025-11-05 14:39:44 +01:00
CGUIScrollBarHorizontal.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarHorizontal.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarVertical.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarVertical.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUISetting.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
CGUISetting.h Hide compiler warnings from external includes 2025-07-23 10:21:26 +02:00
CGUISprite.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUISprite.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIText.cpp Fix text right alignment with GUI Scale 2025-09-13 10:01:51 -05:00
CGUIText.h Add [locale] inline tag for per-locale fonts 2025-08-04 09:35:41 -05:00
GUIManager.cpp Remove g_GUI usage in simulation2/* 2026-01-23 21:05:18 +01:00
GUIManager.h Remove g_GUI usage in simulation2/* 2026-01-23 21:05:18 +01:00
GUIObjectEventBroadcaster.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
GUIObjectTypes.cpp Fix warnings on the charts tab of summary screen 2025-12-23 10:28:22 +01:00
GUIRenderer.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
GUIRenderer.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
GUIStringConversions.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
GUITooltip.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
GUITooltip.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
IGUIScrollBar.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
IGUIScrollBar.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIIcon.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIMessage.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIStyle.h Fix some headers in gui 2025-07-02 13:20:13 +02:00