Example #1
0
        private void mButtonBorderless1_Click(object sender, EventArgs e)
        {
            var cfg = new ModObject.ModConfigItem();

            ModObj.Config.Add(cfg);
            Append(cfg, ModObj);
            CallOnUpdateEvent();
        }
Example #2
0
        public ConfigItem(ModObject.ModConfigItem item, ModObject ob)
        {
            InitializeComponent();
            Conf = item;
            Obj  = ob;

            label4.Text = Conf.PropertyName;
            label3.Text = Conf.Description.Replace("[br]", Environment.NewLine);
            label5.Text = Conf.Name;

            RepopulateOptionsDict(true);
        }
Example #3
0
        public void Append(ModObject.ModConfigItem conf, ModObject o)
        {
            this.flowLayoutPanel1.SuspendLayout();

            var e = new ConfigItem(conf, o);

            e.Padding = new Padding(0);
            e.Width   = flowLayoutPanel1.ClientSize.Width - BarOffset;
            this.flowLayoutPanel1.Controls.Add(e);

            this.flowLayoutPanel1.ResumeLayout();

            UpdateWidths();
        }