Example #1
0
        private void Awake()
        {
            if (ModMenu._instance != null && ModMenu._instance != this)
            {
                Destroy(this);
                return;
            }
            ModMenu._instance = this;

            timescaleOverrideStates.Add(typeof(PlayState));
            timescaleOverrideStates.Add(typeof(TutorialState));

            fontLarge = new GUIStyle()
            {
                fontSize = largeFontSize
            };
            fontLarge.normal.textColor = largeFontColor;
            fontMed = new GUIStyle()
            {
                fontSize = medFontSize
            };
            fontMed.normal.textColor = largeFontColor;
            fontSmall = new GUIStyle()
            {
                fontSize = smallFontSize,
                padding  = new RectOffset(1, 0, 2, 0)
            };
            fontSmall.normal.textColor = smallFontColor;
        }
Example #2
0
        private void Awake()
        {
            if (ModMenu._instance != null && ModMenu._instance != this)
            {
                Destroy(this);
                return;
            }
            ModMenu._instance = this;

            fontLarge = new GUIStyle()
            {
                fontSize = largeFontSize
            };
            fontLarge.normal.textColor = largeFontColor;
            fontMed = new GUIStyle()
            {
                fontSize = medFontSize
            };
            fontMed.normal.textColor = largeFontColor;
            fontSmall = new GUIStyle()
            {
                fontSize = smallFontSize,
                padding  = new RectOffset(1, 0, 2, 0)
            };
            fontSmall.normal.textColor = smallFontColor;
        }
Example #3
0
 private void Awake()
 {
     if (ModMenu._instance != null && ModMenu._instance != this)
     {
         Destroy(this);
         return;
     }
     ModMenu._instance = this;
 }