mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 10:05:54 +00:00
UI Inventory management
This commit is contained in:
parent
f4f193af7a
commit
c9abac3dc1
20 changed files with 262 additions and 72 deletions
|
|
@ -5,12 +5,24 @@ namespace Cirno.Scripts.Resources;
|
|||
[GlobalClass]
|
||||
public partial class LootItem : Resource
|
||||
{
|
||||
[Export] public string ItemName { get; set; }
|
||||
[Export] public string ItemKey { get; set; }
|
||||
[Export] public ItemTypes Item;
|
||||
[Export] public int Amount;
|
||||
[Export] public int Max;
|
||||
[Export] public bool PickupIfMaxed;
|
||||
[Export] public bool ConsumeOnUse;
|
||||
|
||||
[Export] public UiItemType UiType;
|
||||
|
||||
[Export] public AtlasTexture InventorySprite;
|
||||
[Export] public SpriteFrames WorldSprite;
|
||||
[Export] public PackedScene HudItemScene;
|
||||
|
||||
}
|
||||
|
||||
public enum UiItemType
|
||||
{
|
||||
NoUI,
|
||||
Icon,
|
||||
IconText
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue