2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItem
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
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
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Enables or disables the item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Activate the item.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] activate
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Returns whether or not the item is enabled.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] isEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- The item was selected (not activated), similar to "mouse-over".
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] selected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Returns whether or not the item is selected.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] isSelected
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- The item was unselected.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] unselected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Returns the outside box.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItem] rect
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- js NA
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#MenuItem] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|