2.4 KiB
2.4 KiB
DR SDK 0.9.x 更新日志
DR sdk 0.9.1.0
Dependency
- 去掉了
tomlkit
, 改为tomli_w
- 真好用
- Remove
tomlkit
, change totomli_w
- Really good
Change
- 为
ClientWindow
的remove_sub_screen
方法添加了返回值- 现在他会返回被去掉的
BaseScreen
实例
- 现在他会返回被去掉的
- 为各种
Camera
的 值都提供了默认值
DR sdk 0.9.0.0
Changes
api.screen.BaseScreen
on_draw
self, window: ClientWindow
->self, dt: float, window: ClientWindow
dt
为上一帧到这一帧的时间间隔dt
is the time interval from the last frame to this frame
Rename
Api_version
->api_version
_DR_Status
->_DRStatus
name
=DR Option
->DR Status
- 这毛病属实是没想到, 之前一直没发现
Rework
- 将
logging
的依赖改为lib_not_dr.loggers
- 以后都用
lib_not_dr
的 logger 了 - Change the dependency of
logging
tolib_not_dr.loggers
- Use
lib_not_dr
logger in the future
- 以后都用
Add
- 添加内置依赖:
lib-not-dr
- Added built-in dependency:
lib-not-dr
- 不再同时维护两份代码
- No longer maintain two sets of code at the same time
- Added built-in dependency:
Fix
- 如果没有 DR_game 的情况下, 退出时会 join 控制台线程
- 通过检测线程是否是守护线程来判断是否 join
- If there is no DR_game, join the console thread when exiting
- Determine whether to join by detecting whether the thread is a daemon thread
Dependency
- 更新了所有的依赖版本号
- 去看
requirements.txt
吧
- 去看
- Updated all dependency version numbers
- Go see
requirements.txt
- Go see
- 去除了
rtoml
的依赖- 改为
tomli
和tomlkit
组合
- 改为
- Removed
rtoml
dependency- Change to
tomli
andtomlkit
combination
- Change to
- 删除了
requirement-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
中生成依赖
- 现在使用
- Delete
requirement-xxx.txt
- Now use
gen_require.py 0/1/2
to generate and install dependencies -
python gen_require.py 0 ( run only )
-
python gen_require.py 1 ( build )
-
python gen_require.py 2 ( develop )
gen_require.py
will generate dependencies inrequirements.txt
- Now use