private void SetSkillType(Hotfix_LT.Data.eSkillType skillType) { if (skillType == Hotfix_LT.Data.eSkillType.ACTIVE) { SkillType.text = SkillType.transform.GetChild(0).GetComponent <UILabel>().text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4070"); SkillTypeBg.color = LT.Hotfix.Utility.ColorUtility.RedColor; } else if (skillType == Hotfix_LT.Data.eSkillType.NORMAL) { SkillType.text = SkillType.transform.GetChild(0).GetComponent <UILabel>().text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4440"); SkillTypeBg.color = LT.Hotfix.Utility.ColorUtility.PurpleColor; } else if (skillType == Hotfix_LT.Data.eSkillType.PASSIVE) { SkillType.text = SkillType.transform.GetChild(0).GetComponent <UILabel>().text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4751"); SkillTypeBg.color = LT.Hotfix.Utility.ColorUtility.BlueColor; } }
/// <summary> /// /// </summary> /// <param name="skillType"></param> /// <param name="lab"></param> /// <param name="sp"></param> private void SetSkillType(Hotfix_LT.Data.eSkillType skillType, UILabel lab, UISprite sp) { if (skillType == Hotfix_LT.Data.eSkillType.ACTIVE) { lab.text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4070"); sp.color = LT.Hotfix.Utility.ColorUtility.RedColor; } else if (skillType == Hotfix_LT.Data.eSkillType.NORMAL) { lab.text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4440"); sp.color = LT.Hotfix.Utility.ColorUtility.PurpleColor; } else if (skillType == Hotfix_LT.Data.eSkillType.PASSIVE) { lab.text = EB.Localizer.GetString("ID_codefont_in_UISkillDescContorller_4751"); sp.color = LT.Hotfix.Utility.ColorUtility.BlueColor; } }
private string GetSkillTypeStr(Hotfix_LT.Data.eSkillType skillType) { string str = ""; if (skillType == Hotfix_LT.Data.eSkillType.ACTIVE) { str = EB.Localizer.GetString("ID_codefont_in_LTPartnerSkillBreakController_13041"); } else if (skillType == Hotfix_LT.Data.eSkillType.NORMAL) { str = EB.Localizer.GetString("ID_codefont_in_LTPartnerSkillBreakController_13140"); } else if (skillType == Hotfix_LT.Data.eSkillType.PASSIVE) { str = EB.Localizer.GetString("ID_codefont_in_LTPartnerSkillBreakController_13212"); } return(str); }
public void OnSkillSelectEvent(int skillID, Hotfix_LT.Data.eSkillType skillType) { UseScrollSkillId = 0; BagSelectFrame.gameObject.CustomSetActive(false); if (skillType == Hotfix_LT.Data.eSkillType.NORMAL) { SetTargetingInfo(skillID, _COMMON_TYPE); } else if (skillType == Hotfix_LT.Data.eSkillType.ACTIVE) { SetTargetingInfo(skillID, _SPECIAL_TYPE); } for (var i = 0; i < mDMono.transform.childCount; i++) { CombatSkillItem item = mDMono.transform.GetChild(i).GetMonoILRComponent <CombatSkillItem>(); if (item.Data.ID != skillID) { item.UnSelect(); } } }