Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
GuiPanel.cs
Go to the documentation of this file.
1 using Loot.Ext;
2 using Microsoft.Xna.Framework;
3 using Microsoft.Xna.Framework.Graphics;
4 
5 namespace Loot.UI.Common.Controls.Panel
6 {
7  internal class GuiPanel : GuiFramedElement
8  {
9  private static Texture2D _texture => Assets.Textures.GUI.PanelTexture;
10 
11  public GuiPanel() : base(new Vector2(316, 50), new Vector2(10, 10))
12  {
13  }
14 
15  protected override void DrawSelf(SpriteBatch spriteBatch)
16  {
17  base.DrawSelf(spriteBatch);
18 
19  var parentBounds = GetOuterDimensions().ToRectangle();
20 
21  spriteBatch.Draw(
22  _texture,
23  _texture.BoundsFromParent(parentBounds),
24  Color.White
25  );
26 
27  //#if DEBUG
28  // spriteBatch.Draw(
29  // Main.magicPixel,
30  // GetOuterDimensions().ToRectangle(),
31  // Color.Blue * 0.4f
32  // );
33  //#endif
34  }
35  }
36 }