blob: 01a309c89c0e270f942f187d3bf9f351a4ddd6a8 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
---@class cc.Menu :cc.Layer
local Menu={ }
cc.Menu=Menu
---* initializes a Menu with a NSArray of MenuItem objects
---@param arrayOfItems array_table
---@return boolean
function Menu:initWithArray (arrayOfItems) end
---* Set whether the menu is enabled. If set to false, interacting with the menu<br>
---* will have no effect.<br>
---* The default value is true, a menu is enabled by default.<br>
---* param value true if menu is to be enabled, false if menu is to be disabled.
---@param value boolean
---@return self
function Menu:setEnabled (value) end
---* Align items vertically.
---@return self
function Menu:alignItemsVertically () end
---* Determines if the menu is enabled.<br>
---* see `setEnabled(bool)`.<br>
---* return whether the menu is enabled or not.
---@return boolean
function Menu:isEnabled () end
---* Align items horizontally.
---@return self
function Menu:alignItemsHorizontally () end
---* Align items horizontally with padding.<br>
---* since v0.7.2
---@param padding float
---@return self
function Menu:alignItemsHorizontallyWithPadding (padding) end
---* Align items vertically with padding.<br>
---* since v0.7.2
---@param padding float
---@return self
function Menu:alignItemsVerticallyWithPadding (padding) end
---@overload fun(cc.Node:cc.Node,int:int):self
---@overload fun(cc.Node:cc.Node):self
---@overload fun(cc.Node:cc.Node,int:int,string2:int):self
---@overload fun(cc.Node:cc.Node,int:int,string:string):self
---@param child cc.Node
---@param zOrder int
---@param name string
---@return self
function Menu:addChild (child,zOrder,name) end
---*
---@return string
function Menu:getDescription () end
---*
---@param child cc.Node
---@param cleanup boolean
---@return self
function Menu:removeChild (child,cleanup) end
---* initializes an empty Menu
---@return boolean
function Menu:init () end
---*
---@param value boolean
---@return self
function Menu:setOpacityModifyRGB (value) end
---*
---@return boolean
function Menu:isOpacityModifyRGB () end
---* js ctor
---@return self
function Menu:Menu () end
|