summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua51
1 files changed, 51 insertions, 0 deletions
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".<br>
+---* 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