AngeliA
Search Results for

    Show / Hide Table of Contents

    Class BodyGadget

    Representation of a pose character's extra body part. Always use instance from pool.

    Examples
    BodyGadget.TryGetGadget(id, out var result);

    Properties

    BodyGadgetSystemReady

    Declaration
    public static bool BodyGadgetSystemReady { get; }

    GadgetID

    Global unique AngeHash of this body gadget

    Declaration
    public int GadgetID { get; }

    GadgetName

    Global unique AngeName of this body gadget

    Declaration
    public string GadgetName { get; }

    GadgetType

    Type of this body gadget

    Declaration
    public abstract BodyGadgetType GadgetType { get; }

    SheetIndex

    Which artwork sheet does this body gadget get it's artwork from

    Declaration
    public int SheetIndex { get; }

    SpriteLoaded

    True if artwork sprite is loaded

    Declaration
    public virtual bool SpriteLoaded { get; }

    Methods

    DrawGadget(PoseCharacterRenderer)

    Render the gadget for the given character

    Declaration
    public abstract void DrawGadget(PoseCharacterRenderer renderer)

    DrawGadgetGizmos(IRect, Color32, int)

    Render the gadget as gizmos

    Declaration
    public virtual void DrawGadgetGizmos(IRect rect, Color32 tint, int z)
    Parameters
    Type Name Description
    IRect rect

    Global rect position

    Color32 tint

    Color tint

    int z

    Z position for sorting

    FillFromSheet(string)

    Load sprite data from Renderer.CurrentSheet

    Declaration
    public virtual bool FillFromSheet(string basicName)

    ForAllGadget()

    Iterate through all body gadgets

    Declaration
    public static IEnumerable<KeyValuePair<int, BodyGadget>> ForAllGadget()

    GetDefaultGadgetID(int, BodyGadgetType)

    Get body gadget id of the default gadget for the given character

    Declaration
    public static int GetDefaultGadgetID(int characterID, BodyGadgetType type)

    GetDisplayName(string, out int)

    Declaration
    public string GetDisplayName(string typeName, out int languageID)

    TryGetGadget(int, out BodyGadget)

    Get body gadget instance from system pool

    Declaration
    public static bool TryGetGadget(int gadgetID, out BodyGadget gadget)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค