Rewrite and simplify Inventory Menu, various fixes for item effects
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
using Chickensoft.Collections;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Zennysoft.Game.Implementation;
|
||||
using System;
|
||||
using Zennysoft.Ma.Adapter;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
public interface IItemSlot : IHBoxContainer
|
||||
public interface IItemSlot : IButton
|
||||
{
|
||||
public InventoryItem Item { get; set; }
|
||||
public AutoProp<InventoryItem> Item { get; }
|
||||
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
public void SetItemStyle();
|
||||
|
||||
public void SetSelectedItemStyle();
|
||||
|
||||
public void SetEquippedItemStyle();
|
||||
|
||||
public void SetEquippedSelectedItemStyle();
|
||||
public event Action<InventoryItem> ItemPressed;
|
||||
public event Action<IItemSlot> ItemEnterFocus;
|
||||
public event Action<IItemSlot> ItemExitFocus;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user