Skip to content

Commit 2ef4b2c

Browse files
committed
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into Iss2698_namespace
2 parents 7672694 + cbfc840 commit 2ef4b2c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

extensions/cocostudio/loader/parsers/timelineParser-2.x.js

+12-13
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@
645645

646646
this.widgetAttributes(widget, json);
647647

648+
loadTexture(json["FileData"], resourcePath, function(path, type){
649+
widget.setBackGroundImage(path, type);
650+
});
651+
648652
var clipEnabled = json["ClipAble"];
649653
widget.setClippingEnabled(clipEnabled);
650654

@@ -691,10 +695,6 @@
691695
widget.setBackGroundColorVector(cc.p(colorVectorX, colorVectorY));
692696
}
693697

694-
loadTexture(json["FileData"], resourcePath, function(path, type){
695-
widget.setBackGroundImage(path, type);
696-
});
697-
698698
var innerNodeSize = json["InnerNodeSize"];
699699
var innerSize = cc.size(
700700
innerNodeSize["Width"] || 0,
@@ -829,6 +829,10 @@
829829

830830
this.widgetAttributes(widget, json);
831831

832+
loadTexture(json["FileData"], resourcePath, function(path, type){
833+
widget.setBackGroundImage(path, type);
834+
});
835+
832836
var clipEnabled = json["ClipAble"] || false;
833837
widget.setClippingEnabled(clipEnabled);
834838

@@ -869,10 +873,6 @@
869873
if(bgColorOpacity != null)
870874
widget.setBackGroundColorOpacity(bgColorOpacity);
871875

872-
loadTexture(json["FileData"], resourcePath, function(path, type){
873-
widget.setBackGroundImage(path, type);
874-
});
875-
876876
setContentSize(widget, json["Size"]);
877877

878878
return widget;
@@ -891,6 +891,10 @@
891891

892892
this.widgetAttributes(widget, json);
893893

894+
loadTexture(json["FileData"], resourcePath, function(path, type){
895+
widget.setBackGroundImage(path, type);
896+
});
897+
894898
var clipEnabled = json["ClipAble"] || false;
895899
widget.setClippingEnabled(clipEnabled);
896900

@@ -964,11 +968,6 @@
964968
if(bgColorOpacity != null)
965969
widget.setBackGroundColorOpacity(bgColorOpacity);
966970

967-
968-
loadTexture(json["FileData"], resourcePath, function(path, type){
969-
widget.setBackGroundImage(path, type);
970-
});
971-
972971
setContentSize(widget, json["Size"]);
973972

974973
return widget;

0 commit comments

Comments
 (0)