Facepunch / sbox-issues

165 stars 11 forks source link

Ability to define Tooltips of variables in MET without having to modify met_tooltips.txt #3212

Open QuackCola opened 1 year ago

QuackCola commented 1 year ago

For?

s&box

What can't you do?

At the moment you are unable to set a tooltip of a variable that would show up when hovering over one without having to mess with in _core\tools\mettooltips.txt.

How would you like it to work?

Perhaps you would be able to have a .meta or .tooltips file shipped with the compiled shader that contains all the defined tooltips for the specified variables? Though i dont know of the best way to define them for shaders not made via shadergraph 🤔 .

Defining Them In Shadergraph

A description text box under the name argument of a node. The end result would be a Tooltip description that would show up when hovering or clicking the parameter name in the material editor.

Oh, and the ability to do a new line in the description would be nice would be nice too.

What have you tried?

modifying _core\tools\mettooltips.txt with additional tooltips. though this way isn't feasible.

Additional context

Tooltip of parameter in Material Editor example : sbox-dev_oOwlZmHPND

Andiq commented 1 year ago

This would be really cool 👍

QuackCola commented 12 months ago

Seems the tooltips are controlled primary by _mettooltips.txt in core\tools\met .

If we could define them in another way that would be nice. Screenshot 2023-07-31 145807 Screenshot 2023-07-31 145817