public void Draw(Vector2 position) { if (m_enabled) { AnimatedImage?.Draw(position); } }
public override void DrawScene() { TCODConsole.root.setForegroundColor(TCODColor.white); logo.Draw(new IntVector2(0, 0), 0); Display.DrawString(new IntVector2(25, 30), "Press Enter to return to the menu."); }
public override void DrawScene() { logo.Draw(new IntVector2(0, 0), 0); TCODConsole.root.setForegroundColor(TCODColor.white); Display.DrawString(new IntVector2(50, 43), "New Game"); if (selected == 0) { Display.DrawString(new IntVector2(49, 43), ">"); } Display.DrawString(new IntVector2(50, 45), "Exit Game"); if (selected == 1) { Display.DrawString(new IntVector2(49, 45), ">"); } Display.DrawString(new IntVector2(0, 49), "v2.0.0"); }
public override void DrawScene() { TCODConsole.root.setForegroundColor(TCODColor.white); Display.DrawString(new IntVector2(25, 2), "Select a magical Discipline for your character."); Display.DrawString(new IntVector2(23, 3), "Use the arrow keys and Enter to make your selection."); IntVector2 arcanePos = new IntVector2(15, 8); IntVector2 naturePos = new IntVector2(40, 8); IntVector2 shadowPos = new IntVector2(65, 8); TCODConsole.root.setForegroundColor(TCODColor.darkAzure); Display.DrawString(arcanePos + new IntVector2(5, 18), "Arcane"); if (selectedDiscipline == 0) { Display.DrawString(arcanePos + new IntVector2(5, 19), "------"); } TCODConsole.root.setForegroundColor(TCODColor.darkGreen); Display.DrawString(naturePos + new IntVector2(5, 18), "Nature"); if (selectedDiscipline == 1) { Display.DrawString(naturePos + new IntVector2(5, 19), "------"); } TCODConsole.root.setForegroundColor(TCODColor.darkPurple); Display.DrawString(shadowPos + new IntVector2(5, 18), "Shadow"); if (selectedDiscipline == 2) { Display.DrawString(shadowPos + new IntVector2(5, 19), "------"); } IntVector2 descriptionPos = new IntVector2(22, 32); TCODConsole.root.setForegroundColor(TCODColor.lighterGrey); if (selectedDiscipline == 0) { TCODConsole.root.printRect(descriptionPos.X, descriptionPos.Y, 55, 10, arcaneDescription); } if (selectedDiscipline == 1) { TCODConsole.root.printRect(descriptionPos.X, descriptionPos.Y, 55, 10, natureDescription); } if (selectedDiscipline == 2) { TCODConsole.root.printRect(descriptionPos.X, descriptionPos.Y, 55, 10, shadowDescription); } //Draw logos if (selectedDiscipline == 0) { arcaneLogo.Draw(arcanePos); } else { arcaneLogo.Draw(arcanePos, 0); } if (selectedDiscipline == 1) { natureLogo.Draw(naturePos); } else { natureLogo.Draw(naturePos, 6); } if (selectedDiscipline == 2) { shadowLogo.Draw(shadowPos); } else { shadowLogo.Draw(shadowPos, 4); } }