예제 #1
0
        public override void loadItemData(int aDefId)
        {
            DataTable dt = Database.getData("item_magicalnode_map", "item_def_id", aDefId, null);

            if (dt == null)
            {
                return;
            }
            if (dt.Rows.Count == 0)
            {
                return;
            }
            DataRow dataRow = dt.Rows[0];

            mItemMapId = (int)dataRow["item_magicalnode_map_id"];
            ComboUtils.fillComboBox(cboElementType, "ElementTypeTags", (int)dataRow["tag_def_id"], string.Empty);

            if (dataRow["effect_time"] != DBNull.Value)
            {
                numAuraTime.Value = (int)dataRow["effect_time"];
            }
            if (dataRow["effect_def_id"] != DBNull.Value)
            {
                EditorFactory.setupLink(linkAuraEffect, EditorSystemType.Effect, Database.getNullableId(dataRow, "effect_def_id"));
            }
            dt.Dispose();
        }
예제 #2
0
 public override void initNewImpl()
 {
     ComboUtils.fillComboBox(cboElementType, "ElementTypeTags", 0, String.Empty);
 }
예제 #3
0
 public override void initNewImpl()
 {
     ComboUtils.fillComboBox(cboMaterialTypes, "MaterialTypeTags", 0, String.Empty);
     ComboUtils.fillCombo(cboCondition, "ref_condition", "name", "ref_condition_id", 0);
 }