Example #1
0
        internal static void Draw(SpriteBatch sb)
        {
            sb.End();
            sb.GraphicsDevice.SetRenderTarget(Game1.gameRender);
            sb.GraphicsDevice.Clear(Color.Black);

            if (bShowTalentTree)
            {
                talentGrid.GenerateRenderEditor(sb);
                sb.GraphicsDevice.SetRenderTarget(Game1.gameRender);
                sb.GraphicsDevice.Clear(Color.Black);
                sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp);
                sb.Draw(talentGrid.getRender(), new Vector2(0), Color.White);
                sb.End();
                return;
            }

            sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, m);


            foreach (var item in gridCamera)
            {
                sb.Draw(Game1.WhiteTex, item.Key, Color.Green);
                sb.DrawString(Game1.defaultFont, item.Value, item.Key.Location.ToVector2(), Color.White);
            }

            sb.End();
        }
        internal void Draw(SpriteBatch sb)
        {
            GenerateRender(sb);

            sb.End();
            sb.GraphicsDevice.SetRenderTarget(render);
            sb.GraphicsDevice.Clear(Color.TransparentBlack);
            sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp);

            leftTexPanel.Draw(sb, Color.White);
            sb.Draw(talentGrid.getRender(), leftPanelRenderLoc, leftPanelRenderLoc, Color.White);

            sb.End();
        }