minetest-mods / unified_inventory

An extensible inventory mod which allows searching crafting and browsing for recipes in the same dialogue.
Other
50 stars 38 forks source link

[Feature request] Option to show large item icon by mouse hovering #214

Closed GrimPixel closed 1 year ago

GrimPixel commented 2 years ago

Hi. I am creating a mod about tabletop games. Players need to see their magnified images. So I would like to see this feature for playing the games.

SmallJoker commented 2 years ago

How would this be implemented? There is no "on hover" callback for formspecs, and the actions would be delayed at least by 2x the client <--> server latency.

GrimPixel commented 2 years ago

I see the item name appears when I hover over it. So I guess there is an answer. About that client server delay, I think the images are already in the inventory, so they just need to be enlarged. Anyway. I am working on another solution for playing tabletop games.

SmallJoker commented 2 years ago

Tooltips are a client-side feature and are not implemented by unified_inventory. unified_inventory can only send updated formspecs to the client when there's an event. Anything that's supposed to happen client-side is a task for the Minetest Engine itself.

SmallJoker commented 1 year ago

Cannot implement: lack of Minetest Engine features.