def RefreshAlignment(self):
point, grade = player.GetAlignmentData()
#ENABLE_ALIGN_RENEWAL
import colorInfo
COLOR_DICT = { 0 : colorInfo.TITLE_RGB_GOOD_7,
1 : colorInfo.TITLE_RGB_GOOD_6,
2 : colorInfo.TITLE_RGB_GOOD_5,
3 : colorInfo.TITLE_RGB_GOOD_4,
4 : colorInfo.TITLE_RGB_GOOD_3,
5 : colorInfo.TITLE_RGB_GOOD_2,
6 : colorInfo.TITLE_RGB_GOOD_1,
7 : colorInfo.TITLE_RGB_NORMAL,
8 : colorInfo.TITLE_RGB_EVIL_1,
9 : colorInfo.TITLE_RGB_EVIL_2,
10 : colorInfo.TITLE_RGB_EVIL_3,
11 : colorInfo.TITLE_RGB_EVIL_4, }
colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])
self.toolTipAlignment.ClearToolTip()
self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + str(point))
if app.ENABLE_ALIGN_RENEWAL:
self.toolTipAlignment.AppendSpace(2)
if point >= 30000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_8_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_8_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_8_C, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(3)
elif point >= 25000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_7_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_7_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 20000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_6_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_6_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 18000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_5_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_5_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 12000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_4_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_4_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 8000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_3_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_3_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 4000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_2_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_2_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
elif point >= 1000:
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_1_A, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGN_BONUS_GOOD_1_B, self.toolTipAlignment.POSITIVE_COLOR)
self.toolTipAlignment.AppendSpace(2)
self.toolTipAlignment.AlignHorizonalCenter()