mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Debug mode overrides InfoDetail
This commit is contained in:
parent
a884ab2652
commit
99fc386e1a
2 changed files with 9 additions and 7 deletions
|
@ -44,7 +44,7 @@
|
|||
<Option7_Label>cycle accelerate</Option7_Label>
|
||||
<Option7_Desc>accelerate menstrution cycle This can cause early menopause and infertility. Setting this lower than x12 is recommended. Rimworld's timescale: x6(default) </Option7_Desc>
|
||||
<Option8_Label>Debug</Option8_Label>
|
||||
<Option8_Desc>show debug informations.</Option8_Desc>
|
||||
<Option8_Desc>Show debug informations. Also overrides "Fetus information level" to All</Option8_Desc>
|
||||
<Option9_Label>womb status</Option9_Label>
|
||||
<Option9_Desc>draw womb icon in status window</Option9_Desc>
|
||||
<Option10_Label>vagina and breast status</Option10_Label>
|
||||
|
|
|
@ -27,6 +27,8 @@ namespace RJW_Menstruation
|
|||
public const float EggLifespanMultiplierDefault = 1.0f;
|
||||
public const float VaginaMorphPowerDefault = 0.2f;
|
||||
|
||||
public static DetailLevel infoDetail = DetailLevel.All;
|
||||
|
||||
public static float ImplantationChance = ImplantationChanceDefault;
|
||||
public static int ImplantationChanceAdjust = ImplantationChanceAdjustDefault;
|
||||
public static float FertilizeChance = FertilizeChanceDefault;
|
||||
|
@ -43,7 +45,7 @@ namespace RJW_Menstruation
|
|||
public static bool DrawEggOverlay = true;
|
||||
public static bool Debug = false;
|
||||
public static bool EnableMenopause = true;
|
||||
public static DetailLevel InfoDetail = DetailLevel.All;
|
||||
public static DetailLevel InfoDetail { get => Debug ? DetailLevel.All : infoDetail; }
|
||||
public static bool UseMultiplePregnancy = true;
|
||||
public static bool EnableHeteroOvularTwins = true;
|
||||
public static bool EnableEnzygoticTwins = true;
|
||||
|
@ -183,7 +185,7 @@ namespace RJW_Menstruation
|
|||
Scribe_Values.Look(ref DrawVaginaStatus, "DrawVaginaStatus", DrawVaginaStatus, true);
|
||||
Scribe_Values.Look(ref DrawEggOverlay, "DrawEggOvray", DrawEggOverlay, true);
|
||||
Scribe_Values.Look(ref Debug, "Debug", Debug, true);
|
||||
Scribe_Values.Look(ref InfoDetail, "InfoDetail", InfoDetail, true);
|
||||
Scribe_Values.Look(ref infoDetail, "InfoDetail", infoDetail, true);
|
||||
Scribe_Values.Look(ref EnableMenopause, "EnableMenopause", EnableMenopause, true);
|
||||
Scribe_Values.Look(ref UseMultiplePregnancy, "UseMultiplePregnancy", UseMultiplePregnancy, true);
|
||||
Scribe_Values.Look(ref EnableHeteroOvularTwins, "EnableHeteroOvularTwins", EnableHeteroOvularTwins, true);
|
||||
|
@ -279,12 +281,12 @@ namespace RJW_Menstruation
|
|||
|
||||
wombsection.CheckboxLabeled(Translations.Option10_Label, ref Configurations.DrawVaginaStatus, Translations.Option10_Desc);
|
||||
wombsection.CheckboxLabeled(Translations.Option29_Label, ref Configurations.AllowShrinkIcon, Translations.Option29_Desc);
|
||||
if (wombsection.ButtonText(Translations.Option11_Label + ": " + Configurations.LevelString(Configurations.InfoDetail)))
|
||||
if (wombsection.ButtonText(Translations.Option11_Label + ": " + Configurations.LevelString(Configurations.infoDetail)))
|
||||
{
|
||||
if (Configurations.InfoDetail == Configurations.DetailLevel.Hide) Configurations.InfoDetail = Configurations.DetailLevel.All;
|
||||
else Configurations.InfoDetail++;
|
||||
if (Configurations.infoDetail == Configurations.DetailLevel.Hide) Configurations.infoDetail = Configurations.DetailLevel.All;
|
||||
else Configurations.infoDetail++;
|
||||
}
|
||||
switch (Configurations.InfoDetail)
|
||||
switch (Configurations.infoDetail)
|
||||
{
|
||||
case Configurations.DetailLevel.All:
|
||||
wombsection.Label(Translations.Option11_Desc_1);
|
||||
|
|
Loading…
Reference in a new issue