summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
commit04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch)
treec0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua
parentc30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff)
downloadlua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua b/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua
new file mode 100644
index 00000000..4b0f3815
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua
@@ -0,0 +1,34 @@
+---@meta
+
+---@class cc.MenuItemImage :cc.MenuItemSprite
+local MenuItemImage={ }
+cc.MenuItemImage=MenuItemImage
+
+
+
+
+---* Sets the sprite frame for the disabled image.
+---@param frame cc.SpriteFrame
+---@return self
+function MenuItemImage:setDisabledSpriteFrame (frame) end
+---* Sets the sprite frame for the selected image.
+---@param frame cc.SpriteFrame
+---@return self
+function MenuItemImage:setSelectedSpriteFrame (frame) end
+---* Sets the sprite frame for the normal image.
+---@param frame cc.SpriteFrame
+---@return self
+function MenuItemImage:setNormalSpriteFrame (frame) end
+---*
+---@return boolean
+function MenuItemImage:init () end
+---* Initializes a menu item with a normal, selected and disabled image with a callable object.
+---@param normalImage string
+---@param selectedImage string
+---@param disabledImage string
+---@param callback function
+---@return boolean
+function MenuItemImage:initWithNormalImage (normalImage,selectedImage,disabledImage,callback) end
+---* js ctor
+---@return self
+function MenuItemImage:MenuItemImage () end \ No newline at end of file