Class ccs.WidgetPropertiesReader0250
- Defined in: GUIReader.js
- Extends ccs.WidgetPropertiesReader
Constructor Attributes | Constructor Name and Description |
---|---|
The widget properties reader to parse Cocostudio exported file v0.3 -- v1.0
|
Method Summary
Class Detail
ccs.WidgetPropertiesReader0250()
The widget properties reader to parse Cocostudio exported file v0.3 -- v1.0
Method Detail
-
{*} createWidget(jsonDict, fullPath, fileName)Creates a widget by json object.
- Parameters:
- {Object} jsonDict
- {string} fullPath
- {string} fileName
- Returns:
- {*}
-
setColorPropsForWidgetFromJsonDictionary(widget, options)Sets widget's color, anchor point, flipped properties from json object.
- Parameters:
- {ccui.Widget} widget
- {Object} options
- json object.
-
setPropsForAllCustomWidgetFromJsonDictionary()Sets all custom widget's properties from json dictionary.
-
setPropsForAllWidgetFromJsonDictionary()Sets all widgets' properties from json dictionary.
-
setPropsForButtonFromJsonDictionary(widget, options)Sets ccui.Button's properties from json object.
- Parameters:
- {ccui.Button} widget
- {Object} options
-
setPropsForCheckBoxFromJsonDictionary(widget, options)Sets ccui.CheckBox's properties from json object.
- Parameters:
- {ccui.CheckBox} widget
- {Object} options
-
setPropsForContainerWidgetFromJsonDictionary(widget, options)Sets the container's properties from json dictionary.
- Parameters:
- {ccui.Widget} widget
- {Object} options
- json dictionary.
-
setPropsForImageViewFromJsonDictionary(widget, options)Sets ccui.ImageView's properties from json object.
- Parameters:
- {ccui.ImageView} widget
- {Object} options
-
setPropsForLabelAtlasFromJsonDictionary(widget, options)Sets ccui.TextAtlas' properties from json object.
- Parameters:
- {ccui.TextAtlas} widget
- {Object} options
-
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 object.
- Parameters:
- {ccui.Text} widget
- {Object} options
- json dictionary
-
setPropsForLayoutFromJsonDictionary(widget, options)Sets ccui.Layout's properties from json object.
- Parameters:
- {ccui.Layout} widget
- {Object} options
-
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 object.
- Parameters:
- {ccui.TextField} widget
- {Object} options
-
setPropsForTextButtonFromJsonDictionary(widget, options)Sets ccui.Button's text properties from json dictionary.
- Parameters:
- {ccui.Button} widget
- {Object} options
-
setPropsForTextFieldFromJsonDictionary(widget, options)Sets ccui.TextField's properties from json dictionary.
- Parameters:
- {ccui.TextField} widget
- {Object} options
- json dictionary
-
setPropsForWidgetFromJsonDictionary(widget, options)Sets widget's properties from json dictionary.
- Parameters:
- {ccui.Widget} widget
- {Object} options
- the json dictionary.
-
{ccui.Widget} widgetFromJsonDictionary(data)Creates a widget by json dictionary.
- Parameters:
- {Object} data
- Returns:
- {ccui.Widget}