2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItemLabel
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend MenuItem
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Sets the label that is rendered.
|
|
|
|
-- @function [parent=#MenuItemLabel] setLabel
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node node
|
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2016-01-28 12:01:53 +08:00
|
|
|
-- Gets the color that will be used when the item is disabled.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemLabel] getDisabledColor
|
|
|
|
-- @param self
|
2014-05-08 11:19:36 +08:00
|
|
|
-- @return color3b_table#color3b_table ret (return value: color3b_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Sets a new string to the inner label.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemLabel] setString
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string label
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
-- Initializes a MenuItemLabel with a Label, target and selector.
|
|
|
|
-- @function [parent=#MenuItemLabel] initWithLabel
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #cc.Node label
|
|
|
|
-- @param #function callback
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2016-01-28 12:01:53 +08:00
|
|
|
-- Sets the color that will be used when the item is disabled.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemLabel] setDisabledColor
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color3b_table color
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Gets the label that is rendered.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemLabel] getLabel
|
|
|
|
-- @param self
|
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
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=#MenuItemLabel] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enabled
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
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=#MenuItemLabel] activate
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
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=#MenuItemLabel] unselected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
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=#MenuItemLabel] selected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#MenuItemLabel] MenuItemLabel
|
|
|
|
-- @param self
|
|
|
|
-- @return MenuItemLabel#MenuItemLabel self (return value: cc.MenuItemLabel)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|