Beispiel #1
0
 protected virtual void EquipTableParam(EquipItemTable.EquipItemData table_data)
 {
     if (table_data != null)
     {
         bool flag = table_data.IsVisual();
         int  num  = table_data.baseAtk;
         int  num2 = table_data.baseDef;
         int  num3 = (table_data.baseElemAtk != 0) ? table_data.baseElemAtk : 0;
         int  num4 = (table_data.baseElemDef != 0) ? table_data.baseElemDef : 0;
         int  num5 = table_data.baseHp;
         SetLabelText(detailBase, UI.LBL_NAME, table_data.name);
         SetActive(detailBase, UI.STR_LV, !flag);
         SetActive(detailBase, UI.STR_ONLY_VISUAL, flag);
         SetLabelText(detailBase, UI.LBL_LV_NOW, "1");
         SetLabelText(detailBase, UI.LBL_LV_MAX, table_data.maxLv.ToString());
         SetLabelText(detailBase, UI.LBL_ATK, num.ToString());
         SetLabelText(detailBase, UI.LBL_ELEM, num3.ToString());
         SetElementSprite(detailBase, UI.SPR_ELEM, table_data.GetElemAtkType(null));
         SetLabelText(detailBase, UI.LBL_DEF, num2.ToString());
         SetLabelText(detailBase, UI.LBL_ELEM_DEF, num4.ToString());
         SetDefElementSprite(detailBase, UI.SPR_ELEM_DEF, table_data.GetElemDefType(null));
         SetLabelText(detailBase, UI.LBL_HP, num5.ToString());
         SetLabelText(detailBase, UI.LBL_SELL, table_data.sale.ToString());
         SetActive(detailBase, UI.OBJ_FAVORITE_ROOT, false);
         SetActive(detailBase, UI.SPR_IS_EVOLVE, table_data.IsEvolve());
         SetEquipmentTypeIcon(detailBase, UI.SPR_TYPE_ICON, UI.SPR_TYPE_ICON_BG, UI.SPR_TYPE_ICON_RARITY, table_data);
         SetRenderEquipModel((Enum)UI.TEX_MODEL, table_data.id, sex, faceID, 1f);
     }
     else
     {
         NotDataEquipParam();
     }
 }
 public int GetElemAtkType()
 {
     return((level != 1) ? tableData.GetElemType(GetGrowParamElemAtk(false)) : tableData.GetElemAtkType((exceedParam == null) ? null : exceedParam.atkElement));
 }