ddnet/src/game/editor
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
..
auto_map.cpp Make tileflag names consistent with automappers 2022-12-19 18:39:36 +01:00
auto_map.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
editor.cpp Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
editor.h Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
explanations.cpp Rename TILE_CHECKPOINT_XXX to TILE_TIME_CHECKPOINT_XXX 2022-06-30 23:41:40 +02:00
io.cpp use array again and consider checkpoints 2023-03-17 19:25:50 +01:00
layer_game.cpp Move generic popup handling to UI (port from editor and upstream) 2023-04-07 17:16:16 +02:00
layer_quads.cpp Move generic popup handling to UI (port from editor and upstream) 2023-04-07 17:16:16 +02:00
layer_sounds.cpp Move generic popup handling to UI (port from editor and upstream) 2023-04-07 17:16:16 +02:00
layer_tiles.cpp Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00
popups.cpp Refactor vertical alignment in UI 2023-04-10 17:22:09 +02:00