ya2 · news · projects · code · about

json: instructions
[pmachines.git] / pmachines / scenes / scene_domino_box.py
index c85efcce6c8c35efedc5e41e6ec321d5b8bea1a5..0094f22212227ad164bf43d5e183d6da4f8c2afe 100644 (file)
@@ -5,9 +5,9 @@ class SceneDominoBox(Scene):
 
     filename = 'assets/scenes/domino_box.json'
 
-    @staticmethod
-    def name():
-        return _('Domino and box')
+    @staticmethod
+    def name():
+        return _('Domino and box')
 
     # def _set_items(self):
     #     super()._set_items()
@@ -48,12 +48,12 @@ class SceneDominoBox(Scene):
     #     self._set_test_item('drag_stop_1', (3.21, .33))
     #     self._set_test_item('drag_stop_2', (2.16, 1.87))
 
-    def _instr_txt(self):
-        txt = _('Scene: ') + self.name() + '\n\n'
-        txt += _('Goal: only the last piece of each row must be up\n\n')
-        txt += _('keep \5mouse_l\5 pressed to drag an item\n\n'
-                'keep \5mouse_r\5 pressed to rotate an item')
-        return txt
+    def _instr_txt(self):
+        txt = _('Scene: ') + self.name() + '\n\n'
+        txt += _('Goal: only the last piece of each row must be up\n\n')
+        txt += _('keep \5mouse_l\5 pressed to drag an item\n\n'
+                'keep \5mouse_r\5 pressed to rotate an item')
+        return txt
 
     # def _win_condition(self):
     #     return all(itm.strategy.win_condition() for itm in self.items) and not self._paused