mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Disguise progress bar color for the hidden pregnancy
This commit is contained in:
parent
b7267e614c
commit
33bbde68ca
1 changed files with 19 additions and 4 deletions
|
@ -251,11 +251,27 @@ namespace RJW_Menstruation
|
||||||
return mixedcolor;
|
return mixedcolor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Stage CurrentVisibleStage
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (curStage == Stage.Pregnant)
|
||||||
|
{
|
||||||
|
if (Configurations.InfoDetail == Configurations.DetailLevel.All || (PregnancyHelper.GetPregnancy(parent.pawn)?.Visible ?? false))
|
||||||
|
return Stage.Pregnant;
|
||||||
|
else
|
||||||
|
return Stage.Luteal;
|
||||||
|
}
|
||||||
|
return curStage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public string GetCurStageLabel
|
public string GetCurStageLabel
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
switch (curStage)
|
switch (CurrentVisibleStage)
|
||||||
{
|
{
|
||||||
case Stage.Follicular:
|
case Stage.Follicular:
|
||||||
return Translations.Stage_Follicular;
|
return Translations.Stage_Follicular;
|
||||||
|
@ -268,8 +284,7 @@ namespace RJW_Menstruation
|
||||||
case Stage.Fertilized:
|
case Stage.Fertilized:
|
||||||
return Translations.Stage_Fertilized;
|
return Translations.Stage_Fertilized;
|
||||||
case Stage.Pregnant:
|
case Stage.Pregnant:
|
||||||
if (Configurations.InfoDetail == Configurations.DetailLevel.All || (PregnancyHelper.GetPregnancy(parent.pawn)?.Visible ?? false)) return Translations.Stage_Pregnant;
|
return Translations.Stage_Pregnant;
|
||||||
else return Translations.Stage_Luteal;
|
|
||||||
case Stage.Recover:
|
case Stage.Recover:
|
||||||
return Translations.Stage_Recover;
|
return Translations.Stage_Recover;
|
||||||
case Stage.None:
|
case Stage.None:
|
||||||
|
@ -483,7 +498,7 @@ namespace RJW_Menstruation
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!StageTexture.TryGetValue(curStage, out Texture2D tex)) tex = TextureCache.TzeentchTexture;
|
if (!StageTexture.TryGetValue(CurrentVisibleStage, out Texture2D tex)) tex = TextureCache.TzeentchTexture;
|
||||||
return tex;
|
return tex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue