From 454f50c97cae8c93bb469584befc521a91116266 Mon Sep 17 00:00:00 2001 From: amevarashi Date: Sun, 24 Apr 2022 20:23:05 +0500 Subject: [PATCH] Move "reset to default" label to XML --- 1.3/Languages/English/Keyed/RJW_Menstruation.xml | 3 ++- 1.3/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs | 2 +- 1.3/source/RJW_Menstruation/RJW_Menstruation/Translations.cs | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/1.3/Languages/English/Keyed/RJW_Menstruation.xml b/1.3/Languages/English/Keyed/RJW_Menstruation.xml index d08811a..9b4c6e7 100644 --- a/1.3/Languages/English/Keyed/RJW_Menstruation.xml +++ b/1.3/Languages/English/Keyed/RJW_Menstruation.xml @@ -104,7 +104,8 @@ Estimated sperm lifespan Estimated egg lifespan Chance of fertilization within an hour: {0}% The chance of pregnancy of fertilized egg. The white overlay is indicates fertilization chance of sperms in womb. - + Reset to default + Vaginal washing Custom Hybrid Editor diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs index b497b58..07697fd 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/Configurations.cs @@ -448,7 +448,7 @@ namespace RJW_Menstruation Widgets.EndScrollView(); listmain.CheckboxLabeled(Translations.Option8_Label, ref Configurations.Debug, Translations.Option8_Desc); - if (listmain.ButtonText("reset to default")) + if (listmain.ButtonText(Translations.Button_ResetToDefault)) { Configurations.SettoDefault(); diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/Translations.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/Translations.cs index 5174423..f84813c 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/Translations.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/Translations.cs @@ -108,6 +108,8 @@ namespace RJW_Menstruation public static readonly string Option32_Label = "Option32_Label".Translate(); public static readonly string Option32_Desc = "Option32_Desc".Translate(); + public static readonly string Button_ResetToDefault = "Button_ResetToDefault".Translate(); + public static readonly string EstimatedCumLifespan = "EstimatedCumLifespan".Translate(); public static readonly string EstimatedEggLifespan = "EstimatedEggLifespan".Translate(); public static string FertilityDesc(string value) => "FertilityDesc".Translate(value);