Skip to content

Game.UI.Tooltip.IntTooltip

Assembly: Assembly-CSharp
Namespace: Game.UI.Tooltip

Type: class

Base: NumberTooltip

Summary:
IntTooltip is a concrete, empty specialization of the generic NumberTooltip for the int type. It does not add new fields, properties, or behavior — it simply reuses NumberTooltip so the UI tooltip system can work with integer values without specifying the generic parameter each time. Use this class when you need a tooltip that displays integer values in the UI. For customization (formatting, styling, lifecycle hooks) override behavior in a subclass or modify through the base NumberTooltip API.


Fields

  • None declared in IntTooltip.
    This class inherits any fields (if any) from NumberTooltip and does not introduce additional state.

Properties

  • None declared in IntTooltip.
    Any relevant properties (for setting the numeric value, format strings, or visual configuration) are defined on NumberTooltip. Refer to NumberTooltip documentation for available properties and their usage.

Constructors

  • public IntTooltip()
    IntTooltip has no explicit constructors in the source file, so it uses the default parameterless constructor. Initialization behavior (if any) is provided by the base class NumberTooltip.

Methods

  • None declared in IntTooltip.
    To customize creation or behavior, override virtual/abstract members provided by NumberTooltip (for example lifecycle methods such as OnCreate/OnDestroy/OnUpdate, if available on the base). IntTooltip itself contains no overrides.

Usage Example

// Example: subclassing IntTooltip to perform custom initialization.
// Preserve attribute is useful under IL2CPP builds to avoid stripping.
[Preserve]
public class CustomIntTooltip : IntTooltip
{
    protected override void OnCreate()
    {
        base.OnCreate();
        // Perform initialization here, e.g. set formatting or style
        // (actual APIs live on NumberTooltip<int>; consult its members)
    }
}

Notes and modding tips: - Because IntTooltip is just a typed alias of NumberTooltip, check NumberTooltip for methods/properties to set the displayed value and formatting. - If your mod will be compiled against IL2CPP/stripped builds, annotate classes/methods you need at runtime with [Preserve] where appropriate to prevent them from being removed.