public static int GetCategoryLocalization(SkillCat category) { switch (category) { default: //case SkillCat.None: return(0); case SkillCat.Miscellaneous: return(1078596); case SkillCat.Combat: return(1078592); case SkillCat.TradeSkills: return(1078591); case SkillCat.Magic: return(1078593); case SkillCat.Wilderness: return(1078595); case SkillCat.Thievery: return(1078594); case SkillCat.Bard: return(1078590); } }
private void BuildSkillCategory(int titleLoc, int x, int y, SkillCat cat, List <SkillName> skills) { AddHtmlLocalized(x, y, Width / 3, 20, CenterLoc, "#" + titleLoc, White, false, false); y += 20; for (int i = 0; i < skills.Count; i++) { int hue = Gray; if (CanSelect(skills[i])) { AddButton(x, y + (i * 20), 4005, 4006, (int)skills[i] + 500, GumpButtonType.Reply, 0); hue = Green; } AddHtmlLocalized(x + 34, y + (i * 20), Width / 3, 20, User.Skills[skills[i]].Info.Localization, hue, false, false); } }
private SkillCat SkillCategoryByName(string name) { SkillCat cat = SkillCat.Activated; switch (name.ToLower()) { case "empower": cat = SkillCat.TurnActivated; break; case "poison": cat = SkillCat.Triggered; break; default: break; } return(cat); }