Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }