Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Interface ActionButtonsProps

    Props for ActionButtons component

    interface ActionButtonsProps {
        bottom?: number;
        disabled?: boolean;
        onAttack: () => void;
        onBlock: (eventType: ButtonEventType) => void;
        opacity?: number;
        right?: number;
    }
    Index

    Properties

    bottom?: number

    Position from bottom in pixels (default: 34 for safe area)

    disabled?: boolean

    Whether buttons are disabled

    onAttack: () => void

    Callback when attack button is pressed

    onBlock: (eventType: ButtonEventType) => void

    Callback when block button is pressed/released

    opacity?: number

    Opacity of buttons (default: 0.8)

    right?: number

    Position from right in pixels (default: 20)