Class ccs.GUIReader

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

Method Summary

Class Detail

ccs.GUIReader()
Base class for ccs.SceneReader

Method Detail

  • {cc.Size} getFileDesignSize(fileName)
    Parameters:
    {String} fileName
    Returns:
    {cc.Size}
  • <static> {ccs.GUIReader} ccs.GUIReader.getInstance()
    returns a shared instance of the GUIReader
    Returns:
    {ccs.GUIReader}
  • {Number} getVersionInteger(str)
    get version
    Parameters:
    {String} str
    Returns:
    {Number}
  • <static> ccs.GUIReader.purge()
    purge instance
  • storeFileDesignSize(fileName, size)
    store file designSize
    Parameters:
    {String} fileName
    {cc.Size} size
  • {ccs.Widget} widgetFromJsonFile(fileName)
    create uiWidget from a josn file that exported by cocostudio UI editor
    Parameters:
    {String} fileName
    Returns:
    {ccs.Widget}