GDTKItemStatSource.AddStat
Declaration#
public void AddStat(string title, string id, string minimum, string maximum, string value, ImageInfo image, bool hidden)Parameters#
| Name | Description |
|---|---|
| title | Title of the stat |
| id | Id of the stat |
| minimum | Minimum Value of the stat |
| maximum | Maximum Value of the stat |
| value | Value of the stat |
| image | Image Info of the stat |
| hidden | Set stat as hidden |
Description#
Add a new stat
Usage#
Example
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(Inventory inventory) { inventory.statSource.AddStat("My New Stat", "myNewStat", "0", "100", "100"); }}