diff --git a/1.3/Assemblies/RJW_Menstruation.dll b/1.3/Assemblies/RJW_Menstruation.dll index bc179a8..2e85449 100644 Binary files a/1.3/Assemblies/RJW_Menstruation.dll and b/1.3/Assemblies/RJW_Menstruation.dll differ diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/UI/Dialog_WombStatus.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/UI/Dialog_WombStatus.cs index 64bef90..7ec6033 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/UI/Dialog_WombStatus.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/UI/Dialog_WombStatus.cs @@ -32,11 +32,11 @@ namespace RJW_Menstruation private Texture2D anal; private Color cumcolor; - private readonly GUIStyle fontstylecenter = new GUIStyle() { alignment = TextAnchor.MiddleCenter }; - private readonly GUIStyle fontstyleright = new GUIStyle() { alignment = TextAnchor.MiddleRight }; - private readonly GUIStyle fontstyleleft = new GUIStyle() { alignment = TextAnchor.MiddleLeft }; - private readonly GUIStyle boxstyle = new GUIStyle(GUI.skin.textArea); - private readonly GUIStyle buttonstyle = new GUIStyle(GUI.skin.button); + private static GUIStyle fontstylecenter = null; + private static GUIStyle fontstyleright = null; + private static GUIStyle fontstyleleft = null; + private static GUIStyle boxstyle = null; + private static GUIStyle buttonstyle = null; public Pawn Pawn { @@ -137,6 +137,16 @@ namespace RJW_Menstruation } + public override void PreOpen() + { + base.PreOpen(); + if (fontstylecenter == null) fontstylecenter = new GUIStyle() { alignment = TextAnchor.MiddleCenter }; + if (fontstyleright == null) fontstyleright = new GUIStyle() { alignment = TextAnchor.MiddleRight }; + if (fontstyleleft == null) fontstyleleft = new GUIStyle() { alignment = TextAnchor.MiddleLeft }; + if (boxstyle == null) boxstyle = new GUIStyle(GUI.skin.textArea); + if (buttonstyle == null) buttonstyle = new GUIStyle(GUI.skin.button); + } + private void MainContents(Rect mainRect) {