예제 #1
0
 public void Read(IConfigElement element)
 {
     this.Id           = GeneratorUtility.Get(element, "Id", this.Id);
     this.Group        = GeneratorUtility.Get(element, "Group", this.Group);
     this.Type         = GeneratorUtility.Get(element, "Type", this.Type);
     this.Kind         = GeneratorUtility.Get(element, "Kind", this.Kind);
     this.LastTime     = GeneratorUtility.Get(element, "LastTime", this.LastTime);
     this.StackLimit   = GeneratorUtility.Get(element, "StackLimit", this.StackLimit);
     this.Cover        = GeneratorUtility.Get(element, "Cover", this.Cover);
     this.Trigger      = GeneratorUtility.Get(element, "Trigger", this.Trigger);
     this.Probility    = GeneratorUtility.Get(element, "Probility", this.Probility);
     this.SearchTarget = GeneratorUtility.Get(element, "SearchTarget", this.SearchTarget);
     this.Actions      = GeneratorUtility.Get(element, "Actions", this.Actions);
     this.EndCondition = GeneratorUtility.Get(element, "EndCondition", this.EndCondition);
     this.IsOwnText    = GeneratorUtility.Get(element, "IsOwnText", this.IsOwnText);
     this.EffectIds    = GeneratorUtility.Get(element, "EffectIds", this.EffectIds);
     this.Powers       = GeneratorUtility.Get(element, "Powers", this.Powers);
     this.Icon         = GeneratorUtility.Get(element, "Icon", this.Icon);
     this.OnInit();
 }
예제 #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="OnButtonChecked"></param>
        /// <param name="OnButtonUnchecked"></param>
        public void AddCheckBox(
            string name,
            Key key,
            bool isChecked,
            Lambda OnButtonChecked,
            Lambda OnButtonUnchecked)
        {
            int y = GetNextY();

            lastElem = new elements.CheckBox(
                this.Controls,
                new Point(currX, y),
                name,
                key,
                new Point(currX + buttonGap, y + buttonOffset),
                isChecked,
                OnButtonChecked,
                OnButtonUnchecked
                );
        }
예제 #3
0
 public void AddSubElement(IConfigElement sub)
 {
     // Align it to the relevant position
     sub.AlignToPos(GetPos().X + SubOffset);
 }