mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Resize main settings window dynamically based on selected options.
This commit is contained in:
parent
7b5f0880ed
commit
2e6565fcc6
2 changed files with 6 additions and 1 deletions
Binary file not shown.
|
@ -273,7 +273,12 @@ namespace RJW_Menstruation
|
||||||
public override void DoSettingsWindowContents(Rect inRect)
|
public override void DoSettingsWindowContents(Rect inRect)
|
||||||
{
|
{
|
||||||
Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f);
|
Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f);
|
||||||
Rect mainRect = new Rect(0f, 0f, inRect.width - 30f, inRect.height + 596f);
|
float mainRectHeight = -3f +
|
||||||
|
(Configurations.EnableWombIcon || Configurations.EnableButtonInHT ? 400f : 0f) +
|
||||||
|
(Configurations.EstrusOverridesHookupSettings ? 144f : 0f) +
|
||||||
|
(Configurations.UseMultiplePregnancy ? (Configurations.EnableEnzygoticTwins ? 175f : 75f) : 0f) +
|
||||||
|
(Configurations.EnableBirthVaginaMorph ? 48f : 0f);
|
||||||
|
Rect mainRect = new Rect(0f, 0f, inRect.width - 30f, Math.Max(inRect.height + mainRectHeight, 1f));
|
||||||
int Adjust;
|
int Adjust;
|
||||||
Listing_Standard listmain = new Listing_Standard
|
Listing_Standard listmain = new Listing_Standard
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue