summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.MenuItemSprite.lua
diff options
context:
space:
mode:
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