Kaynağa Gözat

GUI: Order move when still rotating: should stop current rotation. Closes #44

Bastien Sevajol 7 yıl önce
ebeveyn
işleme
d6a208387d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      opencombat/gui/base.py

+ 1 - 0
opencombat/gui/base.py Dosyayı Görüntüle

322
     def start_rotate_subject(self, event: move.SubjectStartRotationEvent):
322
     def start_rotate_subject(self, event: move.SubjectStartRotationEvent):
323
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
323
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
324
         rotate_action = RotateTo(event.rotate_absolute, event.duration)
324
         rotate_action = RotateTo(event.rotate_absolute, event.duration)
325
+        actor.stop_actions((RotateTo,))
325
         actor.do(rotate_action)
326
         actor.do(rotate_action)
326
 
327
 
327
     def rotate_subject(self, event: move.SubjectFinishRotationEvent):
328
     def rotate_subject(self, event: move.SubjectFinishRotationEvent):