mirror of https://github.com/axmolengine/axmol.git
57 lines
1.6 KiB
Lua
57 lines
1.6 KiB
Lua
|
|
--------------------------------
|
|
-- @module MenuItem
|
|
-- @extend Node
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- Enables or disables the item.
|
|
-- @function [parent=#MenuItem] setEnabled
|
|
-- @param self
|
|
-- @param #bool value
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
|
|
|
--------------------------------
|
|
-- Activate the item.
|
|
-- @function [parent=#MenuItem] activate
|
|
-- @param self
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
|
|
|
--------------------------------
|
|
-- Returns whether or not the item is enabled.
|
|
-- @function [parent=#MenuItem] isEnabled
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- The item was selected (not activated), similar to "mouse-over".
|
|
-- @function [parent=#MenuItem] selected
|
|
-- @param self
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
|
|
|
--------------------------------
|
|
-- Returns whether or not the item is selected.
|
|
-- @function [parent=#MenuItem] isSelected
|
|
-- @param self
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- The item was unselected.
|
|
-- @function [parent=#MenuItem] unselected
|
|
-- @param self
|
|
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
|
|
|
|
--------------------------------
|
|
-- Returns the outside box.
|
|
-- @function [parent=#MenuItem] rect
|
|
-- @param self
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
--------------------------------
|
|
-- js NA
|
|
-- @function [parent=#MenuItem] getDescription
|
|
-- @param self
|
|
-- @return string#string ret (return value: string)
|
|
|
|
return nil
|