summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.MenuItemSprite.lua
blob: 0c6a05574ba63c98de03947f856312d41e6fdbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

---@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