ResoniteModdingGroup / MonkeyLoader.GamePacks.Resonite

MonkeyLoader Game Pack which provides hooks for Resonite mods.
https://resonitemoddinggroup.github.io/MonkeyLoader.GamePacks.Resonite/
GNU Lesser General Public License v3.0
15 stars 2 forks source link

Add Tooltip system based on Tooltippery #60

Closed Banane9 closed 2 months ago

Banane9 commented 2 months ago

Based on Psychpsyo/Tooltippery. The only factor for backwards compatibility with old tooltippery content is supporting tooltips on buttons with a Comment component with the Text TooltipperyLabel:.

Banane9 commented 2 months ago

Basic version of tooltips, huzzah.

The locale strings should be defined in a separate package, so that they can be updated without a whole release of the gamepack. It may also need extra code for tooltips where more particular details are required to be added, or to properly determine what to show - e.g. Setting session roles only has their index as an argument.

Mods can also add tooltips to their buttons using the LocalActionButtonExtensions.WithTooltip extension methods.

Nytra commented 2 months ago

Maybe the tooltips should only show up if you have the dev tool equipped?

Banane9 commented 2 months ago

Maybe the tooltips should only show up if you have the dev tool equipped?

Well, they can appear on any kind of button, I just happened to pick some inspector ones to show it.

Also whoops on the other local slot ones lol