From 22cd452d1ea67bc354abbcc2eae5c8e72ffaa1f6 Mon Sep 17 00:00:00 2001 From: AcientSoul <595280235@qq.com> Date: Thu, 18 Jan 2024 15:36:43 +0000 Subject: [PATCH] change f-string to format function --- .../hud_screens/person_info_hud.rpy | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/game/game_screens/hud_screens/person_info_hud.rpy b/game/game_screens/hud_screens/person_info_hud.rpy index 4bafeaa6c..9bd0d4e3d 100644 --- a/game/game_screens/hud_screens/person_info_hud.rpy +++ b/game/game_screens/hud_screens/person_info_hud.rpy @@ -114,39 +114,39 @@ screen person_info_ui(person): #Used to display stats for a person while you're xmaximum 280 xminimum 280 - textbutton "Arousal: [arousal_info]": + textbutton _("Arousal: [arousal_info]"): style "transparent_style" text_style "menu_text_style" - tooltip f"When a girl is brought to 100% arousal she will start to climax. Climaxing will make a girl happier and may put them into a Trance if their suggestibility is higher than 0.\nCurrently: {get_arousal_number_string(person.arousal, person.max_arousal)}" + tooltip __("When a girl is brought to 100% arousal she will start to climax. Climaxing will make a girl happier and may put them into a Trance if their suggestibility is higher than 0.\nCurrently: {arousal_value}").format(arousal_value=get_arousal_number_string(person.arousal, person.max_arousal)) action NullAction() sensitive True - textbutton "Energy: [energy_info]": + textbutton _("Energy: [energy_info]"): style "transparent_style" text_style "menu_text_style" - tooltip f"Energy is spent while having sex, with more energy spent on positions that give the man more pleasure. Some energy comes back each turn, and a lot of energy comes back overnight.\nCurrently {get_energy_number_string(person.energy, person.max_energy)}" + tooltip __("Energy is spent while having sex, with more energy spent on positions that give the man more pleasure. Some energy comes back each turn, and a lot of energy comes back overnight.\nCurrently {energy_value}").format(energy_value=get_energy_number_string(person.energy, person.max_energy)) action NullAction() sensitive True - textbutton "Happiness: [happiness_info]": + textbutton _("Happiness: [happiness_info]"): style "transparent_style" text_style "menu_text_style" - tooltip "The happier a girl the more tolerant she will be of low pay and unpleasant interactions. High or low happiness will return to it's default value over time." + tooltip __("The happier a girl the more tolerant she will be of low pay and unpleasant interactions. High or low happiness will return to it's default value over time.") action NullAction() sensitive True - textbutton "Love: [love_info]": + textbutton _("Love: [love_info]"): style "transparent_style" text_style "menu_text_style" - tooltip f"Girls who love you will be more willing to have sex when you're in private (as long as they aren't family) and be more devoted to you. Girls who hate you will have a lower effective sluttiness regardless of the situation.\nLove: {get_attention_number_string(person.love, 100)}" + tooltip __("Girls who love you will be more willing to have sex when you're in private (as long as they aren't family) and be more devoted to you. Girls who hate you will have a lower effective sluttiness regardless of the situation.\nLove: {love_value}").format(love_value=get_attention_number_string(person.love, 100)) action NullAction() sensitive True hbox: - textbutton "Obedience: [obedience_info]": + textbutton _("Obedience: [obedience_info]"): style "transparent_style" text_style "menu_text_style" - tooltip "Girls with high obedience will listen to commands even when they would prefer not to and are willing to work for less pay. Girls who are told to do things they do not like will lose happiness, and low obedience girls are likely to refuse altogether." + tooltip __("Girls with high obedience will listen to commands even when they would prefer not to and are willing to work for less pay. Girls who are told to do things they do not like will lose happiness, and low obedience girls are likely to refuse altogether.") action NullAction() sensitive True @@ -158,10 +158,10 @@ screen person_info_ui(person): #Used to display stats for a person while you're sensitive True hbox: - textbutton "Sluttiness: [sluttiness_info]": + textbutton _("Sluttiness: [sluttiness_info]"): style "transparent_style" text_style "menu_text_style" - tooltip f"The higher a girls sluttiness the more slutty actions she will consider acceptable and normal. Temporary sluttiness ({{image=red_heart_token_small}}) is added to her sluttiness based on arousal, for active modifiers see {{image=question_mark_small}}.\nSluttiness: {get_attention_number_string(person.effective_sluttiness(), 100)}" + tooltip __("The higher a girls sluttiness the more slutty actions she will consider acceptable and normal. Temporary sluttiness ({{image=red_heart_token_small}}) is added to her sluttiness based on arousal, for active modifiers see {{image=question_mark_small}}.\nSluttiness: {sluttiness_value}").format(sluttiness_value=get_attention_number_string(person.effective_sluttiness(), 100)) action NullAction() sensitive True @@ -177,44 +177,44 @@ screen person_info_ui(person): #Used to display stats for a person while you're xmaximum 200 xminimum 200 - textbutton "Suggestibility: [person.suggestibility]%": + textbutton _("Suggestibility: [person.suggestibility]%"): style "transparent_style" text_style "menu_text_style" - tooltip "How likely a girl is to slip into a trance when she cums. While in a trance she will be highly suggestible, and you will be able to directly influence her stats, skills, and opinions." + tooltip __("How likely a girl is to slip into a trance when she cums. While in a trance she will be highly suggestible, and you will be able to directly influence her stats, skills, and opinions.") action NullAction() sensitive True - textbutton "Age: [person.age]": + textbutton _("Age: [person.age]"): style "transparent_style" text_style "menu_text_style" - tooltip "The age of the girl." + tooltip __("The age of the girl.") action NullAction() sensitive True - textbutton "Height: [height_info]": + textbutton _("Height: [height_info]"): style "transparent_style" text_style "menu_text_style" if use_imperial_system: - tooltip "The length of the girl in feet and inches." + tooltip __("The length of the girl in feet and inches.") else: - tooltip "The length of the girl in centimetres." + tooltip __("The length of the girl in centimetres.") action NullAction() sensitive True - textbutton "Cup size: [person.tits]": + textbutton _("Cup size: [person.tits]"): style "transparent_style" text_style "menu_text_style" - tooltip "The size of the breasts." + tooltip __("The size of the breasts.") action NullAction() sensitive True - textbutton "Weight: [weight_info]": + textbutton _("Weight: [weight_info]"): style "transparent_style" text_style "menu_text_style" if use_imperial_system: - tooltip "The weight of the girl in pounds.\nDetermines the body type." + tooltip __("The weight of the girl in pounds.\nDetermines the body type.") else: - tooltip "The weight of the girl in kilograms\nDetermines the body type." + tooltip __("The weight of the girl in kilograms\nDetermines the body type.") action NullAction() sensitive True @@ -283,3 +283,4 @@ screen person_info_ui(person): #Used to display stats for a person while you're tooltip "She is ovulating and has a higher chance of getting pregnant, based on birth control and desire to get pregnant." use default_tooltip() + -- GitLab