2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Menu
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Layer
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- align items vertically
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] alignItemsVertically
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] isEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- align items horizontally with padding<br>
|
|
|
|
-- since v0.7.2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] alignItemsHorizontallyWithPadding
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float padding
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- align items vertically with padding<br>
|
|
|
|
-- since v0.7.2
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] alignItemsVerticallyWithPadding
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float padding
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- align items horizontally
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Menu] alignItemsHorizontally
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, cc.Node, int
|
|
|
|
-- @overload self, cc.Node
|
|
|
|
-- @overload self, cc.Node, int, int
|
|
|
|
-- @overload self, cc.Node, int, string
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Menu] addChild
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int zOrder
|
|
|
|
-- @param #string name
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#Menu] getDescription
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#Menu] removeChild
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #bool cleanup
|
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Menu] setOpacityModifyRGB
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bValue
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Menu#Menu self (return value: cc.Menu)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @function [parent=#Menu] isOpacityModifyRGB
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2015-03-17 14:28:14 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|