public void Draw() { var activeFont = m_blinkval > 0 ? m_itemActiveFont : m_itemActive2Font; if (State != TeamSelectState.TeamMode) { return; } // Title m_elements.GetElement(m_self ? "selfTitle" : "enemyTitle").Draw((Vector2)m_position); // Cursor m_selectscreen.SpriteManager.Draw(m_cursorSpriteId, (Vector2)m_position, (Vector2)m_cursorOffset + (Vector2)m_itemLocation + (Vector2)m_itemSpacing * CurrentLocation, Vector2.One, Microsoft.Xna.Framework.Graphics.SpriteEffects.None); // Single m_selectscreen.Print(CurrentLocation == 0 ? activeFont : m_itemFont, (Vector2)m_position + (Vector2)m_itemLocation, "Single", null); // Simul m_selectscreen.Print(CurrentLocation == 1 ? activeFont : m_itemFont, (Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_itemSpacing, "Simul", null); m_elements.GetElement("value.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_itemSpacing); m_elements.GetElement("value.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_spacing + (Vector2)m_itemSpacing); // Turns m_selectscreen.Print(CurrentLocation == 2 ? activeFont : m_itemFont, (Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_itemSpacing + (Vector2)m_itemSpacing, "Turns", null); m_elements.GetElement("value.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_itemSpacing + (Vector2)m_itemSpacing); m_elements.GetElement("value.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_spacing + (Vector2)m_itemSpacing + (Vector2)m_itemSpacing); m_elements.GetElement("empty.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_spacing + (Vector2)m_itemSpacing + (Vector2)m_spacing + (Vector2)m_itemSpacing); m_elements.GetElement("empty.icon").Draw((Vector2)m_position + (Vector2)m_itemLocation + (Vector2)m_spacing + (Vector2)m_itemSpacing + (Vector2)m_spacing + (Vector2)m_spacing + (Vector2)m_itemSpacing); }
public void Draw() { if (StageSelector == null) { return; } var pd = m_blinkval > 0 ? m_stagefont1 : m_stagefont2; if (m_stageselected) { pd = m_stagedonefont; } var sp = CurrentStageIndex >= 0 && CurrentStageIndex < StageProfiles.Count ? StageProfiles[CurrentStageIndex] : null; m_stagedisplaybuilder.Length = 0; if (sp != null) { m_stagedisplaybuilder.AppendFormat("Stage {0}: {1}", CurrentStageIndex + 1, sp.Name); } else { m_stagedisplaybuilder.Append("Stage: Random"); } SelectScreen.Print(pd, (Vector2)m_stageposition, m_stagedisplaybuilder.ToString(), null); }
public void Draw(bool debugdraw) { Grid.Draw(); Grid.DrawCursorGrid(m_p1info, null); DrawFace(m_p1info); m_stageSelect.Draw(); SelectScreen.Print(m_titlefont, (Vector2)m_titlelocation, VersusMode, null); }
public void Draw(bool debugdraw) { Grid.Draw(); var p1 = GetSelectData(m_p1TeamInfo); var p2 = GetSelectData(m_p2TeamInfo); Grid.DrawCursorGrid(p1, p2); DrawFace(p1); DrawFace(p2); m_stageSelect.Draw(); SelectScreen.Print(m_titlefont, (Vector2)m_titlelocation, VersusMode, null); m_p1TeamInfo.Draw(); m_p2TeamInfo.Draw(); }
public void DrawProfile(PlayerProfile profile) { if (profile == null) { throw new ArgumentNullException("profile"); } Elements.Base face = m_elements.GetElement("player.face"); if (face != null) { profile.SpriteManager.Draw(SpriteId.LargePortrait, face.DataMap.Offset, Vector2.Zero, face.DataMap.Scale, face.DataMap.Flip); } Elements.Text name = m_elements.GetElement("player.name") as Elements.Text; if (name != null) { SelectScreen.Print(name.DataMap.FontData, name.DataMap.Offset, profile.DisplayName, null); } }