81 lines
3.4 KiB
C#
81 lines
3.4 KiB
C#
public static class MyText
|
|
{
|
|
public static string Get_StatName(eStat stat)
|
|
{
|
|
return table_localtext.Ins.Get_Text(MyEnumToInt.Ins.Get_Int(stat) + 40001);
|
|
}
|
|
public static string Get_StatValueText(eStat stat, double _v)
|
|
{
|
|
switch (stat)
|
|
{
|
|
default:
|
|
return DSUtil.Format("{0:0.##}", _v);
|
|
//return DSUtil.Format("{0:0.##}", NumberFormatter.FormatNumber(_v));
|
|
|
|
case eStat.DMG_Multiplier:
|
|
case eStat.DEF_Multiplier:
|
|
case eStat.CRI_DMG_Multiplier:
|
|
case eStat.COOLTIME_Multiplier:
|
|
case eStat.ATK_SPD_Multiplier:
|
|
case eStat.ATK_Multiplier:
|
|
case eStat.EXP_Multiplier:
|
|
case eStat.GOLD_Multiplier:
|
|
case eStat.HP_Multiplier:
|
|
case eStat.ITEM_Multiplier:
|
|
case eStat.HP_REGEN_Multiplier:
|
|
case eStat.MOVE_SPD_Multiplier:
|
|
case eStat.MP_Multiplier:
|
|
case eStat.MP_REGEN_Multiplier:
|
|
case eStat.M_CRI_DMG_Multiplier:
|
|
case eStat.M_DEF_Multiplier:
|
|
case eStat.PIERCING_Multiplier:
|
|
case eStat.SKILL_Multiplier:
|
|
case eStat.CRI:
|
|
case eStat.M_CRI:
|
|
case eStat.BOSS_DMG_Multiplier:
|
|
case eStat.Monster_DMG_Multiplier:
|
|
case eStat.BOSS_Piercing_Multiplier:
|
|
case eStat.STR_Multiplier:
|
|
case eStat.DEX_Multiplier:
|
|
case eStat.INT_Multiplier:
|
|
case eStat.LUK_Multiplier:
|
|
return Get_PercentValueText_100(_v);
|
|
case eStat.PetGradeRate:
|
|
return DSUtil.Format(270, Get_PercentValueText_100(_v));
|
|
case eStat.AttackType:
|
|
return ((eAttackType)_v).ToString();
|
|
}
|
|
}
|
|
public static string Get_StatNameValueText(eStat stat, double _v) { return DSUtil.Format("{0} {1}", Get_StatName(stat), Get_StatValueText(stat, _v)); }
|
|
public static string Get_GradeName(int Grade)
|
|
{
|
|
var color = MyValue.Get_GradeColor(Grade);
|
|
switch (Grade)
|
|
{
|
|
default: return DSUtil.Format("{0}등급1", color);
|
|
case 2: return DSUtil.Format("{0}등급2", color);
|
|
case 3: return DSUtil.Format("{0}등급3", color);
|
|
case 4: return DSUtil.Format("{0}등급4", color);
|
|
case 5: return DSUtil.Format("{0}등급5", color);
|
|
case 6: return DSUtil.Format("{0}등급6", color);
|
|
case 7: return DSUtil.Format("{0}등급7", color);
|
|
case 8: return DSUtil.Format("{0}등급8", color);
|
|
case 9: return DSUtil.Format("{0}등급9", color);
|
|
}
|
|
}
|
|
public static string Get_eAwakenUpgradeOptionTypeName(string type)
|
|
{
|
|
switch (type)
|
|
{
|
|
case "STR_ADD": return table_localtext.Ins.Get_Text(40002);
|
|
case "DEX_ADD": return table_localtext.Ins.Get_Text(40004);
|
|
case "INT_ADD": return table_localtext.Ins.Get_Text(40006);
|
|
case "LUK_ADD": return table_localtext.Ins.Get_Text(40008);
|
|
}
|
|
return table_localtext.Ins.Get_Text(361);
|
|
}
|
|
public static string Get_PercentValueText_100(double _v) { return DSUtil.Format("{0:#,##0.##}%", _v * 100d); }
|
|
public static string Get_PercentValueText(double _v) { return DSUtil.Format("{0:#,##0.##}%", _v); }
|
|
|
|
public static void Show_CheckMailBox() { NetWait.Ins.Set(false); Popup.Ins.Set(ePopupType.One, 23); }
|
|
} |