Skip to content

Convert UI to Dear ImGui#883

Merged
chreden merged 132 commits intomasterfrom
issue/402
Feb 22, 2022
Merged

Convert UI to Dear ImGui#883
chreden merged 132 commits intomasterfrom
issue/402

Conversation

@chreden
Copy link
Copy Markdown
Owner

@chreden chreden commented Feb 11, 2022

This PR removes the existing homemade trview UI system and replaces it with Dear ImGui which was added in a previous PR. Almost all functionality was retained and a few extra bits have come for free. This should hopefully make new features be made faster as there won't be as much fiddling around with the UI.

Changes:

  • Remove trview.ui, trview.ui.render, trview.ui.tests and all contained files
  • Convert all UI elements to use ImGui
  • Create something resembling a testing framework for ImGui - this lets the tests click on element and check some of their properties. This uses the ImGui testing hooks plus a couple of others that I added.
  • Convert all tests in trview.app.tests to test ImGui using the system mentioned previously.

Closes #402

Add docking branch of ImGui from commit 3e0d6ec895483e33a663d3cfc1c58f1cafbe978c
#402
Keep DX11 and Win32
Done apart from:
- selection
- filtering
- sorting
Also put nav selection into triggered by.
#402
Still needs placing in window centre
#402
@chreden chreden changed the title Issue/402 Convert UI to Dear ImGui Feb 21, 2022
@chreden chreden self-assigned this Feb 21, 2022
@chreden chreden requested a review from makotocchi February 21, 2022 22:53
@chreden chreden added the ui label Feb 21, 2022
@chreden chreden marked this pull request as ready for review February 21, 2022 22:58
@chreden chreden merged commit fe21a21 into master Feb 22, 2022
@chreden chreden deleted the issue/402 branch February 22, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate UI to a real UI framework

2 participants