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

Refactor StructureInspector #1619

Merged
merged 14 commits into from
Feb 22, 2025
Merged

Refactor StructureInspector #1619

merged 14 commits into from
Feb 22, 2025

Conversation

DanRStevens
Copy link
Member

General refactoring of StructureInspector, which will hopefully make it easier to eventually dynamically resize this view.

Related:

It's a bit strange having to pass in the `position`, though it does mean the result can be stored in a `const` variable. It also means we don't need to store extra data in the class instance to handle this.

Long term we should probably make both tables fields of the class, rather than rebuild them every frame. Though doing so would mean moving the `#include` for `StringTable.h` to the `StructureInspector` header file. That has transitive include implications, which I'd like to avoid for the time being.
There's really no need to update the `title` every frame.
@DanRStevens DanRStevens merged commit 7bae98d into main Feb 22, 2025
7 checks passed
@DanRStevens DanRStevens deleted the refactorStructureInspector branch February 22, 2025 00:12
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