Table of Contents

Class TooltipPalette

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The colours a tooltip's tones and row kinds resolve to.

public static class TooltipPalette
Inheritance
TooltipPalette
Inherited Members

Remarks

Producers never name a colour. They say what a row is — a stat, a requirement, an improvement, a penalty — and this maps that to the theme. The old system had every template type reaching for a hex constant while it concatenated its tooltip, which is why the same idea came out a different colour depending on which system wrote it, and why nothing could be re-themed without editing every producer in the game.

The client overwrites these from the loaded UI theme at boot; the defaults are the theme's own values so a server, a test, or an unthemed editor session still produces sensible text.

Properties

Accent

Worth noticing without being good or bad. The brand accent.

public static Color Accent { get; }

Property Value

Color

Bad

A penalty, or something the character cannot satisfy. The danger red.

public static Color Bad { get; }

Property Value

Color

Good

An improvement. The stamina green.

public static Color Good { get; }

Property Value

Color

Label

Descriptions and secondary text. Abyss-200.

public static Color Label { get; }

Property Value

Color

Muted

Background detail. Abyss-300.

public static Color Muted { get; }

Property Value

Color

Stat

Stat values. Signal blue highlight.

public static Color Stat { get; }

Property Value

Color

Title

Names, headings, and the tooltip title. Abyss-100.

public static Color Title { get; }

Property Value

Color

Methods

ColorFor(TooltipRowKind, TooltipTone)

The rich-text hex string for a row's resolved colour.

public static string ColorFor(TooltipRowKind kind, TooltipTone tone)

Parameters

kind TooltipRowKind
tone TooltipTone

Returns

string

Initialize(Color, Color, Color, Color, Color, Color, Color)

Replaces the palette, normally from the loaded UI theme.

public static void Initialize(Color title, Color label, Color stat, Color good, Color bad, Color muted, Color accent)

Parameters

title Color
label Color
stat Color
good Color
bad Color
muted Color
accent Color

Resolve(TooltipRowKind, TooltipTone)

The colour a row resolves to, from its tone first and its kind second.

public static Color Resolve(TooltipRowKind kind, TooltipTone tone)

Parameters

kind TooltipRowKind

What the row is.

tone TooltipTone

How it reads.

Returns

Color

ToHex(Color)

Formats a colour as the #RRGGBBAA rich text understands.

public static string ToHex(Color color)

Parameters

color Color

Returns

string