remove setScene, keyPressScene, currentScene in favor of mcrfpy.scene #151

Open
opened 2025-11-29 13:08:26 +00:00 by john · 0 comments
Owner

These module-level scene functions are no longer necessary since #118 is complete.

  • mcrfpy.current_scene should be a reference to the current scene
  • mcrfpy.scenes should be a collection of all scenes
  • mcrfpy.current_scene = scene should assign the scene
  • scene = mcrfpy.Scene("name") would create a new scene
  • scene.on_key = callback should replace the current keyPressScenefunction (is on_key correct? We should match the naming convention of the mouse events)
  • scene should use the same mouse callbacks as any other UIDrawable
  • scene.children should replace mcrfpy.sceneUI("name"), since it's just a drawable now!
These module-level scene functions are no longer necessary since #118 is complete. * `mcrfpy.current_scene` should be a reference to the current scene * `mcrfpy.scenes` should be a collection of all scenes * `mcrfpy.current_scene = scene` should assign the scene * `scene = mcrfpy.Scene("name")` would create a new scene * `scene.on_key = callback` should replace the current `keyPressScene`function (is `on_key` correct? We should match the naming convention of the mouse events) * scene should use the same mouse callbacks as any other UIDrawable * `scene.children` should replace `mcrfpy.sceneUI("name")`, since it's just a drawable now!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#151
No description provided.