feildmaster / UnderScript

Script for Undercards. An undertale fan-made game.
https://git.io/fxysg
4 stars 3 forks source link

Implement "explanation chains" #31

Open nwawrzyniak opened 4 years ago

nwawrzyniak commented 4 years ago

Sometimes you don't get information about generated cards (green rarity) easily. Especially for them it should be possible to check the keywords of the card on another card.

Since it is hard to understand what I mean with that, take a look at this example with the normal, current Undercards behavior:

C-Round on the Crafting page: Search for C-Round and hover over the word Crown in his text. You get a preview of the card Crown. In the Crown card text there is the term K-Round, but you cannot hover over that term to get a preview, since the Crown card vanishes as soon as you move the cursor away from its name on C-Round. You have no idea what K-Round is or does. You would have to turn on the green filter for generated cards specifically, search for either Crown or K-Round and check it then.

TL;DR Solution: It should be possible to make a card that you see because you hover over another card stay on the screen and be checkable. I will call this concept "explanation chains" or "preview chains".

Specifics: For controls I recommend that right clicking while there is a hovered card should make it stay. Currently on Crafting it is still the standard internet browser context menu anyway. In the chat it is overwritten with better functions already. A left click anywhere should take the newest/upmost card from the shown cards stack and stop displaying the card. Every additional information layer/card layer should be a little off-centered from the last one so they cascade and save space. Recursion is possible if there are cards that have each other in their text. You could fill your entire screen if you're bored. Not a useful function, but it would be more complicatetd to not implement preview chains like that.

If there is anything unclear what I even mean with something, feel free to ask.

feildmaster commented 4 years ago

I could do that ... but then I'd have to completely override the function onu uses to display cards. Not really a problem but maybe(?) too much to contend with. I'll look into it.