Ejemplo n.º 1
0
        public MagicItemBuilderForm(MagicItem item)
        {
            InitializeComponent();

            fMagicItem = item.Copy();

            update_statblock();
        }
Ejemplo n.º 2
0
        public MagicItemDetailsForm(MagicItem item)
        {
            InitializeComponent();

            fItem = item.Copy();

            Browser.DocumentText = HTML.MagicItem(fItem, Session.Preferences.TextSize, false, true);
        }
Ejemplo n.º 3
0
        public MagicItemProfileForm(MagicItem item)
        {
            InitializeComponent();

            TypeBox.Items.Add("Armour");
            TypeBox.Items.Add("Weapon");
            TypeBox.Items.Add("Ammunition");
            TypeBox.Items.Add("Item Slot (head)");
            TypeBox.Items.Add("Item Slot (neck)");
            TypeBox.Items.Add("Item Slot (waist)");
            TypeBox.Items.Add("Item Slot (arms)");
            TypeBox.Items.Add("Item Slot (hands)");
            TypeBox.Items.Add("Item Slot (feet)");
            TypeBox.Items.Add("Item Slot (ring)");
            TypeBox.Items.Add("Implement");
            TypeBox.Items.Add("Alchemical Item");
            TypeBox.Items.Add("Divine Boon");
            TypeBox.Items.Add("Grandmaster Training");
            TypeBox.Items.Add("Potion");
            TypeBox.Items.Add("Reagent");
            TypeBox.Items.Add("Whetstone");
            TypeBox.Items.Add("Wondrous Item");

            Array rarities = Enum.GetValues(typeof(MagicItemRarity));

            foreach (MagicItemRarity mir in rarities)
            {
                RarityBox.Items.Add(mir);
            }

            fItem = item.Copy();

            NameBox.Text           = fItem.Name;
            LevelBox.Value         = fItem.Level;
            TypeBox.Text           = fItem.Type;
            RarityBox.SelectedItem = fItem.Rarity;
        }
Ejemplo n.º 4
0
 public MagicItemDetailsForm(MagicItem item)
 {
     this.InitializeComponent();
     this.fItem = item.Copy();
     this.Browser.DocumentText = HTML.MagicItem(this.fItem, DisplaySize.Small, false, true);
 }