InventoryDatabaseV2.FormatCurrencyWithSprites
Declaration#
public virtual string FormatCurrencyWithSprites(string currencyId, Nullable<Int32> value)Parameters#
| Name | Description |
|---|---|
| currencyId | Id of the currency |
| value | Total value |
Description#
Return a formatted string with sprites
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod() { var result = InventoryDatabaseV2.instance.FormatCurrencyWithSprites("id", 100); }
}
Declaration#
public virtual string FormatCurrencyWithSprites(bool premium, Nullable<Int32> value)Parameters#
| Name | Description |
|---|---|
| premium | Use premium currency |
| value | Total value |
Description#
Return a formatted string with sprites
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod() { var result = InventoryDatabaseV2.instance.FormatCurrencyWithSprites(true, 100); }
}