Adds horizontal widget stretching to zgui. The new can_stretch, stretch, and stretch_to_self methods of the zgui::Widget trait are implemented for most of the widgets.
Adds a with_color chain method to zgui::Label.
Adds utils::add_offsets_and_bg helper function.
Modifies the agent info panel:
adds colored dots (adds explicit color constants to do this),
aligns the values to the right using stretchable spacer widgets,
changes title style to ~~~.
Refactors the math behind Button's geometry.
Stretches the buttons in the main menu screen to the same width.
Changes the layout of the campaign menu screen a little and decreases its main font size to normal.
Changes the layout of the agent_info and ability_info popups. Increases the width of the "back" button to one-third of the window.
Changes the layout of the confirm popup: stretches the "yes" and "no" buttons to one-third of the window.
Makes popup bg less transparent.
Adds constants for agent info dots' colors.
Fixes some abilities extended descriptions.
Closes #582 ("Similary-Sized Buttons in Main Menu")
Closes #584 ("Align info buttons in the campaign menu and the abilities panel")
Closes #585 ("Add colored dots to the corresponding lines of the agent info panel")
This PR:
zgui
. The newcan_stretch
,stretch
, andstretch_to_self
methods of thezgui::Widget
trait are implemented for most of the widgets.with_color
chain method tozgui::Label
.utils::add_offsets_and_bg
helper function.~~~
.Button
's geometry.campaign
menu screen a little and decreases its main font size to normal.agent_info
andability_info
popups. Increases the width of the "back" button to one-third of the window.confirm
popup: stretches the "yes" and "no" buttons to one-third of the window.Closes #582 ("Similary-Sized Buttons in Main Menu") Closes #584 ("Align info buttons in the campaign menu and the abilities panel") Closes #585 ("Add colored dots to the corresponding lines of the agent info panel")