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 Tile Inspector widget definitions #12869

Merged
merged 21 commits into from
Nov 7, 2021

Conversation

Broxzier
Copy link
Member

@Broxzier Broxzier commented Sep 6, 2020

This is currently a Work In Progress ready for review, as part of #12329.

Tasks:

  • 'Main' widgets (top buttons, spinners, list, groupboxes, etc)
  • Surface-specific widgets
  • Path-specific widgets
  • Track-specific widgets
  • Scenery-specific widgets
  • Entrance-specific widgets
  • Wall-specific widgets
  • Large scenery-specific widgets
  • Banner-specific widgets
  • Corrupt element-specific widgets
  • Better name constants like SUR_GBPB They're now removed
  • Introduce function for positioning the widgets
  • Fix horizontal scrollbar

This PR also corrects some incorrect pixel offsets, such as these:

@AaronVanGeffen AaronVanGeffen added this to In-Progress in New Window Framework via automation Sep 6, 2020
@Broxzier Broxzier force-pushed the feature/TI-widget-code-cleanup branch 2 times, most recently from 311dc0f to 44c9d24 Compare September 6, 2020 20:25
@Broxzier Broxzier force-pushed the feature/TI-widget-code-cleanup branch from 44c9d24 to 8880f0d Compare September 27, 2020 20:47
@AaronVanGeffen
Copy link
Member

@Broxzier Would you like some help with this?

@Gymnasiast
Copy link
Member

I want to merge this. Please rebase it and make it ready to merge. The rest of the refactor can be picked up in later PRs.

@Broxzier Broxzier force-pushed the feature/TI-widget-code-cleanup branch from 8880f0d to 0d6a503 Compare October 21, 2021 21:42
@Broxzier Broxzier force-pushed the feature/TI-widget-code-cleanup branch 2 times, most recently from 10ec5a0 to e63b83f Compare October 22, 2021 21:23
@Broxzier Broxzier force-pushed the feature/TI-widget-code-cleanup branch from 36d4f85 to 15d4d2d Compare November 1, 2021 19:31
@Broxzier Broxzier marked this pull request as ready for review November 1, 2021 20:56
@Broxzier
Copy link
Member Author

Broxzier commented Nov 1, 2021

This PR is now ready for review.

Copy link
Member

@Gymnasiast Gymnasiast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks reasonable, would like to test.

@Gymnasiast Gymnasiast added the testing required PR needs to be tested before it is merged. label Nov 1, 2021
@Gymnasiast Gymnasiast merged commit 36bbb01 into OpenRCT2:develop Nov 7, 2021
New Window Framework automation moved this from In-Progress to Done Nov 7, 2021
@Gymnasiast Gymnasiast added this to the v0.3.6/v0.4.0 milestone Nov 7, 2021
@Broxzier Broxzier deleted the feature/TI-widget-code-cleanup branch November 7, 2021 18:36
@AaronVanGeffen
Copy link
Member

Fwiw, the changelog entry hasn't been moved to v0.3.5+ yet.

@Broxzier
Copy link
Member Author

Broxzier commented Nov 7, 2021

Good catch.

Gymnasiast added a commit that referenced this pull request Nov 7, 2021
@Gymnasiast
Copy link
Member

Fixed in b78908c.

Gymnasiast added a commit to Gymnasiast/OpenRCT2 that referenced this pull request Nov 21, 2021
- Improved: [OpenRCT2#12825, OpenRCT2#12869] The Tile Inspector window’s layout has been tweaked slightly.
- Change: [OpenRCT2#15899] Weird bonus for path 0 - likely intended as a queue bonus (original bug).
- Fix: [OpenRCT2#15138] Sometimes small scenery stays when building through it.
- Fix: [OpenRCT2#15620] Placing track designs at locations blocked by anything results in wrong error message.
- Fix: [OpenRCT2#15843] Tile Inspector can be resized too small.
- Fix: [OpenRCT2#15844] Tile Inspector has inconsistent text colours.
- Fix: [OpenRCT2#15878] Crash when opening a ride window for a corrupted vehicle.
- Fix: [OpenRCT2#15908] Crash when track elements have no ride assigned.
- Fix: [OpenRCT2#15919] Research status incorrectly considered for scenery when in editor modes.
- Fix: [OpenRCT2#15938] Track designs of some ride types are incorrectly exported to TD6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing required PR needs to be tested before it is merged.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants