ddnet/src/game/client
Robert Müller 8507a651d1 Refactor vertical alignment in UI
Add separate constants `TEXTALIGN_TOP`, `TEXTALIGN_MIDDLE` and `TEXTALIGN_BOTTOM` for vertical alignment.

Add shorthand constants for all possible combinations of horizontal and vertical alignment, e.g. `TEXTALIGN_MC` for `TEXTALIGN_MIDDLE | TEXTALIGN_CENTER`.

Replace usage of `SLabelProperties::m_AlignVertically` with these constants in all menu and editor code for more convenient and versatile alignment of text. Use combined horizontal-vertical alignment constants for all existing labels. Manually adjust layout for some elements which were initially misaligned with the new implementation.

Refactoring:

- Use `CORNER_NONE` instead of `0`.
- Improve some `CUIRect` variables names and usage.
2023-04-10 17:22:09 +02:00
..
components Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
prediction Fix ninja dash not getting predicted correctly 2023-03-26 16:42:31 +02:00
animstate.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
animstate.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
component.cpp Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
component.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
gameclient.cpp Select language on first start based on user locale 2023-03-21 21:17:40 +01:00
gameclient.h Only call onresize events if actual size changed 2023-02-25 16:02:38 +01:00
laser_data.cpp Add DDNetLaser to have more info about a laser shot 2022-09-15 01:01:32 +02:00
laser_data.h Add DDNetLaser to have more info about a laser shot 2022-09-15 01:01:32 +02:00
lineinput.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
lineinput.h m_DisplayStr -> m_aDisplayStr 2022-03-31 12:52:24 +02:00
projectile_data.cpp Replace usages of C math functions 2023-03-01 19:26:53 +01:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Move index check before usage, use std::size 2022-11-29 23:32:31 +01:00
race.h Organize game-client includes 2022-05-29 21:24:43 +02:00
render.cpp Replace usages of C math functions 2023-03-01 19:26:53 +01:00
render.h Running and AFK anim. states 2022-09-16 12:30:05 +02:00
render_map.cpp Replace usages of C math functions 2023-03-01 19:26:53 +01:00
skin.h Get away from vector for skins 2022-10-12 22:32:36 +02:00
ui.cpp Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
ui.h Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
ui_listbox.cpp Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
ui_listbox.h Remove unused DoFilter 2023-04-01 13:39:20 +02:00
ui_rect.cpp Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_rect.h Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_scrollregion.cpp Extend CScrollRegion to support scrolling when mouse at edge 2023-03-16 13:07:04 +01:00
ui_scrollregion.h Extend CScrollRegion to support scrolling when mouse at edge 2023-03-16 13:07:04 +01:00