axmol/cocos/scripting/lua-bindings/auto/api/MenuItemSprite.lua

67 lines
2.3 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module MenuItemSprite
-- @extend MenuItem
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- Enables or disables the item.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] setEnabled
-- @param self
-- @param #bool bEnabled
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
--------------------------------
-- The item was selected (not activated), similar to "mouse-over".<br>
-- since v0.99.5
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] selected
-- @param self
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Sets the image used when the item is not selected.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] setNormalImage
-- @param self
-- @param #cc.Node image
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Sets the image used when the item is disabled.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] setDisabledImage
-- @param self
-- @param #cc.Node image
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Sets the image used when the item is selected.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] setSelectedImage
-- @param self
-- @param #cc.Node image
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Gets the image used when the item is disabled.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] getDisabledImage
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- Gets the image used when the item is selected.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] getSelectedImage
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- Gets the image used when the item is not selected.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] getNormalImage
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- The item was unselected.
2014-03-10 14:04:58 +08:00
-- @function [parent=#MenuItemSprite] unselected
-- @param self
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
2014-03-10 14:04:58 +08:00
return nil