Ejemplo n.º 1
0
            static public void Refresh()
            {
                for (int profileIndex = 0; profileIndex < profileImages.Count; profileIndex++)
                {
                    foreach (Image image in profileImages[profileIndex])
                    {
                        image.gameObject.SetActive(profileIndex == Data.profile[Data.mode]);
                    }
                }

                Color enabledColor  = new Color(1, 1, 1, 1);
                Color disabledColor = new Color(0.25f, 0.25f, 0.25f, 1);

                if (Data.modEnabled)
                {
                    statusTexts[0].color = enabledColor;
                    statusTexts[0].text  = "Enabled";
                }
                else
                {
                    statusTexts[0].color = disabledColor;
                    statusTexts[0].text  = "Disabled";
                }

                UIDrawerNoShop.Refresh();
                UIDrawerShop.Refresh();
            }
Ejemplo n.º 2
0
 static public void DrawUI()
 {
     ResetRootPivot();
     ClearShopInterfaces();
     DrawShading();
     CalculateVerticalOffset();
     DrawBlueButtons();
     DrawShop();
     DrawBlackButtons();
     DrawInstructions();
     DrawModName();
     UIDrawerNoShop.DrawUI();
     UIDrawerShop.DrawUI();
     Refresh();
 }