Skip to content

Commit

Permalink
Fix misleading comment text in CCMenu.h (cocos2d#18855)
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyFomin authored and drelaptop committed May 30, 2018
1 parent dfdaf9e commit eb87dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cocos/2d/CCMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ class CC_DLL Menu : public Layer
virtual bool isEnabled() const { return _enabled; }

/**
* Set whether the menu is visible. If set false, interacting with the menu
* Set whether the menu is enabled. If set to false, interacting with the menu
* will have no effect.
* The default value is true, a menu is default to visible.
*@param value true if menu is to be enabled, false if menu is to be disabled.
* The default value is true, a menu is enabled by default.
* @param value true if menu is to be enabled, false if menu is to be disabled.
*/
virtual void setEnabled(bool value) { _enabled = value; };

Expand Down

0 comments on commit eb87dec

Please sign in to comment.