dr sdk 0.8.4.1

This commit is contained in:
shenjack 2023-06-26 10:30:27 +08:00
parent 94b8869506
commit 8c91198e87
4 changed files with 21 additions and 2 deletions

View File

@ -10,7 +10,7 @@ from pathlib import Path
from Difficult_Rocket.api.types import Options, Version
game_version = Version("0.8.4.0") # 游戏版本
game_version = Version("0.8.4.1") # 游戏版本
build_version = Version("2.1.0.0") # 编译文件版本(与游戏本体无关)
Api_version = Version("0.1.1.0") # API 版本
__version__ = game_version

View File

@ -308,7 +308,7 @@ class ClientWindow(Window):
@_call_back(on_command_draw)
@_call_screen_after
def on_draw(self, *dt):
while command := self.game.console.get_command():
while (command := self.game.console.get_command()) is not None:
self.on_command(line.CommandText(command))
pyglet.gl.glClearColor(0.1, 0, 0, 0.0)
self.clear()

View File

@ -5,8 +5,25 @@
- DR game: 0.2.1.0
- DR rs: 0.2.15.0
## DR rs 0.3.0.0
### 修改
- 适配了 `DR sdk` 的关于 mods 的修改
- Adapted the modification of mods about `DR sdk`
- `RustConsole`
- 现在输入体验更好了
- Now the input experience is better
## DR rs 0.2.15.0
### 修改
- 现在支持新的 mods reload 和 unload 了
- 适配了 `DR sdk` 的关于 mods 的修改
- Now support new mods reload and unload
- Adapted the modification of mods about `DR sdk`
### 添加
- `IdType = i64`

View File

@ -79,6 +79,8 @@ class DR_mod(ModInfo):
if old_self:
from .sr1_ship import SR1ShipRender
game.client.window.add_sub_screen("SR1_ship", SR1ShipRender)
game.console.stop()
game.init_console()
else:
self.config.flush_option()
logger.info("on_load")