Modification du type de redimension de bouton dans le dialogue manager

This commit is contained in:
Yannis 2024-01-07 09:30:09 +01:00
parent 3e7db7f382
commit 593c43a2dc
Signed by: yannis
SSH key fingerprint: SHA256:Bz8K8QiTYUudf8MlthTM9MCLfgiYf/U1md3V9g9Wo14

View file

@ -36,6 +36,7 @@ class DialogsManager:
def next_dialog(self):
"""Passe au dialogue suivant. Appelle le callback si le dialogue est fini."""
self.current_dialog_id += 1
self.current_dialogue_letter_id = 0
self.writing_dialog = True
if self.current_dialog_id >= len(self.current_dialogs): # Le dialogue est fini.
self.current_dialogs = []
@ -51,7 +52,7 @@ class DialogsManager:
# Si un dialogue n'est pas déja lancé, on lance le dialogue au nom donné
if not self.reading_dialog:
self.event_handler.register_button_area((0, 0, 1, 1), self.next_signal, "next_dialog", 0)
self.event_handler.register_button_area((0, 0, 1, 1), self.next_signal, "next_dialog", 2)
self.current_dialogs = self.dialogs[name]
self.current_dialog_id = 0
@ -84,6 +85,3 @@ class DialogsManager:
if self.current_dialogue_letter_id > len(self.current_dialogs[self.current_dialog_id]):
self.current_dialogue_letter_id -= 1
self.writing_dialog = False
#print(self.writing_dialog, self.reading_dialog)