Before: Bitte melden Sie sich an, um dieses Bild zu sehen. After: Bitte melden Sie sich an, um dieses Bild zu sehen.Bitte melden Sie sich an, um dieses Bild zu sehen.Bitte melden Sie sich an, um dieses Bild zu sehen.
Version with Tabs: Bitte melden Sie sich an, um diesen Link zu sehen.
uitooltip.py
Find def AppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):
Delete or comment this
Find def __SetNormalItemTitle(self):
Before add
Code
- def __CheckAntiFlag(self):
- race = player.GetRace()
- job = chr.RaceToJob(race)
- if item.IsAntiFlag(self.ANTI_FLAG_DICT[job]):
- return True
- else:
- return False
- def __CheckSex(self):
- sex = chr.RaceToSex(player.GetRace())
- MALE = 1
- FEMALE = 0
- if item.IsAntiFlag(item.ITEM_ANTIFLAG_MALE) and sex == MALE:
- return True
- if item.IsAntiFlag(item.ITEM_ANTIFLAG_FEMALE) and sex == MALE:
- return False
Find and replace def __SetNormalItemTitle(self): and def __SetSpecialItemTitle(self): with this
Code
- def __SetNormalItemTitle(self):
- if self.__CheckAntiFlag() == True:
- self.AppendTextLine(item.GetItemName(), self.DISABLE_COLOR)
- else:
- if self.__CheckSex() == True:
- self.AppendTextLine(item.GetItemName(), self.DISABLE_COLOR)
- else:
- self.AppendTextLine(item.GetItemName(), self.TITLE_COLOR)
- def __SetSpecialItemTitle(self):
- if self.__CheckAntiFlag() == True:
- self.AppendTextLine(item.GetItemName(), self.DISABLE_COLOR)
- else:
- if self.__CheckSex() == True:
- self.AppendTextLine(item.GetItemName(), self.DISABLE_COLOR)
- else:
- self.AppendTextLine(item.GetItemName(), self.SPECIAL_TITLE_COLOR)
Replace def AppendWearableInformation(self): with
Code
- def AppendWearableInformation(self):
- self.AppendSpace(5)
- if self.__CheckAntiFlag() == True:
- self.AppendTextLine(localeInfo.TOOLTIP_ITEM_WEARABLE_JOB, self.DISABLE_COLOR)
- else:
- self.AppendTextLine(localeInfo.TOOLTIP_ITEM_WEARABLE_JOB, self.NORMAL_COLOR)
- flagList = (
- not item.IsAntiFlag(item.ITEM_ANTIFLAG_WARRIOR),
- not item.IsAntiFlag(item.ITEM_ANTIFLAG_ASSASSIN),
- not item.IsAntiFlag(item.ITEM_ANTIFLAG_SURA),
- not item.IsAntiFlag(item.ITEM_ANTIFLAG_SHAMAN))
- characterNames = ""
- for i in xrange(self.CHARACTER_COUNT):
- name = self.CHARACTER_NAMES[i]
- flag = flagList[i]
- if flag:
- characterNames += " "
- characterNames += name
- if self.__CheckAntiFlag() == True:
- textLine = self.AppendTextLine(characterNames, self.DISABLE_COLOR, True)
- else:
- textLine = self.AppendTextLine(characterNames, self.NORMAL_COLOR, True)
- textLine.SetFeather()
- race = player.GetRace()
- sex = chr.RaceToSex(race)
- MALE = 1
- FEMALE = 0
- if item.IsAntiFlag(item.ITEM_ANTIFLAG_MALE):
- if sex == MALE:
- textLine = self.AppendTextLine(localeInfo.FOR_FEMALE, self.DISABLE_COLOR, True)
- textLine.SetFeather()
- else:
- textLine = self.AppendTextLine(localeInfo.FOR_FEMALE, self.NORMAL_COLOR, True)
- textLine.SetFeather()
- if item.IsAntiFlag(item.ITEM_ANTIFLAG_FEMALE):
- if sex == FEMALE:
- textLine = self.AppendTextLine(localeInfo.FOR_MALE, self.DISABLE_COLOR, True)
- textLine.SetFeather()
- else:
- textLine = self.AppendTextLine(localeInfo.FOR_MALE, self.NORMAL_COLOR, True)
- textLine.SetFeather()