Class ccs.WidgetPropertiesReader0300
- Defined in: GUIReader.js
- Extends ccs.WidgetPropertiesReader
Constructor Attributes | Constructor Name and Description |
---|---|
The widget properties reader to parse Cocostudio exported file v1.0 higher.
|
Method Summary
Class Detail
ccs.WidgetPropertiesReader0300()
The widget properties reader to parse Cocostudio exported file v1.0 higher.
Method Detail
-
{ccui.Widget} createWidget(jsonDict, fullPath, fileName)Creates widget by json object.
- Parameters:
- {Object} jsonDict
- json dictionary
- {String} fullPath
- {String} fileName
- Returns:
- {ccui.Widget}
-
setColorPropsForWidgetFromJsonDictionary(widget, options)Sets widget's color, anchor point, flipped properties from json dictionary.
- Parameters:
- {ccui.Widget} widget
- {Object} options
- json dictionary
-
setPropsForAllCustomWidgetFromJsonDictionary(classType, widget, customOptions)Sets widget's custom properties from json dictionary
- Parameters:
- {String} classType
- class type
- {ccui.Widget} widget
- {Object} customOptions
-
setPropsForAllWidgetFromJsonDictionary(reader, widget, options)Sets widget's foundation properties from json dictionary.
- Parameters:
- {Object} reader
- widget reader
- {ccui.Widget} widget
- {Object} options
- json dictionary
-
setPropsForButtonFromJsonDictionary(widget, options)Sets ccui.Button's properties from json dictionary.
- Parameters:
- {ccui.Button} widget
- {Object} options
- json dictionary
-
setPropsForCheckBoxFromJsonDictionary(widget, options)Sets ccui.CheckBox's properties from json dictionary.
- Parameters:
- {ccui.CheckBox} widget
- {Object} options
- json dictionary
-
setPropsForImageViewFromJsonDictionary(widget, options)Sets ccui.ImageView's properties from json dictionary.
- Parameters:
- {ccui.ImageView} widget
- {Object} options
- json dictionary
-
setPropsForLabelAtlasFromJsonDictionary(widget, options)Sets ccui.TextAtlas's properties from json dictionary.
- Parameters:
- {ccui.TextAtlas} widget
- {Object} options
- json dictionary
-
setPropsForLabelBMFontFromJsonDictionary(widget, options)Sets ccui.TextBMFont's properties from json dictionary.
- Parameters:
- {ccui.TextBMFont} widget
- {Object} options
- json dictionary
-
setPropsForLabelFromJsonDictionary(widget, options)Sets ccui.Text's properties from json dictionary.
- Parameters:
- {ccui.Text} widget
- {Object} options
- json dictionary
-
setPropsForLayoutFromJsonDictionary(widget, options)Sets ccui.Layout's properties from json dictionary.
- Parameters:
- {ccui.Layout} widget
- {Object} options
- json dictionary
-
setPropsForListViewFromJsonDictionary(widget, options)Sets ccui.ListView's properties from json dictionary.
- Parameters:
- {ccui.ListView} widget
- {Object} options
- json dictionary
-
setPropsForLoadingBarFromJsonDictionary(widget, options)Sets ccui.LoadingBar's properties from json dictionary.
- Parameters:
- {ccui.LoadingBar} widget
- {Object} options
- json dictionary
-
setPropsForPageViewFromJsonDictionary(widget, options)Sets ccui.PageView's properties from json dictionary.
- Parameters:
- {ccui.PageView} widget
- {Object} options
- json dictionary
-
setPropsForScrollViewFromJsonDictionary(widget, options)Sets ccui.ScrollView's properties from json dictionary.
- Parameters:
- {ccui.ScrollView} widget
- {Object} options
- json dictionary
-
setPropsForSliderFromJsonDictionary(widget, options)Sets ccui.Slider's properties from json dictionary.
- Parameters:
- {ccui.Slider} widget
- {Object} options
- json dictionary
-
setPropsForTextAreaFromJsonDictionary(widget, options)Sets ccui.TextField's properties from json dictionary.
- Parameters:
- {ccui.TextField} widget
- {Object} options
- json dictionary
-
setPropsForTextButtonFromJsonDictionary(widget, options)Sets ccui.Button's text properties from json dictionary.
- Parameters:
- {ccui.Button} widget
- {Object} options
- json dictionary
-
setPropsForTextFieldFromJsonDictionary(widget, options)Sets ccui.TextField's text properties from json dictionary.
- Parameters:
- {ccui.TextField} widget
- {Object} options
- json dictionary
-
setPropsForWidgetFromJsonDictionary(widget, options)Sets widget's foundation properties from json dictionary.
- Parameters:
- {ccui.Widget} widget
- {Object} options
- json dictionary
-
{ccui.Widget} widgetFromJsonDictionary(data)Creates a widget from json dictionary.
- Parameters:
- {Object} data
- json data
- Returns:
- {ccui.Widget}