diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 20:51:43 +0800 |
commit | 8fefb8f3e100976235dc83d6ae3785952d11c710 (patch) | |
tree | 459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.Menu.lua | |
parent | b6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff) | |
download | lua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip |
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Menu.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/cc.Menu.lua | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Menu.lua b/meta/3rd/Cocos4.0/library/cc.Menu.lua new file mode 100644 index 00000000..61d5ef51 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.Menu.lua @@ -0,0 +1,71 @@ +---@meta + +---@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
\ No newline at end of file |