createButton (coords, buttonComponent) {
    var button = new LabeledButton({
      game: this.game,
      viewGroup: this.menuViewGroup,
      label: buttonComponent.name,
      fontSize: buttonComponent.fontSize,
      asset: buttonComponent.asset,
      x: coords.x,
      y: coords.y,
      callback: buttonComponent.function,
      context: buttonComponent.context,
      buttonWidth: buttonComponent.width,
      buttonHeight: buttonComponent.height
    })
    this.activeButtons.push(button)
    return button
  }
/**
   * Creates a button with given button action
   * @param {ButtonAction} buttonAction
   */
Creates a button with given button action
@param {ButtonAction} buttonAction
Creates a button with given button action @param { ButtonAction } buttonAction
createButton (coords, buttonComponent) {
    var button = new LabeledButton({
      game: this.game,
      viewGroup: this.menuViewGroup,
      label: buttonComponent.name,
      fontSize: buttonComponent.fontSize,
      asset: buttonComponent.asset,
      x: coords.x,
      y: coords.y,
      callback: buttonComponent.function,
      context: buttonComponent.context,
      buttonWidth: buttonComponent.width,
      buttonHeight: buttonComponent.height
    })
    this.activeButtons.push(button)
    return button
  }
createButton ( coords , buttonComponent ) { var button = new LabeledButton ( { game : this . game , viewGroup : this . menuViewGroup , label : buttonComponent . name , fontSize : buttonComponent . fontSize , asset : buttonComponent . asset , x : coords . x , y : coords . y , callback : buttonComponent . function , context : buttonComponent . context , buttonWidth : buttonComponent . width , buttonHeight : buttonComponent . height } ) this . activeButtons . push ( button ) return button }
Creates a button with given button action
 @param {ButtonAction} buttonAction
Creates a button with given button action @param { ButtonAction } buttonAction