simple-visual-novel
    Preparing search index...

    Interface SceneAction

    Represents a single action within a scene, such as dialogue or character visibility changes.

    The type field determines which other fields are relevant:

    • For "dialogue": character, text, and optionally options are used
    • For "show": character, and optionally position and size are used
    • For "hide": only character is used
    • For "setImage": character and image are used

    SceneAction

    interface SceneAction {
        character?: Character;
        image?: string;
        options?: DialogueOptions;
        position?: Position;
        size?: Size;
        text?: string;
        type: SceneActionType;
    }
    Index

    Properties

    character?: Character

    The character involved in this action

    image?: string

    New image URL (for "setImage" actions)

    options?: DialogueOptions

    Display options for dialogue

    position?: Position

    Character position (for "show" actions)

    size?: Size

    Character size (for "show" actions)

    text?: string

    Dialogue text (for "dialogue" actions)

    The type of action to perform