klikli-dev / modonomicon

Data-driven minecraft in-game documentation with progress visualization.
25 stars 9 forks source link

Tag for entry pages for highlighting them until a condition is completed #249

Open DaFuqs opened 2 weeks ago

DaFuqs commented 2 weeks ago

Is your feature request related to a problem? Please describe. Spectrum's progression is fairly complex, so I would like to give players small hints where there might be something interesting to discover, still. What would be perfect is a small icon marking the entry that draws attention onto it, that renders until the player found what was there to find.

Describe the solution you'd like Back when using Patchouli, entries supported a tag called turnin, which gave entries an orange dot until an advancement was completed. See the written book entry here:

image

With Conditions, though, Modonomicon can go quite a bit more fancy instead of just having an advancement check! Maybe even allowing for different dot shapes/colors, like entries support different frame types?

klikli-dev commented 2 weeks ago

I like this! Let's brainstorm a bit how this can be implemented.

Anything obvious/big I am missing?

DaFuqs commented 2 weeks ago

Looks pretty all-emcompassing to me. That should be pretty much everything required.

The only thing that comes to mind is when to render the marker. I feel rendering only when the entry is unlocked ia the most obvious take. Might there be reasons when one want to render it when the entry is already visible, but not yet unlocked? (I got nothing)

klikli-dev commented 2 weeks ago

Hmm that is a good question. I think we can start with rendering it when unlocked (because only then the player can open it to investigate I suppose), but if someone has a use case for locked it should be pretty trivial to add