summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.MenuItemLabel.lua
blob: 01061a05c54524cc8302b8505c11a1f5627ce2cd (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
51
---@meta

---@class cc.MenuItemLabel :cc.MenuItem
local MenuItemLabel={ }
cc.MenuItemLabel=MenuItemLabel




---*  Sets the label that is rendered. 
---@param node cc.Node
---@return self
function MenuItemLabel:setLabel (node) end
---*  Get the inner string of the inner label. 
---@return string
function MenuItemLabel:getString () end
---*  Gets the color that will be used when the item is disabled. 
---@return color3b_table
function MenuItemLabel:getDisabledColor () end
---*  Sets a new string to the inner label. 
---@param label string
---@return self
function MenuItemLabel:setString (label) end
---*  Initializes a MenuItemLabel with a Label, target and selector. 
---@param label cc.Node
---@param callback function
---@return boolean
function MenuItemLabel:initWithLabel (label,callback) end
---*  Sets the color that will be used when the item is disabled. 
---@param color color3b_table
---@return self
function MenuItemLabel:setDisabledColor (color) end
---*  Gets the label that is rendered. 
---@return cc.Node
function MenuItemLabel:getLabel () end
---* 
---@param enabled boolean
---@return self
function MenuItemLabel:setEnabled (enabled) end
---* 
---@return self
function MenuItemLabel:activate () end
---* 
---@return self
function MenuItemLabel:unselected () end
---* 
---@return self
function MenuItemLabel:selected () end
---* js ctor
---@return self
function MenuItemLabel:MenuItemLabel () end