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

Separate UI panel definitions into model-view-controller files #209

Merged
merged 42 commits into from
Jun 4, 2021

Conversation

afritz1
Copy link
Owner

@afritz1 afritz1 commented Jun 4, 2021

The first big step of the UI refactoring: each Panel class now fetches its data and callback functions from UiModel/UiView/UiController files. Giving each value/function a name also makes it easier to mod in the future.

Next will likely be something along the lines of refactoring input event handling or converting Panel render() methods into lists of draw calls.

afritz1 added 30 commits May 19, 2021 21:16
Trying out this pattern to see if it'll help with the UI refactor.
These files' data and functions might be shared across a few different situations, like character creation, the in-game character sheet, and the character equipment screen.
Also cleaned up ChooseAttributesPanel so it uses these new files.
Also started adding some separators to the model/view/controller code sections since they are getting a little big with all the various parts of character creation.
Still needs some work in a few places but will be easier once draw calls and UiTextureID are in.
@afritz1 afritz1 added this to the 0.14.0 milestone Jun 4, 2021
@afritz1 afritz1 merged commit e454d27 into master Jun 4, 2021
@afritz1 afritz1 deleted the ui-view-redesign branch June 4, 2021 05:18
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.

1 participant