public PlayerInterface(int vie, int mana) : base(Tools.Quick.game) { double screenW = Tools.Quick.graphics.PreferredBackBufferWidth; double screenH = Tools.Quick.graphics.PreferredBackBufferHeight; this.vie = new InterfaceBar(vie, vie, width, height, new Vector2(0, Convert.ToInt32(screenH - height)), TypeBar.Vertical, PlayType.Life); ; this.mana = new InterfaceBar(mana, mana, width, height, new Vector2(Convert.ToInt32(screenW - width), Convert.ToInt32(screenH - height)), TypeBar.Vertical, PlayType.Mana); ; shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2),Convert.ToInt32(screenH -(sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)-(sizeShortcut + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)-(sizeShortcut*2 + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)+(sizeShortcut + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)+(sizeShortcut*2 + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); }
public PlayerInterface(int vie, int mana) : base(Tools.Quick.game) { double screenW = Tools.Quick.graphics.PreferredBackBufferWidth; double screenH = Tools.Quick.graphics.PreferredBackBufferHeight; this.vie = new InterfaceBar(vie, vie, width, height, new Vector2(0, Convert.ToInt32(screenH - height)), TypeBar.Vertical, PlayType.Life); ; this.mana = new InterfaceBar(mana, mana, width, height, new Vector2(Convert.ToInt32(screenW - width), Convert.ToInt32(screenH - height)), TypeBar.Vertical, PlayType.Mana); ; shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2),Convert.ToInt32(screenH -(sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)-(sizeShortcut + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)-(sizeShortcut*2 + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)+(sizeShortcut + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); shortcuts.Add(new Shortcut(new Rectangle(Convert.ToInt32(screenW/2)+(sizeShortcut*2 + 20),Convert.ToInt32(screenH - (sizeShortcut+10)),sizeShortcut,sizeShortcut))); targetobject = new ClickableArea("",Tools.Quick.dicoFont[Tools.TypeFont.Texte], new Vector2(Game.Window.ClientBounds.Width / 2, (Game.Window.ClientBounds.Height / 2)), voidfunc); }