Esempio n. 1
0
 public void SetCondition(BasicCondition Condition, ConditionUIParser Parser)
 {
     this.Condition = Condition;
     //this.DynamicLabel.SetParameters(Condition.Parameters);
     //this.DynamicLabel.SetTextFormat(Condition.Type.Text);
     //this.DynamicLabel.SetParser(Parser);
     this.DynamicLabel.SetText(Condition.Type.Text.ToString());
     this.DynamicLabel.SetColors(ConditionParser.Colors);
     this.DynamicLabel.RedrawText();
 }
 public ConditionHandlerWidget(ConditionType ConditionType, IContainer Parent) : base(Parent)
 {
     this.ConditionType = ConditionType;
     RadioBox           = new RadioBox(this);
     RadioBox.SetText(ConditionType.Name);
     RadioBox.OnCheckChanged += delegate(BaseEventArgs e)
     {
         if (RadioBox.Checked)
         {
             BasicCondition condition = GetConditionsWindow().SelectedCondition;
             this.SetCondition(condition);
             GetConditionsWindow().SetActiveType(this);
         }
     };
     UIParser = new ConditionUIParser(ConditionType.UI, this);
     UIParser.Load(null);
 }