public void CréerBtnGuérisseur() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnSoinDeZone = new BoutonDeCommande(Game, "Soin de zone", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnSoinDeZone.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnRéssurection = new BoutonDeCommande(Game, "Résurrection", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnRéssurection.DrawOrder = (int)OrdreDraw.AVANT_PLAN; BtnVolDeVie = new BoutonDeCommande(Game, "Vol de vie", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnVolDeVie.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnSoinDeZone); Game.Components.Add(BtnRéssurection); Game.Components.Add(BtnVolDeVie); Boutons.Add(BtnSoinDeZone); Boutons.Add(BtnRéssurection); Boutons.Add(BtnVolDeVie); VoirBoutonsGuérisseur(false); VoirBoutonsSatan(false); }
public void CréerBtnArcher() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnPluieDeFlèches = new BoutonDeCommande(Game, "Pluie de flèches", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnPluieDeFlèches.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Boutons.Add(BtnPluieDeFlèches); PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnFlèchePercante = new BoutonDeCommande(Game, "Flèche rebondissante", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnFlèchePercante.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Boutons.Add(BtnFlèchePercante); Game.Components.Add(BtnPluieDeFlèches); Game.Components.Add(BtnFlèchePercante); VoirBoutonsArcher(false); }
public override void Initialize() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnAttaquer = new BoutonDeCommande(Game, "Attaquer", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Attaquer, INTERVALLE_MAJ_STANDARD); BtnAttaquer.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnSorts = new BoutonDeCommande(Game, "Sorts", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sorts, INTERVALLE_MAJ_STANDARD); BtnSorts.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE)*positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnPasserTour = new BoutonDeCommande(Game, "Passer", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, PasserTour, INTERVALLE_MAJ_STANDARD); BtnPasserTour.DrawOrder = (int)OrdreDraw.AVANT_PLAN; DimensionDialogue = new Vector2(Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height / 4f); RectangleDestination = new Rectangle(Game.Window.ClientBounds.Width - (int)DimensionDialogue.X, Game.Window.ClientBounds.Height - (int)DimensionDialogue.Y, (int)DimensionDialogue.X, (int)DimensionDialogue.Y); positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE)*positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnRetour = new BoutonDeCommande(Game, "retour", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Retour, INTERVALLE_MAJ_STANDARD); BtnRetour.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnSorts); Game.Components.Add(BtnAttaquer); Game.Components.Add(BtnPasserTour); Game.Components.Add(BtnRetour); Boutons.Add(BtnSorts); Boutons.Add(BtnAttaquer); Boutons.Add(BtnPasserTour); Boutons.Add(BtnRetour); VoirBoutonRetour(false); VoirBoutonAction(false); base.Initialize(); }
public void CréerBtnVoleur() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnInvisibilité = new BoutonDeCommande(Game, "Invisibilité", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnInvisibilité.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnLancerCouteau = new BoutonDeCommande(Game, "Lancer du couteau", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnLancerCouteau.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnInvisibilité); Game.Components.Add(BtnLancerCouteau); Boutons.Add(BtnInvisibilité); Boutons.Add(BtnLancerCouteau); VoirBoutonsVoleur(false); }
public void CréerBtnPaladin() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnClarité = new BoutonDeCommande(Game, "Clarité", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnClarité.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnBouclierDivin = new BoutonDeCommande(Game, "Bouclier divin", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnBouclierDivin.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnClarité); Game.Components.Add(BtnBouclierDivin); Boutons.Add(BtnClarité); Boutons.Add(BtnBouclierDivin); VoirBoutonsPaladin(false); }
public void CréerBtnMage() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnBrazzer = new BoutonDeCommande(Game, "Brasier", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnBrazzer.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnFreezeDontMove = new BoutonDeCommande(Game, "Freeze", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnFreezeDontMove.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnBrazzer); Game.Components.Add(BtnFreezeDontMove); Boutons.Add(BtnBrazzer); Boutons.Add(BtnFreezeDontMove); VoirBoutonsMage(false); }
public void CréerBtnGuerrier() { int positionXBouton = RectangleDestination.Width / (NB_ZONES_DIALOGUE + 1); Vector2 PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 2) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnTornadeFurieuse = new BoutonDeCommande(Game, "Tornade furieuse", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort1, INTERVALLE_MAJ_STANDARD); BtnTornadeFurieuse.DrawOrder = (int)OrdreDraw.AVANT_PLAN; PositionBouton = new Vector2(RectangleDestination.X + (NB_ZONES_DIALOGUE - 1) * positionXBouton, RectangleDestination.Y + RectangleDestination.Height / 2f); BtnFolie = new BoutonDeCommande(Game, "Folie", "Arial20", "BoutonRouge", "BoutonRouge", PositionBouton, true, Sort2, INTERVALLE_MAJ_STANDARD); BtnFolie.DrawOrder = (int)OrdreDraw.AVANT_PLAN; Game.Components.Add(BtnTornadeFurieuse); Game.Components.Add(BtnFolie); Boutons.Add(BtnTornadeFurieuse); Boutons.Add(BtnFolie); VoirBoutonsGuerrier(false); }