-
Notifications
You must be signed in to change notification settings - Fork 40
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
Enhance or replace drop-down lists (specially in the inspectors) for better filtering and sorting #60
Comments
Most of menus including drop-down controls represent underlying data. It is somehow the policy. |
Alright, that's fair enough. I don't know the internals of Godot enough to provide much assistance here, but I'll leave the draft code here. Feel free to close or keep this issue open, if you'd like. Though I don't think I'll be of much help with GDScript. |
Let's keep this issue open. It's an enhancement that should be done one way or another. |
This commit adds a new button near the main resource pickers (e.g. variable or character selectors), which if pressed, filters and/or sorts the options, according to what is defined in the respective inspector. This also covers #60.
Newly implemented feature allows resource pickers to follow sorting and filtering instructions defined in the respective inspector tabs. For example, if you want your variables to be sorted alphabetically in the Condition node inspector, you can activate the sorting in the Variables inspector tab (by default active) and toggle on the filter button adjacent to the selector. It works for other options such as per-scene, per-type or text filters as well. |
The variables tab in the Inspector is sorted alphabetically, but the drop-down menu of the Condition node isn't. I use namespaces in variables to sort them properly in the Inspector variable tab, but when I am to select them in the Condition node's
Check for variable
it seems to be sorted by when it was created instead.Code from potential pull request
File modified:
nodes/condition/inspector.gd
I considered making a pull request for this, but I'm not really sure about the quality of my code, as I am unfamiliar with GDScript and the codebase. For example, I'm pretty sure there's a better solution than making a class for sorting and shoving it into the middle of the file. But it worked, and I have to go in a couple of minutes, so I don't really have time for more. I'd appreciate it if you could at least look over the code, and consider implementing something like it.
I can make a pull request if you'd like, after you've looked over it and point out what abominations are hiding within it, but also feel free to simply yoink things as you'd like.
The text was updated successfully, but these errors were encountered: