Class ccs.LoadingBar

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.LoadingBar

Method Summary

Class Detail

ccs.LoadingBar()
Base class for ccs.LoadingBar

Method Detail

  • <static> {ccs.LoadingBar} ccs.LoadingBar.create()
    allocates and initializes a UILoadingBar.
    // example
    var uiLoadingBar = ccs.LoadingBar.create();
    Returns:
    {ccs.LoadingBar}
  • {cc.Size} getContentSize()
    override "getContentSize" method of widget.
    Returns:
    {cc.Size}
  • {string} getDescription()
    Returns the "class name" of widget.
    Returns:
    {string}
  • {ccs.LoadingBarType} getDirection()
    Gets the progress direction of loadingbar. LoadingBarTypeLeft means progress left to right, LoadingBarTypeRight otherwise.
    Returns:
    {ccs.LoadingBarType}
  • {number} getPercent()
    Gets the progress direction of loadingbar.
    Returns:
    {number}
  • {cc.Node} getVirtualRenderer()
    override "getContentSize" method of widget.
    Returns:
    {cc.Node}
  • ignoreContentAdaptWithSize(ignore)
    override "ignoreContentAdaptWithSize" method of widget.
    Parameters:
    {Boolean} ignore
  • loadTexture(texture, texType)
    Load texture for loadingbar.
    Parameters:
    {String} texture
    {ccs.TextureResType} texType
  • setCapInsets(capInsets)
    Sets capinsets for loadingbar, if loadingbar is using scale9 renderer.
    Parameters:
    {cc.Rect} capInsets
  • setDirection(dir)
    Changes the progress direction of loadingbar. LoadingBarTypeLeft means progress left to right, LoadingBarTypeRight otherwise.
    Parameters:
    {ccs.LoadingBarType} dir
  • setPercent(percent)
    Changes the progress direction of loadingbar.
    Parameters:
    {number} percent
  • setScale9Enabled(enabled)
    Sets if loadingbar is using scale9 renderer.
    Parameters:
    {Boolean} enabled