diff --git a/.gitignore b/.gitignore index e9f4366..1282191 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ DR.code-workspace trytry/ +#pdm files +__pypackages__ + # nuitka build build/ .github/workflows/env.ps1 diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index c40c204..a789628 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -60,7 +60,8 @@ class ClientOption(Options): self.fps = file['runtime']['fps'] self.width = file['window']['width'] self.height = file['window']['height'] - self.visible = + self.resizeable = file['window']['resizable'] + self.fullscreen = file['window']['full_screen'] class Client: diff --git a/Difficult_Rocket/crash/crash.py b/Difficult_Rocket/crash/crash.py index 2b074e0..209fb63 100644 --- a/Difficult_Rocket/crash/crash.py +++ b/Difficult_Rocket/crash/crash.py @@ -27,7 +27,6 @@ from typing import Optional, TextIO # where the crash report from # this can't be crash , or the game will really crash! -# TODO 写完它 import Difficult_Rocket Head_message = """# ----- Difficult Rocket Crash Report ----- @@ -61,7 +60,8 @@ def crash_info_handler(info: str = None) -> str: return format_info -def markdown_line_handler(string: Optional[str or bool or int or float], code: bool = False, level: int = 1, end: str = '\n') -> str: +def markdown_line_handler(string: Optional[str or bool or int or float], code: bool = False, level: int = 1, + end: str = '\n') -> str: lvl = '- ' * level f_string = string if code: @@ -81,7 +81,8 @@ def write_markdown_tablet(crash_file: TextIO, tablet: list) -> None: crash_file.write(f'|:{"-" * (a_len + 3)}|:{"-" * (b_len + 3)}|:{"-" * (c_len + 3)}|\n') for a, b, c in tablet[0]: b, c = str(b), str(c) - crash_file.write(f'| `{a}`{" " * (a_len - len(a))} | `{b}`{" " * (b_len - len(b))} | `{c}`{" " * (c_len - len(c))} |\n') + crash_file.write( + f'| `{a}`{" " * (a_len - len(a))} | `{b}`{" " * (b_len - len(b))} | `{c}`{" " * (c_len - len(c))} |\n') def create_crash_report(info: str = None) -> None: @@ -156,7 +157,7 @@ def _extracted_from_create_crash_report_10(cache_stream, crash_info): def _extracted_from__extracted_from_create_crash_report_10_19(arg0, cache_stream, arg2): result = arg0.option_with_len() write_markdown_tablet(crash_file=cache_stream, tablet=result) - # # DR 的游戏设置 + # # DR 的游戏设置 cache_stream.write(arg2) return result diff --git a/Difficult_Rocket/server/__init__.py b/Difficult_Rocket/server/__init__.py index 452fba8..3d2964e 100644 --- a/Difficult_Rocket/server/__init__.py +++ b/Difficult_Rocket/server/__init__.py @@ -22,7 +22,7 @@ from Difficult_Rocket.utils.translate import tr # from Difficult_Rocket.utils.new_thread import new_thread -# TODO 改变服务端启动逻辑 0.6.0会写完的( +# TODO 改变服务端启动逻辑 0.6.0(划掉 0.8.0)会写完的( class Server: