Skip to content

TooltipEffect ​

Inherits: TooltipBase < MarginContainer

The tooltip of an effect on an entity (a buff or a debuff): its name and its description.

Methods ​

voidset_systems_refs( system_hub: GameHost.SystemHub )
voidset_tooltip_data( data: EffectInstance )
voidset_effect( data: Effect, context: String = "" )
Stringstrip_bbcode( text: String )

Method descriptions ​

void set_systems_refs( system_hub: GameHost.SystemHub ) ​

Gives the tooltip the hub of the game systems.

void set_tooltip_data( data: EffectInstance ) ​

Sets the effect the tooltip shows.

void set_effect( data: Effect, context: String = "" ) ​

Set effect with context support (for embedding in other tooltips)

String strip_bbcode( text: String ) ​

The text without its BBCode tags.