Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework dialog boxes to use modern components and sizing #653

Merged
merged 4 commits into from
Oct 12, 2024

Conversation

Vagabond
Copy link
Member

Dialog boxes were previously very hardcoded. This PR makes them use the more modern container widgets and text rendering so they are more flexible with regard to their contents.

This also improves the menu widget layout behavior and adds support for centered horizontal menus, which are used for the dialog buttons.

Dialog boxes are now made up of a menu containing a textlabel, for the dialog text, then a horizontal, centered menu that holds the dialog buttons.

Dialog boxes were previously very hardcoded. This PR makes them use the
more modern container widgets and text rendering so they are more
flexible with regard to their contents.

This also improves the menu widget layout behavior and adds support for
centered horizontal menus, which are used for the dialog buttons.

Dialog boxes are now made up of a menu containing a textlabel, for the
dialog text, then a horizontal, centered menu that holds the dialog
buttons.
@Vagabond
Copy link
Member Author

Don't merge this yet, it breaks the mainmenu somewhat.

@Vagabond
Copy link
Member Author

Ok, this should be good now.

src/game/scenes/vs.c Outdated Show resolved Hide resolved
@Vagabond Vagabond merged commit 2785545 into master Oct 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants