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); }
public UIObject(UiInitUtil util, string objectType, LayoutFrameType layout, IRegion parent) { this.objectType = objectType; if (!string.IsNullOrEmpty(layout.inherits)) { this.ApplyLayout(util.GetTemplate(layout.inherits) as LayoutFrameType, parent); } this.ApplyLayout(layout, parent); }
public Region(UiInitUtil util, string objectType, LayoutFrameType layout, IRegion parent) : base(util, objectType, layout, parent) { this.util = util; this.parent = parent; if (!string.IsNullOrEmpty(layout.inherits)) { this.ApplyLayout(util.GetTemplate(layout.inherits) as LayoutFrameType, parent); } this.ApplyLayout(layout, parent); }
public Button(UiInitUtil util, string objectType, CheckButtonType frameType, IRegion parent) : base(util, objectType, frameType, parent) { this.scriptHandler = new Script <ButtonHandler, IButton>(this); if (!string.IsNullOrEmpty(frameType.inherits)) { this.ApplyType((CheckButtonType)util.GetTemplate(frameType.inherits)); } this.ApplyType(frameType); }
public Frame(UiInitUtil util, string objectType, FrameType frameType, IRegion parent) : base(util, objectType, frameType, parent) { this.util = util; this.scriptHandler = new Script <FrameHandler, IFrame>(this); if (!string.IsNullOrEmpty(frameType.inherits)) { this.ApplyType((FrameType)util.GetTemplate(frameType.inherits)); } this.ApplyType(frameType); }