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

Filtering should respect the game's dotted path notation #289

Open
elluminance opened this issue Aug 9, 2023 · 0 comments
Open

Filtering should respect the game's dotted path notation #289

elluminance opened this issue Aug 9, 2023 · 0 comments

Comments

@elluminance
Copy link
Contributor

Many resources in CrossCode use a form of "dotted path". For example, when loading a map you do something like ig.game.teleport("autumn.path-01") to load the map stored at data/maps/autumn/path-01.json. Or, when choosing a character for an NPC or dialog - you would do something like main.lea.

For the new graphical selector, it would be convenient if one could search for main.lea and filter it down to the main "namespace" and search in there for lea. For example, this search would only show ones that match the substring lea.

image

While it is possible to search for the second part by just typing lea, it doesn't filter, and only highlights ones that have that in their name, which isn't necessarily the most helpful when searching through larger character folders.

Potentially, to address filtering in merely subtypes (ignoring the "main type") those it can be supported to do a "wildcard" such as *.lea or merely .lea (or anything else, I leave that detail to the implementers and/or maintainers to decide.)

Everything I've said above was specifically in the context of the NPC selector out of the necessity for an example, but would also be applicable to things like the enemy selector as well.

As 2767mr pointed out, this could also be applied to the map load window, allowing searching for maps by using their dotted path. (I imagine if #280 gets implemented this could be very helpful to filtering maps.)

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

No branches or pull requests

1 participant