Пример #1
0
        public static string SelectScript(FrmEffectEditor owner)
        {
            FrmSelectItem frmSelectItem = new FrmSelectItem();

            frmSelectItem.SelectionType = SelectionType.Script;
            frmSelectItem.lblTitle.Text = "Script:";
            if (frmSelectItem.ShowDialog(owner) == DialogResult.OK)
            {
                return(frmSelectItem.lstItems.SelectedItem as string);
            }
            return(null);
        }
Пример #2
0
        public static CreatureBoardAsset SelectMini(FrmEffectEditor owner)
        {
            FrmSelectItem frmSelectItem = new FrmSelectItem();

            frmSelectItem.SelectionType = SelectionType.Minis;
            frmSelectItem.lblTitle.Text = "Mini:";
            if (frmSelectItem.ShowDialog(owner) == DialogResult.OK)
            {
                string selectedCreatureNameAndId = frmSelectItem.lstItems.SelectedItem as string;
                return(Talespire.Minis.GetCreatureBoardAsset(selectedCreatureNameAndId));
            }
            return(null);
        }