From 27108b9038c37c2910e9d5872065005d17841d75 Mon Sep 17 00:00:00 2001 From: N Date: Thu, 14 May 2026 14:38:49 -0300 Subject: [PATCH] Document: Extended text hover tooltips support --- Text-Styling.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Text-Styling.md b/Text-Styling.md index 2c1d0a2..e7dd446 100644 --- a/Text-Styling.md +++ b/Text-Styling.md @@ -528,9 +528,7 @@ You can also apply a custom effect using [SMODS.DynaTextEffect](https://github.c ## Text hover tooltip modifier `{T:}` -{T:tooltip-key} adds tooltip functionality to the text, which displays a small tooltip UI above the text when the text is hovered over. - -*`tooltip-key`* must be the name of a key found in either `G.P_CENTERS` or `G.P_TAGS`. See the entries in the SMODS.Center category and [SMODS.Tag](https://github.com/Steamodded/smods/wiki/SMODS.Tag) for more. +{T:tooltip-key} adds tooltip functionality to the text, which displays a small tooltip UI above the text when the text is hovered over. If `tooltip-key` can be the name of a key found in either `G.P_CENTERS` or `G.P_TAGS` or a description found in `G.localization.descriptions.Other`. You can additionally use `T_set:set-key` to specify a set in `G.localization.descriptions` to pull from, and `T_vars:var1;var2;...` to replace any localizarion variables in the text. ### Examples @@ -551,8 +549,31 @@ You can also apply a custom effect using [SMODS.DynaTextEffect](https://github.c Crystal Ball with Tooltip Animation - + + +

+ + ```pas + "Shop can have {C:perishable,T:perishable,T_vars:5;5}Perishable{} Jokers" + ``` + + + TBD + + + + +

+ ```pas + "{T_set:Blind,T:bl_arm}The Arm{}" + ``` + + + TBD + + + ## Text scale modifier `{s:}`