public FontString(UiInitUtil util, string objectType, FontStringType type, IRegion parent) : base(util, objectType, type, parent) { if (!string.IsNullOrEmpty(type.inherits)) { this.ApplyType((FontStringType)util.GetTemplate(type.inherits)); } this.ApplyType(type); }
private void ApplyType(FontStringType type) { this.text = type.text; }
private void ApplyFontStringType(FontStringType fontStringType) { this.util.CreateObject(fontStringType, this); }