static void Postfix(SetGongFaIcon __instance, int gongFaId, int actorId) { if (!Main.enabled) { return; } Changer changer = new Changer(); //功法所属门派 if (Main.settings.showGongFaGang) { string gangName = changer.getGangName(gongFaId); __instance.gongFaSizeText.text = gangName + "\n" + __instance.gongFaSizeText.text; } //根据修习进度与心得变更颜色增加区分度 if (Main.settings.showGongFaProgress) { int level = DateFile.instance.GetGongFaLevel(actorId, gongFaId, 0); int colorFix = level / 10; __instance.gongFaLevelText.text = DateFile.instance.SetColoer(20001 + colorFix, __instance.gongFaLevelText.text); int bookLevel = DateFile.instance.GetGongFaFLevel(actorId, gongFaId); __instance.gongFaBookLevelText.text = DateFile.instance.SetColoer(20001 + bookLevel, __instance.gongFaBookLevelText.text); } }
static void Postfix(SetGongFaIcon __instance, int gongFaId, int actorId) { if (!Main.enabled) { return; } if (Main.settings.showGongFaLevel) { int lv = int.Parse(DateFile.instance.gongFaDate[gongFaId][2]); __instance.gongFaNameText.text = DateFile.instance.SetColoer(20001 + lv, __instance.gongFaNameText.text); } //功法所属门派 if (Main.settings.showGongFaGang) { int gangId = int.Parse(DateFile.instance.gongFaDate[gongFaId][3]); string gangName = DateFile.instance.presetGangDate[gangId][0]; __instance.gongFaSizeText.text = gangName + "-" + __instance.gongFaSizeText.text; } //根据修习进度与心得变更颜色增加区分度 if (Main.settings.showGongFaProgress) { int level = DateFile.instance.GetGongFaLevel(actorId, gongFaId)[0]; int colorFix = level / 10; __instance.gongFaLevelText.text = DateFile.instance.SetColoer(20001 + colorFix, __instance.gongFaLevelText.text); int bookLevel = DateFile.instance.GetGongFaFLevel(actorId, gongFaId); __instance.gongFaBookLevelText.text = DateFile.instance.SetColoer(20001 + bookLevel, __instance.gongFaBookLevelText.text); } }