public void Update(TextBox box) { foreach (Label item in labels) { if (Contents.contientLaSouris(item.rect) && Mouse.GetState().LeftButton == ButtonState.Pressed) // histoire { if (item.index == 52) { box.Add(Dico.langues[Dico.current][58]); } else if (item.index == 53) { box.Add(Dico.langues[Dico.current][59]); } else if (item.index == 54) { box.Add(Dico.langues[Dico.current][60]); } else if (item.index == 55) { box.Add(Dico.langues[Dico.current][61]); } else if (item.index == 56) { box.Add(Dico.langues[Dico.current][62]); } else if (item.index == 57) { box.Add(Dico.langues[Dico.current][63]); } } } }
public MenuEncyclopedie() : base() { textbox = new TextBox(new Rectangle(300, 100, 800, Divers.Y - 300)); boutons.Add(new BoutonLien(Divers.X / 2 - 200, 700, new Rectangle(0, 0, 800, 300), null, 5)); onglets = new Onglet(new Rectangle(15, 100, 285, Divers.Y - 300)); onglets.Add(52); onglets.Add(53); onglets.Add(54); onglets.Add(55); onglets.Add(56); }