var root = ccs.uiReader.widgetFromJsonFile(
"res/UIButton_Editor/UIButton_Editor_1.json"
);
this
.addChild(root);
var back_label = ccui.helper.seekWidgetByName(root,
"back"
);
back_label.addTouchEventListener(
.backEvent,
);
var button = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"Button_123"
);
button.addTouchEventListener(
.touchEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
var title_button = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"Button_126"
);
title_button.addTouchEventListener(
);
var scale9_button = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"Button_129"
);
scale9_button.addTouchEventListener(
);
"res/UICheckBox_Editor/ui_checkbox_editor_1.json"
);
.addChild(root);
var checkbox = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"CheckBox_540"
);
cc.log(checkbox.addEventListener);
checkbox.addEventListener(
.selectedStateEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
var LISTVIEW_RES = [
"res/UIListView_Editor/UIListView_Vertical_Editor/ui_listview_editor_1.json"
,
"res/UIListView_Editor/UIListView_Horizontal_Editor/ui_listview_horizontal_editor_1.json"
];
var root = ccs.uiReader.widgetFromJsonFile(LISTVIEW_RES[
0
]);
.addChild(root);
var listView = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"ListView_1214"
);
listView.addEventListener(
.selectedItemEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
"res/UIPageView_Editor/ui_pageview_editor_1.json"
);
.addChild(root);
var pageView =ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"PageView_1269"
);
pageView.addEventListener(
.pageViewEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
var richText = ccui.RichText.create();
richText.ignoreContentAdaptWithSize(
false
);
richText.setContentSize(cc.size(
120
100
));
var re1 = ccui.RichElementText.create(
1
255
"This color is white. "
"Helvetica"
10
);
var re2 = ccui.RichElementText.create(
2
"And this is yellow. "
);
var re3 = ccui.RichElementText.create(
3
"This one is blue. "
);
var re4 = ccui.RichElementText.create(
4
"And green. "
);
var re5 = ccui.RichElementText.create(
5
"Last one is red "
);
var re6 = ccui.RichElementText.create(
7
"Have fun!! "
);
richText.pushBackElement(re1);
richText.insertElement(re2,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
richText.pushBackElement(re3);
richText.pushBackElement(re4);
richText.pushBackElement(re5);
richText.pushBackElement(re6);
richText.setPosition(cc.p(
1280
/
720
));
.addChild(richText);
"res/UISlider_Editor/ui_slider_editor_1.json"
);
.addChild(root);
var slider = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"Slider_738"
);
slider.addEventListener(
.sliderEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
var scale9_slider = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"Slider_740"
);
scale9_slider.addEventListener(
);
"res/UITextField_Editor/ui_textfield_editor_1.json"
);
.addChild(root);
var textField_normal = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"TextField_1109"
);
textField_normal.addEventListener(
.textFieldEvent,monospace!important; font-size:1em!important; min-height:inherit!important; background:none!important">);
var textField_max_character = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"TextField_1110"
);
textField_max_character.addEventListener(
);
var textField_password = ccui.helper.seekWidgetByName(root,monospace!important; font-size:1em!important; min-height:inherit!important; color:blue!important; background:none!important">"TextField_1107"
);
textField_password.addEventListener(
);