const defaults = {
    text: '',
    x: 540,
    y: 400,
    width: 300,
    height: 50,
    size: 48,
    active: true,
    hover: false,
    action: ''
}

export default class MenuItem {
    constructor(opts) {
        this.text = opts.text || defaults.text
        this.x = opts.x || defaults.x
        this.y = opts.y || defaults.y
        this.width = opts.width || defaults.width
        this.height = opts.height || defaults.height
        this.active = opts.active || defaults.active
        this.action = opts.action || defaults.action

        this.hover = false
    }
}
