示例#1
0
 public addDropItemForm(mainForm _mainForm, EnemyData _enemy, EnemyDropItem _item = null)
 {
     main_form = _mainForm;
     InitializeComponent();
     modification = false;
     enemy        = _enemy;
     loadData();
     if (_item != null)
     {
         modificationData(_item);
     }
 }
示例#2
0
 public void loadDropItem()
 {
     dropData = new ArrayList();
     try
     {
         EnemyDropItem obj;
         DataTable     ds = Mysql.Query($"SELECT * FROM enemy_dropitem WHERE enemy_no = '{no}'");
         foreach (DataRow rs in ds.Rows)
         {
             obj = new EnemyDropItem(rs);
             dropData.Add(obj);
         }
     }
     catch (Exception e)
     {
         Console.warning(e.ToString());
     }
 }
示例#3
0
        private void modificationData(EnemyDropItem item)
        {
            itemlist_box.Enabled = false;

            itemDropData    = item;
            itemData        = main_form.getItemData(item.item_no);
            modification    = true;
            add_button.Text = "수정";

            itemlist_box.Text  = itemData.name;
            rate_numbox.Value  = item.rate;
            image_textbox.Text = item.image;

            pattern_x_numbox.Value = item.pattern_x;
            pattern_y_numbox.Value = item.pattern_y;

            min_price_numbox.Value   = item.min_price;
            min_str_numbox.Value     = item.min_str;
            min_dex_numbox.Value     = item.min_dex;
            min_int_numbox.Value     = item.min_int;
            min_luk_numbox.Value     = item.min_luk;
            min_solid_numbox.Value   = item.min_solid;
            min_hp_numbox.Value      = item.min_hp;
            min_mp_numbox.Value      = item.min_mp;
            min_ability_numbox.Value = item.min_ability;
            min_cost_numbox.Value    = item.min_cost;
            //------------------------------------------
            max_price_numbox.Value   = item.max_price;
            max_str_numbox.Value     = item.max_str;
            max_dex_numbox.Value     = item.max_dex;
            max_int_numbox.Value     = item.max_int;
            max_luk_numbox.Value     = item.max_luk;
            max_solid_numbox.Value   = item.max_solid;
            max_hp_numbox.Value      = item.max_hp;
            max_mp_numbox.Value      = item.max_mp;
            max_ability_numbox.Value = item.max_ability;
            max_cost_numbox.Value    = item.max_cost;

            trade_box.Text = trade_box.Items[item.trade ? 1 : 0].ToString();
            sell_box.Text  = sell_box.Items[item.sell ? 1 : 0].ToString();
            use_box.Text   = use_box.Items[item.use ? 1 : 0].ToString();
        }