Skip to content
Version 2.35.0
↓ Get the launcher

IGameText.ResolveDisplayName method

The label to show for a row, given the name the game (or IGameDataCombat) gave you:

  1. gameName when it is a real name and the row is not known to be unnamed;
  2. else the English name (GetName);
  3. else the English design name (GetDesignName) — isDesignFallback = true, so you can mark it, e.g. append “ (<id>)“;
  4. else gameName when non-blank, else “Buff <id>” / “Skill <id>”.

Allocates only on the last fallback. Before IsReady this returns step 1 or 4.

public string ResolveDisplayName(GameTextKind kind, int id, string? gameName,
out bool isDesignFallback)