AngeliA
Search Results for

    Show / Hide Table of Contents

    Class PlayerMenuItem<UI>

    A type of item that spawns a player partner menu when use

    Implements
    IMapItem
    Type Parameters
    Name Description
    UI

    What type of menu does it spawns

    Constructors

    PlayerMenuItem()

    Declaration
    public PlayerMenuItem()

    Properties

    Column

    Inventory column count of the menu

    Declaration
    protected abstract int Column { get; }

    MaxStackCount

    Count limitation for multiple items inside one inventory slot

    Declaration
    public override int MaxStackCount { get; }
    Overrides
    Item.MaxStackCount

    Row

    Inventory row count of the menu

    Declaration
    protected abstract int Row { get; }

    Methods

    CanUse(Character)

    True if this item can be use at current frame

    Declaration
    public override bool CanUse(Character character)
    Overrides
    Item.CanUse(Character)

    OnPanelOpened(UI)

    This function is called when the menu is spawned

    Declaration
    protected virtual void OnPanelOpened(UI panelUI)
    Parameters
    Type Name Description
    UI panelUI

    Instance of the menu

    Use(Character, int, int, out bool)

    Perform the logic when the item get used

    Declaration
    public override bool Use(Character character, int inventoryID, int itemIndex, out bool consume)
    int inventoryID

    Inventory ID of this holder

    int itemIndex

    Index of this item inside the inventory

    bool consume

    True if the item should disappear after being used

    Returns
    Type Description
    bool

    True if the item is used

    Overrides
    Item.Use(Character, int, int, out bool)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค