private void DrawWelcome(Rectangle bounds, SpriteBatch sb)
        {
            var num1 = logoRenderBase.Height / (float)logoRenderBase.Width;
            var num2 = 45;
            var dest = new Rectangle(bounds.X - num2 + 20, bounds.Y, bounds.Width + num2,
                                     (int)((bounds.Width + 2 * num2) * (double)num1));

            DrawLogo(dest, sb);
            var rectangle = new Rectangle(bounds.X, dest.Y + dest.Height, bounds.Width, 60);

            sb.Draw(scanlinesTextBackground, rectangle, Utils.AddativeWhite * 0.2f);
            for (var index = 0; index < Stars.Count; ++index)
            {
                DrawStar(rectangle, sb, Stars[index]);
            }
            rectangle.X     += 100;
            rectangle.Width  = bounds.Width - 200;
            rectangle.Y     += 13;
            rectangle.Height = 35;
            if (Button.doButton(98373721, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, "GO!",
                                Utils.AddativeWhite))
            {
                activeState = null;
                var str = os.defaultUser.name;
                for (var index = 0; index < savesFolder.files.Count; ++index)
                {
                    if (savesFolder.files[index].name.StartsWith(str))
                    {
                        userFilePath = savesFolder.files[index].name;
                        activeState  = PointClickerGameState.LoadFromString(savesFolder.files[index].data);
                        break;
                    }
                }
                if (activeState == null)
                {
                    activeState = new PointClickerGameState(upgradeNames.Count);
                    var fileEntry = new FileEntry(activeState.ToSaveString(), str + ".pcsav");
                    savesFolder.files.Add(fileEntry);
                    userFilePath = fileEntry.name;
                }
                state       = PointClickerScreenState.Main;
                currentRate = 0.0f;
                ActiveStory = "";
                UpdateRate();
                UpdateStory();
                UpdatePoints();
            }
            if (
                !Button.doButton(98373732, bounds.X + 2, bounds.Y + bounds.Height - 19, 180, 18, "Exit  :<",
                                 os.lockedColor))
            {
                return;
            }
            os.display.command = "connect";
        }
        private void DrawMainScreen(Rectangle bounds, SpriteBatch sb)
        {
            var points     = activeState.points.ToString();
            var rectangle1 = new Rectangle(bounds.X + 1, bounds.Y + 10, bounds.Width - 2, 100);

            DrawMonospaceString(rectangle1, sb, points);
            rectangle1.Y -= 4;
            sb.Draw(scanlinesTextBackground, rectangle1, ThemeColor * 0.2f);
            for (var index = 0; index < Stars.Count; ++index)
            {
                DrawStar(rectangle1, sb, Stars[index]);
            }
            var bounds1 = new Rectangle(bounds.X + 2, rectangle1.Y + rectangle1.Height + 12, bounds.Width / 2 - 4,
                                        bounds.Height - 12 - (rectangle1.Y + rectangle1.Height - bounds.Y));

            DrawUpgrades(bounds1, sb);
            var num1   = logoRenderBase.Height / (float)logoRenderBase.Width;
            var num2   = 45;
            var width  = bounds.Width / 2 + num2;
            var height = (int)(width * (double)num1);

            DrawHoverTooltip(
                new Rectangle(bounds.X + bounds1.Width + 4, bounds1.Y, bounds.Width - bounds1.Width - 8,
                              bounds1.Height - height + 30), sb);
            var rectangle2 = new Rectangle(bounds.X + bounds.Width - width + 42, bounds.Y + bounds.Height - height + 10,
                                           width - 50, 50);
            var text = Utils.SuperSmartTwimForWidth(ActiveStory, rectangle2.Width, GuiData.smallfont);

            TextItem.doFontLabel(new Vector2(rectangle2.X, rectangle2.Y), text, GuiData.smallfont, ThemeColor,
                                 rectangle2.Width, rectangle2.Height);
            DrawLogo(
                new Rectangle(bounds.X + bounds.Width - width + 35, bounds.Y + bounds.Height - height + 20, width,
                              height), sb);
            if (
                !Button.doButton(3032113, bounds.X + bounds.Width - 22, bounds.Y + bounds.Height - 22, 20, 20, "X",
                                 os.lockedColor))
            {
                return;
            }
            state = PointClickerScreenState.Welcome;
        }
 public override void navigatedTo()
 {
     base.navigatedTo();
     state = PointClickerScreenState.Welcome;
 }
 private void DrawWelcome(Rectangle bounds, SpriteBatch sb)
 {
     var num1 = logoRenderBase.Height/(float) logoRenderBase.Width;
     var num2 = 45;
     var dest = new Rectangle(bounds.X - num2 + 20, bounds.Y, bounds.Width + num2,
         (int) ((bounds.Width + 2*num2)*(double) num1));
     DrawLogo(dest, sb);
     var rectangle = new Rectangle(bounds.X, dest.Y + dest.Height, bounds.Width, 60);
     sb.Draw(scanlinesTextBackground, rectangle, Utils.AddativeWhite*0.2f);
     for (var index = 0; index < Stars.Count; ++index)
         DrawStar(rectangle, sb, Stars[index]);
     rectangle.X += 100;
     rectangle.Width = bounds.Width - 200;
     rectangle.Y += 13;
     rectangle.Height = 35;
     if (Button.doButton(98373721, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, "GO!",
         Utils.AddativeWhite))
     {
         activeState = null;
         var str = os.defaultUser.name;
         for (var index = 0; index < savesFolder.files.Count; ++index)
         {
             if (savesFolder.files[index].name.StartsWith(str))
             {
                 userFilePath = savesFolder.files[index].name;
                 activeState = PointClickerGameState.LoadFromString(savesFolder.files[index].data);
                 break;
             }
         }
         if (activeState == null)
         {
             activeState = new PointClickerGameState(upgradeNames.Count);
             var fileEntry = new FileEntry(activeState.ToSaveString(), str + ".pcsav");
             savesFolder.files.Add(fileEntry);
             userFilePath = fileEntry.name;
         }
         state = PointClickerScreenState.Main;
         currentRate = 0.0f;
         ActiveStory = "";
         UpdateRate();
         UpdateStory();
         UpdatePoints();
     }
     if (
         !Button.doButton(98373732, bounds.X + 2, bounds.Y + bounds.Height - 19, 180, 18, "Exit  :<",
             os.lockedColor))
         return;
     os.display.command = "connect";
 }
 private void DrawMainScreen(Rectangle bounds, SpriteBatch sb)
 {
     var points = activeState.points.ToString();
     var rectangle1 = new Rectangle(bounds.X + 1, bounds.Y + 10, bounds.Width - 2, 100);
     DrawMonospaceString(rectangle1, sb, points);
     rectangle1.Y -= 4;
     sb.Draw(scanlinesTextBackground, rectangle1, ThemeColor*0.2f);
     for (var index = 0; index < Stars.Count; ++index)
         DrawStar(rectangle1, sb, Stars[index]);
     var bounds1 = new Rectangle(bounds.X + 2, rectangle1.Y + rectangle1.Height + 12, bounds.Width/2 - 4,
         bounds.Height - 12 - (rectangle1.Y + rectangle1.Height - bounds.Y));
     DrawUpgrades(bounds1, sb);
     var num1 = logoRenderBase.Height/(float) logoRenderBase.Width;
     var num2 = 45;
     var width = bounds.Width/2 + num2;
     var height = (int) (width*(double) num1);
     DrawHoverTooltip(
         new Rectangle(bounds.X + bounds1.Width + 4, bounds1.Y, bounds.Width - bounds1.Width - 8,
             bounds1.Height - height + 30), sb);
     var rectangle2 = new Rectangle(bounds.X + bounds.Width - width + 42, bounds.Y + bounds.Height - height + 10,
         width - 50, 50);
     var text = Utils.SuperSmartTwimForWidth(ActiveStory, rectangle2.Width, GuiData.smallfont);
     TextItem.doFontLabel(new Vector2(rectangle2.X, rectangle2.Y), text, GuiData.smallfont, ThemeColor,
         rectangle2.Width, rectangle2.Height);
     DrawLogo(
         new Rectangle(bounds.X + bounds.Width - width + 35, bounds.Y + bounds.Height - height + 20, width,
             height), sb);
     if (
         !Button.doButton(3032113, bounds.X + bounds.Width - 22, bounds.Y + bounds.Height - 22, 20, 20, "X",
             os.lockedColor))
         return;
     state = PointClickerScreenState.Welcome;
 }
 public override void navigatedTo()
 {
     base.navigatedTo();
     state = PointClickerScreenState.Welcome;
 }