2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module MenuItemImage
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend MenuItemSprite
|
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
|
|
|
-- Sets the sprite frame for the disabled image.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemImage] setDisabledSpriteFrame
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame frame
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Sets the sprite frame for the selected image.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemImage] setSelectedSpriteFrame
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame frame
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Sets the sprite frame for the normal image.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#MenuItemImage] setNormalSpriteFrame
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.SpriteFrame frame
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#MenuItemImage] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-28 12:01:53 +08:00
|
|
|
-- Initializes a menu item with a normal, selected and disabled image with a callable object.
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @function [parent=#MenuItemImage] initWithNormalImage
|
|
|
|
-- @param self
|
|
|
|
-- @param #string normalImage
|
|
|
|
-- @param #string selectedImage
|
|
|
|
-- @param #string disabledImage
|
|
|
|
-- @param #function callback
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#MenuItemImage] MenuItemImage
|
|
|
|
-- @param self
|
|
|
|
-- @return MenuItemImage#MenuItemImage self (return value: cc.MenuItemImage)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|