Class ccs.uiReader
- Defined in: GUIReader.js
Constructor Attributes | Constructor Name and Description |
---|---|
ccs.uiReader is a singleton object which is the reader for Cocos Studio ui.
|
Method Summary
Class Detail
ccs.uiReader()
ccs.uiReader is a singleton object which is the reader for Cocos Studio ui.
Method Detail
-
clear()Resets the states and clear the file design sizes.
-
{cc.Size} getFileDesignSize(fileName)Gets the design size by filename.
- Parameters:
- {String} fileName
- Returns:
- {cc.Size}
-
{string} getFilePath()Returns the file path
- Returns:
- {string}
-
{*} getParseCallBackMap()Returns the parsed callback map.
- Returns:
- {*}
-
{Object} getParseObjectMap()Returns the parsed object map.
- Returns:
- {Object}
-
{Number} getVersionInteger(str)Gets the version number by version string.
- Parameters:
- {String} str
- version string.
- Returns:
- {Number}
-
registerTypeAndCallBack(classType, ins, object, callback)Registers class type and callback.
- Parameters:
- {String} classType
- {ccs.objectFactory} ins
- {Object} object
- {function} callback
-
storeFileDesignSize(fileName, size)stores the designSize of UI file.
- Parameters:
- {String} fileName
- {cc.Size} size
-
{ccui.Widget} widgetFromJsonFile(fileName)Creates uiWidget from a json file that exported by cocostudio UI editor
- Parameters:
- {String} fileName
- Returns:
- {ccui.Widget}