Exemplo n.º 1
0
        private void label5_Click(object sender, EventArgs e)
        {
            var a = InputWindow.Ask(this, "Config Editor", "Please, enter config display name", new InputWindow.NonEmptyValidator(), label5.Text);

            if (a != null)
            {
                label5.Text = a;
                Conf.Name   = a;
                CallUpdateEvent();
            }
        }
Exemplo n.º 2
0
        private void label3_Click(object sender, EventArgs e)
        {
            var a = InputWindow.Ask(this, "Config Editor", "Please, enter the description", new InputWindow.NonEmptyValidator(), label3.Text, true);

            if (a != null)
            {
                label3.Text      = a;
                Conf.Description = a.Replace(Environment.NewLine, "[br]");
                CallUpdateEvent();
            }
        }
Exemplo n.º 3
0
        private void label4_Click(object sender, EventArgs e)
        {
            var a = InputWindow.Ask(this, "Config Editor", "Please, enter config property name (var config int <name>)", new InputWindow.NonEmptyValidator(), label4.Text);

            if (a != null)
            {
                label4.Text       = a;
                Conf.PropertyName = a;
                CallUpdateEvent();
            }
        }
Exemplo n.º 4
0
        private void mButtonBorderless3_Click(object sender, EventArgs e)
        {
            var a = InputWindow.Ask(this, "Config Editor", "Please, enter a new value name", new InputWindow.NonEmptyValidator());

            if (a != null)
            {
                listBox1.Items.Add(a);
                RepopulateOptionsDict();
                CallUpdateEvent();
            }
        }
Exemplo n.º 5
0
        private void label3_Click(object sender, EventArgs e)
        {
            var a = InputWindow.Ask(this, "AR Editor", "Please, enter the replacement asset name", new InputWindow.ARValidator(), label3.Text);

            if (a != null)
            {
                if (label3.Text != a)
                {
                    label3.Text = a;
                    CallUpdateEvent();
                }
            }
        }
Exemplo n.º 6
0
        private void mButtonBorderless1_Click(object sender, EventArgs e)
        {
            string source = InputWindow.Ask(this, "Asset Replacement: from", "Enter the asset name which you want to replace", new InputWindow.ARValidator());

            if (source != null)
            {
                string target = InputWindow.Ask(this, "Asset Replacement: to", $"Replacement: {source}{Environment.NewLine}Enter the target asset name", new InputWindow.ARValidator());
                if (target != null)
                {
                    Append(source, target);
                    CallOnUpdateEvent();
                }
            }
        }