public void DrawMenu(SpriteBatch sb, GameTime gt, Camera cam, TypingManager typingManager) { sb.Begin(); m_backGround.DrawMe(sb); sb.End(); sb.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, cam.Transform); DrawConstruct(sb, gt); m_controls.DrawPart(sb, gt); sb.End(); m_dropMenu.DrawMenu(sb, gt); m_backButton.DrawMe(sb, gt); m_saveButton.DrawMe(sb, gt); m_newTowerButton.DrawMe(sb, gt); m_controls.CurrentTowerStats(sb, m_construct, m_tower, typingManager); #if DEBUG m_controls.DebugControls(sb, m_construct); sb.Begin(); sb.DrawString(Game1.debugFont, "Foundations: " + m_foundationCount + "\nRotors: " + m_rotorCount, new Vector2(100, 500), Color.White); sb.End(); #endif for (int i = 0; i < m_partMenus.Count; i++) { m_partMenus[i].DrawMenu(sb, gt); } }
public void DrawMenu(SpriteBatch sb, GameTime gt) { m_dropButton.DrawMe(sb, gt); #if DEBUG sb.Begin(); sb.DrawString(Game1.debugFont, "Has Dropped?: " + m_hasDropped + " Min: " + m_min, m_dropButton.Position + new Vector2(-100, 0), Color.White); sb.End(); #endif if (m_hasDropped) { for (int i = 0; i < m_selectionButtons.Count; i++) { m_selectionButtons[i].Position = new Vector2(m_dropX, m_dropY + (m_gap * (i - m_min))); if (i >= m_min && i < m_max) { m_selectionButtons[i].DrawMe(sb, gt); #if DEBUG sb.Begin(); sb.DrawString(Game1.debugFont, "Button: " + i, m_selectionButtons[i].Position + new Vector2(-100, 0), Color.White); sb.End(); #endif } } } }
public void DrawMe(SpriteBatch sb, GameTime gt) { for (int i = 0; i < m_achievemenyRows.Count; i++) { m_achievemenyRows[i].DrawMe(sb, gt); } m_backButton.DrawMe(sb, gt); }