Filtering should respect the game's dotted path notation

Aperta
#289 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start by locating the graphical NPC and enemy selectors, then check whether the map load window uses the same filtering code. The issue asks for dotted paths such as main.lea to filter within the main namespace, with possible wildcard or subtype-only searches; maintainers still need to decide the exact syntax and scope. Done means searches filter matching entries in the relevant selectors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.)

Lingua principale
TypeScript
Stelle
59
Fork
19
Merge medio
32m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CCDirectLink/crosscode-map-editor

Tutte le issue di CCDirectLink/crosscode-map-editor

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.