mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 18:14:19 +00:00
8507a651d1
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. |
||
---|---|---|
.. | ||
components | ||
prediction | ||
animstate.cpp | ||
animstate.h | ||
component.cpp | ||
component.h | ||
gameclient.cpp | ||
gameclient.h | ||
laser_data.cpp | ||
laser_data.h | ||
lineinput.cpp | ||
lineinput.h | ||
projectile_data.cpp | ||
projectile_data.h | ||
race.cpp | ||
race.h | ||
render.cpp | ||
render.h | ||
render_map.cpp | ||
skin.h | ||
ui.cpp | ||
ui.h | ||
ui_listbox.cpp | ||
ui_listbox.h | ||
ui_rect.cpp | ||
ui_rect.h | ||
ui_scrollregion.cpp | ||
ui_scrollregion.h |