2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItemSprite
|
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
|
|
|
|
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=#MenuItemSprite] setEnabled
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool bEnabled
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- The item was selected (not activated), similar to "mouse-over".<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- since v0.99.5
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemSprite] selected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node image
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node image
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Initializes a menu item with a normal, selected and disabled image with a callable object.
|
|
|
|
-- @function [parent=#MenuItemSprite] initWithNormalSprite
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node normalSprite
|
|
|
|
-- @param #cc.Node selectedSprite
|
|
|
|
-- @param #cc.Node disabledSprite
|
|
|
|
-- @param #function callback
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +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
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node image
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +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)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- 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)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- 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)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- The item was unselected.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemSprite] unselected
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#MenuItemSprite] MenuItemSprite
|
|
|
|
-- @param self
|
|
|
|
-- @return MenuItemSprite#MenuItemSprite self (return value: cc.MenuItemSprite)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|