private void DrawPartMenu(CustomSpriteBatch g, bool ShowListPartCursor) { DrawUnitInfo(g, 0); DrawBox(g, new Vector2(325, 260), 310, 215, Color.White); EquipmentSelectionMenu.DrawMenu(g, 330, 260, 18); g.DrawString(fntFinlanderFont, EquipmentSelectionMenu.CurrentPage + "/" + EquipmentSelectionMenu.PageCount, new Vector2(420, 210), Color.White); g.Draw(GameScreen.sprPixel, new Rectangle(330, 265 + EquipmentSelectionMenu.SelectedItemIndex * fntFinlanderFont.LineSpacing, 300, fntFinlanderFont.LineSpacing), Color.FromNonPremultiplied(255, 255, 255, 127)); }
public void DrawMenu(CustomSpriteBatch g) { g.Draw(sprMapMenuBackground, new Vector2(0, 0), Color.White); DrawBox(g, new Vector2(10, 45), 420, 300, Color.White); g.DrawString(fntFinlanderFont, "Unit", new Vector2(20, 50), Color.Yellow); g.DrawStringRightAligned(fntFinlanderFont, "HP", new Vector2(300, 50), Color.Yellow); g.DrawStringRightAligned(fntFinlanderFont, "EN", new Vector2(400, 50), Color.Yellow); DrawBox(g, new Vector2(430, 45), 200, 300, Color.White); g.DrawString(fntFinlanderFont, "PILOT", new Vector2(440, 50), Color.Yellow); g.DrawStringRightAligned(fntFinlanderFont, "LV", new Vector2(620, 50), Color.Yellow); UnitSelectionMenu.DrawMenu(g, 20, 80, LineSpacing); g.DrawString(fntFinlanderFont, UnitSelectionMenu.CurrentPage + "/" + UnitSelectionMenu.PageCount, new Vector2(420, 10), Color.White); g.Draw(BattleMap.sprPixel, new Rectangle(20, 80 + UnitSelectionMenu.SelectedItemIndex * LineSpacing, 601, LineSpacing), Color.FromNonPremultiplied(255, 255, 255, 127)); }