Difficult_Rocket.api.screen.BaseScreen 的一些方法添加了返回值哇噻, 好大一个更新啊(战术后仰)
Difficult_Rocket.gui.widget.button.OreuiButton 类
Button 类
MinecraftWikiButton 之类的东西OreuiButtonStyles 和 OreuiShapeColorsOreuiButtonStatus 和 OreuiButtonShapeBaseScreen 添加了 on_clean 方法
ClientWindow 添加了 add_sub_screen_without_name 方法
Screen.name 属性来作为 keyClientWindow 的 remove_sub_scren 现在会调用 on_clean 方法
Sprite 之类的东西ClientWindow 添加了 get_sub_screen 方法
BaseScreen 实例BaseScreen 实例Tr 相关的一些问题
self.name 上去on_draw 相关函数的定义
from __future__ import annotationstomlkit, 改为 tomli_w
tomlkit, change to tomli_wClientWindow 的 remove_sub_screen 方法添加了返回值
BaseScreen 实例Camera 的 值都提供了默认值api.screen.BaseScreen
on_draw
self, window: ClientWindow -> self, dt: float, window: ClientWindowdt 为上一帧到这一帧的时间间隔dt is the time interval from the last frame to this frameApi_version -> api_version_DR_Status -> _DRStatus
name = DR Option -> DR Statuslogging 的依赖改为 lib_not_dr.loggers
lib_not_dr 的 logger 了logging to lib_not_dr.loggerslib_not_dr logger in the futurelib-not-dr
lib-not-drrequirements.txt 吧requirements.txtrtoml 的依赖
tomli 和 tomlkit 组合rtoml dependency
tomli and tomlkit combinationrequirement-xxx.txt
gen_require.py 0/1/2 来先生成然后安装依赖python gen_require.py 0 ( 运行 / run only )
python gen_require.py 1 ( 构建 / build )
python gen_require.py 2 ( 开发 / develop )
gen_require.py 会在 requirements.txt 中生成依赖requirement-xxx.txt
gen_require.py 0/1/2 to generate and install dependenciespython gen_require.py 0 ( run only )
python gen_require.py 1 ( build )
python gen_require.py 2 ( develop )
gen_require.py will generate dependencies in requirements.txt