SusStatusEffect

Buff / debuff chip — icon with optional stacks, multiply, turns; tooltip on mini/normal.
Package
SusGame · HUD (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Size | Prop<string> | "normal" | |
Icon | Prop<string> | "" | |
Title | Prop<string> | "" | |
Description | Prop<string> | "" | |
Stacks | Prop<int> | 1 | |
Multiply | Prop<float> | 1f | |
TurnsLeft | Prop<int> | 0 | |
IsDebuff | Prop<bool> | false |
Slots
No slots.
Events
| Name | Field | Payload |
|---|---|---|
Clicked | OnClicked | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-status-effectsus-status-effect__descsus-status-effect__iconsus-status-effect__metasus-status-effect__multiplysus-status-effect__stackssus-status-effect__titlesus-status-effect__turnssus-status-effect--buffsus-status-effect--debuffsus-status-effect--largesus-status-effect--minisus-status-effect--normalsus-status-effect-host
Usage
csharp
var fx = new SusStatusEffect();
fx.Size.Value = "normal"; // mini | normal | large
fx.ApplyData(new SusStatusEffectData
{
Id = "regen",
Icon = "heart",
Title = "Regen",
Description = "Restore HP each turn",
Stacks = 2,
Multiply = 1f,
TurnsLeft = 3,
IsDebuff = false,
});
fx.OnClicked += () => { /* open detail */ };xml
<template>
<sus:SusStatusEffect :Size="Size.Value"
:Icon="Icon.Value"
:Title="Title.Value"
:Description="Desc.Value"
:Stacks="Stacks.Value"
:Multiply="Mul.Value"
:TurnsLeft="Turns.Value"
:IsDebuff="Debuff.Value"
@clicked="OnClicked" />
</template>
<script>
public Prop<string> Size = new("normal");
public Prop<string> Icon = new("heart");
public Prop<string> Title = new("Regen");
public Prop<string> Desc = new("Restore HP each turn");
public Prop<int> Stacks = new(2);
public Prop<float> Mul = new(1f);
public Prop<int> Turns = new(3);
public Prop<bool> Debuff = new(false);
void OnClicked() { /* … */ }
</script>| Prop / API | Role |
|---|---|
Size | mini (icon) · normal (meta) · large (title+desc, tooltip off) |
Icon · Title · Description | Visual + tooltip copy |
Stacks | Badge xN when > 1 (hidden in mini) |
Multiply | ×N when ≠ 0/1 (normal only) |
TurnsLeft | Nt when > 0 |
IsDebuff | Debuff vs buff chrome / icon color |
ApplyData(SusStatusEffectData) | Batch-set fields |
OnClicked | Click on chip body |
Notes
- Built on kit
SusTooltip+SusIcon— theme tokens cascade from SusKit. - Unit cards / rails usually own instances via
SetEffects; standalone for inspectors / large detail. - Compact icon-only trays: see SusBuffTray.