[May help finding and replacing code; commented by # is the original code]
The following is for highlighting the correct choices in yellow in interest:
Add image round_colored_button_hint.png to game/gui/bar folder
PersonClass.RPY
def TalkAboutInterestsElemGenerator(theme, value, person):
# state = False
showThemeHint = False
state = False
# return (state, hint, person.TalkAboutInterestsAction)
if theme in person.Interests.keys() and person.Interests[theme] > 0:
showThemeHint = True
return (state, showThemeHint, hint, person.TalkAboutInterestsAction)
screens.RPY
def InterestLearnElemGenerator(theme, value):
# return ((Player.Interests[theme].DLearn != 0 and ThemesCounter < 3), theme, LearnInterestAction)
return ((Player.Interests[theme].DLearn != 0 and ThemesCounter < 3), false, theme, LearnInterestAction)
screen InterestTalkThemesFrame(gen_func, close_func, intext):
# t_state, mhint, func = gen_func(theme = thm, value = dv)
t_state, show_hint, mhint, func = gen_func(theme = thm, value = dv)
# if t_state == True:
if t_state and show_hint:
top_bar Frame("gui/bar/round_button.png")
bottom_bar Frame("gui/bar/round_colored_button_hint.png")
elif t_state == True:
The following is for highlighting the correct choices in yellow in interest:
Add image round_colored_button_hint.png to game/gui/bar folder
PersonClass.RPY
def TalkAboutInterestsElemGenerator(theme, value, person):
# state = False
showThemeHint = False
state = False
# return (state, hint, person.TalkAboutInterestsAction)
if theme in person.Interests.keys() and person.Interests[theme] > 0:
showThemeHint = True
return (state, showThemeHint, hint, person.TalkAboutInterestsAction)
screens.RPY
def InterestLearnElemGenerator(theme, value):
# return ((Player.Interests[theme].DLearn != 0 and ThemesCounter < 3), theme, LearnInterestAction)
return ((Player.Interests[theme].DLearn != 0 and ThemesCounter < 3), false, theme, LearnInterestAction)
screen InterestTalkThemesFrame(gen_func, close_func, intext):
# t_state, mhint, func = gen_func(theme = thm, value = dv)
t_state, show_hint, mhint, func = gen_func(theme = thm, value = dv)
# if t_state == True:
if t_state and show_hint:
top_bar Frame("gui/bar/round_button.png")
bottom_bar Frame("gui/bar/round_colored_button_hint.png")
elif t_state == True: