AngeliA
Search Results for

    Show / Hide Table of Contents

    Class Tail

    Tail body gadget for pose-style character

    Properties

    AngleAmountRoot

    Total rotating angle amount for limb rotation (0 means 0%, 1000 means 100%)

    Declaration
    protected virtual int AngleAmountRoot { get; }

    AngleAmountSubsequent

    Subsequent sugment's rotating angle amount for limb rotation (0 means 0%, 1000 means 100%)

    Declaration
    protected virtual int AngleAmountSubsequent { get; }

    AngleOffset

    Total offset angle for the root sugment

    Declaration
    protected virtual int AngleOffset { get; }

    FrameDelta

    Looping duration for the less influential part limb rotation

    Declaration
    protected virtual int FrameDelta { get; }

    FrameLen

    Looping duration for the limb rotation

    Declaration
    protected virtual int FrameLen { get; }

    Frequency

    Motion frequency for the limb rotation, smaller means faster

    Declaration
    protected virtual int Frequency { get; }

    FrequencyAlt

    Motion frequency for the less influential part limb rotation, smaller means faster

    Declaration
    protected virtual int FrequencyAlt { get; }

    GadgetType

    Type of this body gadget

    Declaration
    public override sealed BodyGadgetType GadgetType { get; }
    Overrides
    BodyGadget.GadgetType

    LimbGrow

    Size-growing amount for limb rotation (0 means 0%, 1000 means 100%)

    Declaration
    protected virtual int LimbGrow { get; }

    OffsetX

    Total position offset X

    Declaration
    protected virtual int OffsetX { get; }

    OffsetY

    Total position offset Y

    Declaration
    protected virtual int OffsetY { get; }

    SpriteLoaded

    True if artwork sprite is loaded

    Declaration
    public override bool SpriteLoaded { get; }
    Overrides
    BodyGadget.SpriteLoaded

    Methods

    DrawGadget(PoseCharacterRenderer)

    Render the gadget for the given character

    Declaration
    public override void DrawGadget(PoseCharacterRenderer renderer)
    Overrides
    BodyGadget.DrawGadget(PoseCharacterRenderer)

    DrawGadgetFromPool(PoseCharacterRenderer)

    Declaration
    public static void DrawGadgetFromPool(PoseCharacterRenderer renderer)

    DrawGadgetGizmos(IRect, Color32, int)

    Render the gadget as gizmos

    Declaration
    public override 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

    Overrides
    BodyGadget.DrawGadgetGizmos(IRect, Color32, int)

    DrawSpriteAsSimpleTail(OrientedSprite, int, int, bool, bool, bool, int)

    Draw given artwork sprite as tail with only one segment

    Declaration
    public static void DrawSpriteAsSimpleTail(OrientedSprite oSprite, int x, int y, bool facingFront, bool facingRight, bool facingUp, int z = -2147483648)
    Parameters
    Type Name Description
    OrientedSprite oSprite

    Artwork sprite

    int x

    Position X in global space

    int y

    Position Y in global space

    bool facingFront

    Is character facing front

    bool facingRight

    Is character facing right

    bool facingUp

    Is character facing up

    int z

    Z value for sorting rendering cell

    DrawSpriteAsWhipTail(OrientedSprite, int, int, bool, bool, bool, int, int, int, int, int, int, int, int, int, int, bool, int, int)

    Draw given artwork sprite as tail at given position

    Declaration
    public static void DrawSpriteAsWhipTail(OrientedSprite oSprite, int x, int y, bool facingFront, bool facingRight, bool facingUp, int frequency = 113, int frequencyAlt = 277, int frameLen = 219, int frameDelta = 37, int angleAmountRoot = 1000, int angleAmountSubsequent = 1000, int angleOffset = 0, int limbGrow = 1000, int offsetX = 0, int offsetY = 0, bool isFlying = false, int frameOffset = 0, int z = -2147483648)
    Parameters
    Type Name Description
    OrientedSprite oSprite

    Artwork sprite

    int x

    Position X in global space

    int y

    Position Y in global space

    bool facingFront

    Is character facing front

    bool facingRight

    Is character facing right

    bool facingUp

    Is character facing up

    int frequency

    Motion frequency for the limb rotation, smaller means faster

    int frequencyAlt

    Motion frequency for the less influential part limb rotation, smaller means faster

    int frameLen

    Looping duration for the limb rotation

    int frameDelta

    Looping duration for the less influential part limb rotation

    int angleAmountRoot

    Total rotating angle amount for limb rotation (0 means 0%, 1000 means 100%)

    int angleAmountSubsequent

    Subsequent sugment's rotating angle amount for limb rotation (0 means 0%, 1000 means 100%)

    int angleOffset

    Total offset angle for the root sugment

    int limbGrow

    Size-growing amount for limb rotation (0 means 0%, 1000 means 100%)

    int offsetX

    Total position offset X

    int offsetY

    Total position offset Y

    bool isFlying

    Is character flying

    int frameOffset

    Current animation frame

    int z

    Z value for sorting rendering cell

    FillFromSheet(string)

    Load sprite data from Renderer.CurrentSheet

    Declaration
    public override bool FillFromSheet(string name)
    Overrides
    BodyGadget.FillFromSheet(string)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค