public Forja(Nivel nivel, string menuTitle) : base(menuTitle) { this.Nivel = nivel; //Reinicia globales NivelArma = 0; NivelArmadura = 0; TrampasDisponibles = 0; armaEntry = new MenuEntry(this, string.Empty); armaduraEntry = new MenuEntry(this, string.Empty); trampasEntry = new MenuEntry(this, string.Empty); SetMenuEntryText(); armaEntry.Selected += ArmaEntrySelected; armaduraEntry.Selected += ArmaduraEntrySelected; trampasEntry.Selected += TrampasEntrySelected; MenuEntries.Add(armaEntry); MenuEntries.Add(armaduraEntry); MenuEntries.Add(trampasEntry); Initialice(); }
public Tutorial1() : base("Cómo Jugar") { YTitlePosition = 50; YStartingEntryPosition = 550; MenuEntry leyenda = new MenuEntry(this, "Leyenda"); leyenda.Selected += leyenda_Selected; MenuEntries.Add(leyenda); selectDelay = 0f; selectMaxDelay = 1000f; select = false; }
public MenuPrincipal(string titulo) : base(titulo) { YStartingEntryPosition = 260; YOffSetPosition = 5; MenuEntry nivel1 = new MenuEntry(this, "Nivel 1"); MenuEntry nivel2 = new MenuEntry(this, "Nivel 2"); MenuEntry nivel3 = new MenuEntry(this, "Nivel 3"); MenuEntry nivel4 = new MenuEntry(this, "Nivel 4"); MenuEntry nivel5 = new MenuEntry(this, "Nivel 5"); MenuEntry infinito = new MenuEntry(this, "Infinito"); MenuEntry tutorial = new MenuEntry(this, "Cómo Jugar"); MenuEntry creditos = new MenuEntry(this, "Créditos"); nivel1.Selected += NivelSelected; nivel2.Selected += NivelSelected; nivel3.Selected += NivelSelected; nivel4.Selected += NivelSelected; nivel5.Selected += NivelSelected; infinito.Selected += NivelSelected; tutorial.Selected += tutorial_Selected; creditos.Selected += creditos_Selected; MenuEntries.Add(nivel1); MenuEntries.Add(nivel2); MenuEntries.Add(nivel3); MenuEntries.Add(nivel4); MenuEntries.Add(nivel5); MenuEntries.Add(infinito); MenuEntries.Add(tutorial); MenuEntries.Add(creditos); }