예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
        }
예제 #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);
        }