diff --git a/src/js/includes/ButtonMenu.js b/src/js/includes/ButtonMenu.js index 076e6ba..cdf39c8 100644 --- a/src/js/includes/ButtonMenu.js +++ b/src/js/includes/ButtonMenu.js @@ -47,6 +47,7 @@ function ButtonMenu(canvas, settings) { }; /** + * Brings the buttons to the front inside the canvas * @return {ButtonMenu} */ this.bringToFront = function() { @@ -57,6 +58,7 @@ function ButtonMenu(canvas, settings) { }; /** + * Gets all buttons inside the menu. * @return {Array} */ this.getItems = function() { @@ -64,12 +66,16 @@ function ButtonMenu(canvas, settings) { }; /** + * Gets the full width of the buttonMenu. * @return {Number} */ this.getWidth = function() { return _width; }; + /** + * Hides the buttons + */ this.hide = function() { _textButtons.forEach(function(textButton) { textButton.set({ @@ -79,6 +85,9 @@ function ButtonMenu(canvas, settings) { }); } + /** + * Shows all the buttons + */ this.show = function() { _textButtons.forEach(function(textButton) { textButton.set({