Page 1 of 1

Generating fancy Tooltips

Posted: Sat Jun 10, 2017 8:30 pm
by moon69
Hi All.

I know to easily create a button with a plain text Tooltip...

Code: Select all

game.player.gui.center.add{type="button", caption="hello", tooltip="This is a tooltip."}
Is there any easyish way to generate a tooltip with custom rich string formatting (Bold etc.) ? Or even better add some inline icons/images?

Is it possible to somehow get a custom button in a mod to display a base-game fancy Tooltip (eg: the base Recipe tooltip that shows the craft time, ingredients with icons and other info)?

Cheers.