public override void Draw(GameTime gameTime) { base.DrawDarkenScreen(); Vector2 ringMod = Vector2.Lerp(new Vector2(100, 0), Vector2.Zero, Transition); DrawBigCircle(gameTime, ring1Pos + ringMod); DrawBigCircle(gameTime, ring2Pos + ringMod); float transitionMod = Helpers.PopLerp(Transition, -100, 40, 0); Color titleColor = Color.Lerp(OldXNAColor.TransparentWhite, Color.White, Transition); Color darkColor = Color.Lerp(OldXNAColor.TransparentBlack, new Color(0, 0, 0, 64), Transition); Vector2 titleVec = FrameworkCore.Gothic.MeasureString(Resource.MenuPaused); Vector2 titlePos = menuItems[0].position + new Vector2(0, -titleVec.Y); titlePos.X += transitionMod; titlePos.Y -= 32; Helpers.DrawOutline(FrameworkCore.Gothic, Resource.MenuPaused, titlePos, titleColor, darkColor, 0, Vector2.Zero, 1); base.DrawItems(gameTime, transitionMod); FrameworkCore.DrawTrialMode(gameTime); }
public override void Draw(GameTime gameTime) { Vector2 pos = menuItems[0].position; //pos.X += Helpers.PopLerp(Transition, -100,30,0); Vector2 titleVec = FrameworkCore.Gothic.MeasureString("Sample"); pos.Y -= titleVec.Y + LINESIZE + 8; Color titleColor = Color.Lerp(OldXNAColor.TransparentWhite, Color.White, Transition); Color darkColor = Color.Lerp(OldXNAColor.TransparentBlack, new Color(0, 0, 0, 128), Transition); float modifier = Helpers.PopLerp(Transition, -200, 50, 0); pos.X += modifier; Helpers.DrawOutline(FrameworkCore.Gothic, Resource.MenuTitle, pos, titleColor, darkColor, -0.15f, Vector2.Zero, 1); DrawSignedIn(pos, titleColor, darkColor); drawitems(gameTime, modifier); DrawCopyright(); FrameworkCore.DrawTrialMode(gameTime); #if DEBUG foreach (MenuItem item in menuItems) { FrameworkCore.SpriteBatch.Draw(FrameworkCore.hudSheet, item.hitBox, sprite.blank, new Color(255, 0, 0, 128)); if (menuItems.IndexOf(item) == 0) { Helpers.DrawOutline("x", item.hitCursor); } } #endif }