Class ccs.UILoadingBar

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

Method Summary

Class Detail

ccs.UILoadingBar()
Base class for ccs.UILoadingBar

Method Detail

  • <static> {ccs.UILoadingBar} ccs.UILoadingBar.create()
    allocates and initializes a UILoadingBar.
    // example
    var uiLoadingBar = ccs.UILoadingBar.create();
    Returns:
    {ccs.UILoadingBar}
  • {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