SusInventoryStats

Weight row + modifier list — shell refreshes from InventoryModel / character stats after equip changes.
Package
SusGame · Inventory (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
CurrentWeight | Prop<float> | -1f | v-model |
MaxWeight | Prop<float> | 100f | v-model |
Slots
No slots.
Events
No public events.
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-inventory-statssus-inventory-stats__mod-namesus-inventory-stats__mod-rowsus-inventory-stats__mod-valuesus-inventory-stats__modifierssus-inventory-stats__weight-labelsus-inventory-stats__weight-label--oversus-inventory-stats__weight-label--warnsus-inventory-stats__weight-row
Usage
Prefer parent SusInventory — it owns weight + modifiers. Standalone:
csharp
var stats = new SusInventoryStats();
stats.CurrentWeight.Value = 12.5f; // < 0 hides the weight row
stats.MaxWeight.Value = 100f;
stats.Modifiers = new List<ModifierInstance> { /* … */ };
stats.RefreshModifiers();xml
<template>
<sus:SusInventoryStats :CurrentWeight="Cur.Value"
:MaxWeight="Max.Value" />
</template>
<script>
public Prop<float> Cur = new(12.5f);
public Prop<float> Max = new(100f);
// Modifiers list + RefreshModifiers() from C# after mount.
</script>| Prop / API | Role |
|---|---|
CurrentWeight | Display kg; < 0 hides the weight row |
MaxWeight | Cap for warn / over USS classes |
Modifiers | List<ModifierInstance> (not a Prop) |
RefreshModifiers() | Rebuild modifier rows from Modifiers |
Notes
- Warn at ≥ 90% of max; over-weight uses
--overclass on the label. - Shell sets
MaxWeightfrom model stats /SusInventorySystemParamson Configure. - Modifier rows show
StatName+ signed value frommod.Def.