Skip to main content

GDTKItemStatSource.AddStat

Declaration#

public void AddStat(string title, string id, string minimum, string maximum, string value, ImageInfo image, bool hidden)

Parameters#

NameDescription
titleTitle of the stat
idId of the stat
minimumMinimum Value of the stat
maximumMaximum Value of the stat
valueValue of the stat
imageImage Info of the stat
hiddenSet 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");    }}