@@ -53660,6 +53660,17 @@ ccui.RichElementCustomNode = ccui.RichElement.extend({
5366053660ccui.RichElementCustomNode.create = function (tag, color, opacity, customNode) {
5366153661 return new ccui.RichElementCustomNode(tag, color, opacity, customNode);
5366253662};
53663+
53664+ ccui.RichElementNewLine = ccui.RichElement.extend({
53665+ ctor: function (tag, color, opacity) {
53666+ ccui.RichElement.prototype.ctor.call(this, tag, color, opacity);
53667+ this._type = ccui.RichElement.NEWLINE;
53668+ }
53669+ });
53670+
53671+ ccui.RichElementNewLine.create = function (tag, color, opacity) {
53672+ return new ccui.RichElementNewLine(tag, color, opacity);
53673+ };
5366353674ccui.RichText = ccui.Widget.extend({
5366453675 _formatTextDirty: false,
5366553676 _richElements: null,
@@ -53723,6 +53734,9 @@ ccui.RichText = ccui.Widget.extend({
5372353734 case ccui.RichElement.CUSTOM:
5372453735 elementRenderer = element._customNode;
5372553736 break;
53737+ case ccui.RichElement.NEWLINE:
53738+ this._addNewLine();
53739+ continue;
5372653740 default:
5372753741 break;
5372853742 }
@@ -53747,6 +53761,9 @@ ccui.RichText = ccui.Widget.extend({
5374753761 case ccui.RichElement.CUSTOM:
5374853762 this._handleCustomRenderer(element._customNode);
5374953763 break;
53764+ case ccui.RichElement.NEWLINE:
53765+ this._addNewLine();
53766+ continue;
5375053767 default:
5375153768 break;
5375253769 }
@@ -53989,6 +54006,7 @@ ccui.RichText.create = function(){
5398954006ccui.RichElement.TEXT = 0;
5399054007ccui.RichElement.IMAGE = 1;
5399154008ccui.RichElement.CUSTOM = 2;
54009+ ccui.RichElement.NEWLINE = 3;
5399254010ccui.ScrollViewBar = ccui.ProtectedNode.extend({
5399354011 _parentScroll: null,
5399454012 _direction: null,
0 commit comments