mirror of https://github.com/axmolengine/axmol.git
67 lines
2.3 KiB
Lua
67 lines
2.3 KiB
Lua
|
|
--------------------------------
|
|
-- @module MenuItemSprite
|
|
-- @extend MenuItem
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- Enables or disables the item.
|
|
-- @function [parent=#MenuItemSprite] setEnabled
|
|
-- @param self
|
|
-- @param #bool bEnabled
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
--------------------------------
|
|
-- The item was selected (not activated), similar to "mouse-over".<br>
|
|
-- since v0.99.5
|
|
-- @function [parent=#MenuItemSprite] selected
|
|
-- @param self
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
--------------------------------
|
|
-- Sets the image used when the item is not selected.
|
|
-- @function [parent=#MenuItemSprite] setNormalImage
|
|
-- @param self
|
|
-- @param #cc.Node image
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
--------------------------------
|
|
-- Sets the image used when the item is disabled.
|
|
-- @function [parent=#MenuItemSprite] setDisabledImage
|
|
-- @param self
|
|
-- @param #cc.Node image
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
--------------------------------
|
|
-- Sets the image used when the item is selected.
|
|
-- @function [parent=#MenuItemSprite] setSelectedImage
|
|
-- @param self
|
|
-- @param #cc.Node image
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
--------------------------------
|
|
-- Gets the image used when the item is disabled.
|
|
-- @function [parent=#MenuItemSprite] getDisabledImage
|
|
-- @param self
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
--------------------------------
|
|
-- Gets the image used when the item is selected.
|
|
-- @function [parent=#MenuItemSprite] getSelectedImage
|
|
-- @param self
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
--------------------------------
|
|
-- Gets the image used when the item is not selected.
|
|
-- @function [parent=#MenuItemSprite] getNormalImage
|
|
-- @param self
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
--------------------------------
|
|
-- The item was unselected.
|
|
-- @function [parent=#MenuItemSprite] unselected
|
|
-- @param self
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
return nil
|