1. def __SetSkillGroupName(self, race, group):
  2. job = chr.RaceToJob(race)
  3. if not self.SKILL_GROUP_NAME_DICT.has_key(job):
  4. return
  5. nameList = self.SKILL_GROUP_NAME_DICT[job]
  6. if 0 == group:
  7. self.skillGroupButton1.SetText(nameList[1])
  8. self.skillGroupButton2.SetText(nameList[2])
  9. self.skillGroupButton1.Show()
  10. self.skillGroupButton2.Show()
  11. self.activeSkillGroupName.Hide()
  12. else:
  13. if self.__CanUseHorseSkill():
  14. self.activeSkillGroupName.Hide()
  15. self.skillGroupButton1.SetText(nameList.get(group, "Noname"))
  16. self.skillGroupButton2.SetText(localeInfo.SKILL_GROUP_HORSE)
  17. self.skillGroupButton1.Show()
  18. self.skillGroupButton2.Show()
  19. else:
  20. self.activeSkillGroupName.SetText(nameList.get(group, "Noname"))
  21. self.activeSkillGroupName.Show()
  22. self.skillGroupButton1.Hide()
  23. self.skillGroupButton2.Hide()
Comments powered by Disqus