public override void Draw(SpriteBatch sb) { //sb.End(); //sb.GraphicsDevice.SetRenderTarget(UIElementRender); //sb.GraphicsDevice.Clear(Color.TransparentBlack); //sb.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp,null,null,null,null); //sb.Draw(Game1.hitboxHelp, new Rectangle(Point.Zero, size), Color.White); //sb.End(); TabItemContents.Draw(sb); }
public static void Draw(SpriteBatch sb) { if (uic != null) { if (Scenes.Editor.MapBuilder.gcDB.gameUICollections.Count == 0) { UICollectionSave UICS = new UICollectionSave(); UICS.parent = uic; Scenes.Editor.MapBuilder.gcDB.AddUICollection(UICS); } uic.Draw(sb); } }