afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
987 stars 68 forks source link

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

Closed afritz1 closed 3 years ago

afritz1 commented 3 years ago

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.