Beispiel #1
0
        void NewButtonClicked(object sender, EventArgs e)
        {
            Feat             f   = new Feat();
            FeatEditorDialog dlg = new FeatEditorDialog(f);

            dlg.OKClicked += (object se, EventArgs ea) =>
            {
                Feat.AddCustomFeat(f);
                Filter(true);
            };
            MainUI.MainView.AddSubview(dlg.View);
        }
Beispiel #2
0
        void EditButtonClicked(object sender, EventArgs e)
        {
            if (DisplayItem != null && DisplayItem.IsCustom)
            {
                Feat clone = (Feat)DisplayItem.Clone();

                FeatEditorDialog dlg = new FeatEditorDialog(clone);
                dlg.OKClicked += (object se, EventArgs ea) =>
                {
                    DisplayItem.CopyFrom(clone);
                    Feat.UpdateCustomFeat(DisplayItem);
                    Filter(true);
                };
                MainUI.MainView.AddSubview(dlg.View);
            }
        }
Beispiel #3
0
        void CustomizeButtonClicked(object sender, EventArgs e)
        {
            if (DisplayItem != null)
            {
                Feat clone = (Feat)DisplayItem.Clone();

                FeatEditorDialog dlg = new FeatEditorDialog(clone);
                dlg.OKClicked += (object se, EventArgs ea) =>
                {
                    clone.DBLoaderID = 0;
                    Feat.AddCustomFeat(clone);
                    Filter(true);
                };
                MainUI.MainView.AddSubview(dlg.View);
            }
        }