self._fsm.demand('Menu')
def on_menu_enter(self):
- self._menu_bg = Background()
+ self._menu_bg = Background('wood')
self._menu = Menu(
lambda scene_name: self._fsm.demand('Scene', scene_name),
self.lang_mgr.set_language, self._options,
for l, b in zip(strategy_labels, comps):
b.__class__ = type('DirectFrameMixed', (DirectFrame, DirectGuiMixin), {})
p = b.pos_pixel()
- self.__pos_mgr[l] = (p[0] + 5, p[1])
+ self.__pos_mgr[l] = (p[0] + 5, p[1] + 10)
strategy_entry._show_cb = strategy_set
p = strategy_entry.pos_pixel()
self.__pos_mgr['editor_inspector_strategy'] = (p[0] + 5, p[1])
parent=self._frm,
text_fg=self._common['text_fg'],
command=callback)
+ self.__pos_mgr[f'editor_inspector_test_{id_}'] = e.pos_pixel()
self.__z -= .1
return t, e
self.__restore_state()
elif self.__json_name:
self._set_instructions()
+ if not self.__json_name:
+ self.json = {'background': 'wood'}
self._bg = Background(self.json['background'])
self._side_panel = SidePanel(world, self._mouse_plane_node, (-5, 4), (-3, 1), 1, self.__items)
self._scene_tsk = taskMgr.add(self.on_frame, 'scene_on_frame')
return items
def _set_items(self):
+ info(f'{self.__json_name=}')
if not self.__json_name: return
self.__items = []
self._test_items = []
if not self.json:
with open(f'assets/scenes/{self.__json_name}.json') as f:
self.json = loads(f.read())
+ info(f'{self.json=}')
for item in self.json['start_items']:
args = {
'world': self._world,
#('previous', self.on_prev, DISABLED, abr, 'gray'),
#('rewind', self.reset, NORMAL, abr, 'gray')
]
+ info(f'{self.__editor=}')
if self.__editor:
btn_info.insert(2, ('wrench', self._set_editor, NORMAL, abl, 'gray', _('Editor'), 'right'))
num_l = num_r = 0
#+CATEGORY: pmachines
#+TAGS: bug(b) calendar(c) waiting(w)
-* BACKLOG second background
-* BACKLOG teeter-tooter with constraints (real teeter tooter)
-* BACKLOG magnet, road cone, bucket
-* BACKLOG actions: rewind, prev, next
-* BACKLOG (python 3.11) manylinux2014_x86_64
-* BACKLOG (when panda3d provides it) android build (test with the emulator of android studio)
-* BACKLOG (when itch.io's client works with wine) functional tests for windows-itch.io
+* teeter-tooter with constraints (real teeter tooter)
+* magnet, road cone, bucket
+* actions: rewind, prev, next
+* (python 3.11) manylinux2014_x86_64
+* (when panda3d provides it) android build (test with the emulator of android studio)
+* (when itch.io's client works with wine) functional tests for windows-itch.io
* calendar :calendar:
** publish post q1; reschedule
SCHEDULED: <2023-03-20 Mon +1y>
await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return', 'BackSpace', 'BackSpace', 'BackSpace', 'BackSpace'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting', 'left'])
await self._screenshot(FunctionalTest.start_time, 'editor_sorting')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_text', 'left'])
await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
await self._screenshot(FunctionalTest.start_time, 'editor_sorting_changed')
await self._screenshot(FunctionalTest.start_time, 'editor_sorting_save')
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_close', 'left'])
await self._screenshot(FunctionalTest.start_time, 'editor_sorting_closed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start', 'left'])
await self._screenshot(FunctionalTest.start_time, 'editor_start')
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_class', 'left'])
await self._screenshot(FunctionalTest.start_time, 'editor_start_delete')
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_close', 'left'])
await self._screenshot(FunctionalTest.start_time, 'editor_start_close')
- await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_new', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_new', 'left'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['test_piece', 'left'])
await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_strategy', 'left'])