feat: 添加了 ClientWindowget_sub_screen 方法

这次提交添加了 `ClientWindow` 的 `get_sub_screen` 方法,用于获取 `BaseScreen` 实例或在不同 sub_screen 之间传递数据/设置事件调度器。这个改动将增强应用程序的功能和灵活性。
This commit is contained in:
shenjack 2024-08-04 14:00:27 +08:00
parent 44f64933a2
commit 809bc376ea
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -29,6 +29,10 @@
- `ClientWindow``remove_sub_scren` 现在会调用 `on_clean` 方法
- 你可以在这个方法里面清理一些东西
- 比如说, 你可以在这个方法里面清理一些 `Sprite` 之类的东西
- `ClientWindow` 添加了 `get_sub_screen` 方法
- 用来获取 `BaseScreen` 实例
- 你可以通过这个方法来获取你添加的 `BaseScreen` 实例
- 或者在不同 sub_screen 之间传递数据/设置事件调度器
### Fix