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
Add search/filter functionality to object selection window #1837
Add search/filter functionality to object selection window #1837
Conversation
674b51d
to
883f7c9
Compare
@@ -342,6 +342,16 @@ namespace OpenLoco::Input | |||
} | |||
} | |||
|
|||
ti = WindowManager::find(WindowType::objectSelection); | |||
if (ti != nullptr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should start handling these through the window manager, ideally passing through to an event for the active window only. Something for a future PR though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah i was a bit confused as to what this was about.
f016822
to
f76660f
Compare
This PR introduces search/filter functionality to the object selection window, performing case-insensitive string matching on the visible name and object filenames.
Matches by visible name:
Or by object filename: