Table of Contents

Class UITKTooltipView

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Draws TooltipContent as real UI Toolkit elements.

public static class UITKTooltipView
Inheritance
UITKTooltipView
Inherited Members

Remarks

The single output path for every description in the game. A tooltip used to be one Label holding a rich-text blob, which meant a stat could not be aligned, a change could not be shown beside the value it changed, and nothing could be reused anywhere but under the cursor.

Rows become elements here, so the same content renders as a hover tooltip, as the details pane in the abilities panel, and as the crafting preview — the three places that need it — with the layout coming from USS rather than from tags baked into a string. Rich text is still honoured inside a row's text: UI Toolkit's Label supports <b>, <i>, <u>, <color>, <size> and <mark>, so content that genuinely needs inline formatting can carry it.

Fields

VIEW_CLASS

USS class on the container holding rendered rows.

public const string VIEW_CLASS = "tip"

Field Value

string

Methods

Render(VisualElement, TooltipContent, bool)

Fills container with the rows of content.

public static void Render(VisualElement container, TooltipContent content, bool showIcon = true)

Parameters

container VisualElement

The element to fill. Its children are replaced.

content TooltipContent

The content to draw. Null or empty clears the container.

showIcon bool

Whether to draw the content's icon beside the title.