From 8fefb8f3e100976235dc83d6ae3785952d11c710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 5 Jul 2021 20:51:43 +0800 Subject: cleanup --- meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua (limited to 'meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua') diff --git a/meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua b/meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua new file mode 100644 index 00000000..78a1f885 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua @@ -0,0 +1,51 @@ +---@meta + +---@class cc.MenuItemSprite :cc.MenuItem +local MenuItemSprite={ } +cc.MenuItemSprite=MenuItemSprite + + + + +---* Enables or disables the item. +---@param bEnabled boolean +---@return self +function MenuItemSprite:setEnabled (bEnabled) end +---* The item was selected (not activated), similar to "mouse-over".
+---* since v0.99.5 +---@return self +function MenuItemSprite:selected () end +---* Sets the image used when the item is not selected. +---@param image cc.Node +---@return self +function MenuItemSprite:setNormalImage (image) end +---* Sets the image used when the item is disabled. +---@param image cc.Node +---@return self +function MenuItemSprite:setDisabledImage (image) end +---* Initializes a menu item with a normal, selected and disabled image with a callable object. +---@param normalSprite cc.Node +---@param selectedSprite cc.Node +---@param disabledSprite cc.Node +---@param callback function +---@return boolean +function MenuItemSprite:initWithNormalSprite (normalSprite,selectedSprite,disabledSprite,callback) end +---* Sets the image used when the item is selected. +---@param image cc.Node +---@return self +function MenuItemSprite:setSelectedImage (image) end +---* Gets the image used when the item is disabled. +---@return cc.Node +function MenuItemSprite:getDisabledImage () end +---* Gets the image used when the item is selected. +---@return cc.Node +function MenuItemSprite:getSelectedImage () end +---* Gets the image used when the item is not selected. +---@return cc.Node +function MenuItemSprite:getNormalImage () end +---* The item was unselected. +---@return self +function MenuItemSprite:unselected () end +---* +---@return self +function MenuItemSprite:MenuItemSprite () end \ No newline at end of file -- cgit v1.2.3