diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
commit | 04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch) | |
tree | c0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua | |
parent | c30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff) | |
download | lua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip |
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua b/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua new file mode 100644 index 00000000..9f2cfbf4 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua @@ -0,0 +1,87 @@ +---@meta + +---@class ccui.LoadingBar :ccui.Widget +local LoadingBar={ } +ccui.LoadingBar=LoadingBar + + + + +---* Changes the progress value of LoadingBar.<br> +---* param percent Percent value from 1 to 100. +---@param percent float +---@return self +function LoadingBar:setPercent (percent) end +---* Load texture for LoadingBar.<br> +---* param texture File name of texture.<br> +---* param texType Texture resource type,@see TextureResType. +---@param texture string +---@param texType int +---@return self +function LoadingBar:loadTexture (texture,texType) end +---* Change the progress direction of LoadingBar.<br> +---* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> +---* param direction Direction +---@param direction int +---@return self +function LoadingBar:setDirection (direction) end +---* +---@return cc.ResourceData +function LoadingBar:getRenderFile () end +---* Enable scale9 renderer.<br> +---* param enabled Set to true will use scale9 renderer, false otherwise. +---@param enabled boolean +---@return self +function LoadingBar:setScale9Enabled (enabled) end +---* Set capInsets for LoadingBar.<br> +---* This setting only take effect when enable scale9 renderer.<br> +---* param capInsets CapInset in `Rect`. +---@param capInsets rect_table +---@return self +function LoadingBar:setCapInsets (capInsets) end +---* Get the progress direction of LoadingBar.<br> +---* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> +---* return LoadingBar progress direction. +---@return int +function LoadingBar:getDirection () end +---* brief Query LoadingBar's capInsets.<br> +---* return CapInsets of LoadingBar. +---@return rect_table +function LoadingBar:getCapInsets () end +---* brief Query whether LoadingBar is using scale9 renderer or not.<br> +---* return Whether LoadingBar uses scale9 renderer or not. +---@return boolean +function LoadingBar:isScale9Enabled () end +---* Get the progress value of LoadingBar.<br> +---* return Progress value from 1 to 100. +---@return float +function LoadingBar:getPercent () end +---@overload fun(string:string,int1:float):self +---@overload fun():self +---@overload fun(string:string,int:int,float:float):self +---@param textureName string +---@param texType int +---@param percentage float +---@return self +function LoadingBar:create (textureName,texType,percentage) end +---* +---@return cc.Ref +function LoadingBar:createInstance () end +---* +---@return cc.Node +function LoadingBar:getVirtualRenderer () end +---* +---@return string +function LoadingBar:getDescription () end +---* +---@return size_table +function LoadingBar:getVirtualRendererSize () end +---* +---@param ignore boolean +---@return self +function LoadingBar:ignoreContentAdaptWithSize (ignore) end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function LoadingBar:LoadingBar () end
\ No newline at end of file |