一些小改动
This commit is contained in:
parent
7e9131d966
commit
0b902ff346
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,6 +4,9 @@
|
|||||||
DR.code-workspace
|
DR.code-workspace
|
||||||
trytry/
|
trytry/
|
||||||
|
|
||||||
|
#pdm files
|
||||||
|
__pypackages__
|
||||||
|
|
||||||
# nuitka build
|
# nuitka build
|
||||||
build/
|
build/
|
||||||
.github/workflows/env.ps1
|
.github/workflows/env.ps1
|
||||||
|
@ -60,7 +60,8 @@ class ClientOption(Options):
|
|||||||
self.fps = file['runtime']['fps']
|
self.fps = file['runtime']['fps']
|
||||||
self.width = file['window']['width']
|
self.width = file['window']['width']
|
||||||
self.height = file['window']['height']
|
self.height = file['window']['height']
|
||||||
self.visible =
|
self.resizeable = file['window']['resizable']
|
||||||
|
self.fullscreen = file['window']['full_screen']
|
||||||
|
|
||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
|
@ -27,7 +27,6 @@ from typing import Optional, TextIO
|
|||||||
# where the crash report from
|
# where the crash report from
|
||||||
# this can't be crash , or the game will really crash!
|
# this can't be crash , or the game will really crash!
|
||||||
|
|
||||||
# TODO 写完它
|
|
||||||
import Difficult_Rocket
|
import Difficult_Rocket
|
||||||
|
|
||||||
Head_message = """# ----- Difficult Rocket Crash Report -----
|
Head_message = """# ----- Difficult Rocket Crash Report -----
|
||||||
@ -61,7 +60,8 @@ def crash_info_handler(info: str = None) -> str:
|
|||||||
return format_info
|
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
|
lvl = '- ' * level
|
||||||
f_string = string
|
f_string = string
|
||||||
if code:
|
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')
|
crash_file.write(f'|:{"-" * (a_len + 3)}|:{"-" * (b_len + 3)}|:{"-" * (c_len + 3)}|\n')
|
||||||
for a, b, c in tablet[0]:
|
for a, b, c in tablet[0]:
|
||||||
b, c = str(b), str(c)
|
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:
|
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):
|
def _extracted_from__extracted_from_create_crash_report_10_19(arg0, cache_stream, arg2):
|
||||||
result = arg0.option_with_len()
|
result = arg0.option_with_len()
|
||||||
write_markdown_tablet(crash_file=cache_stream, tablet=result)
|
write_markdown_tablet(crash_file=cache_stream, tablet=result)
|
||||||
# # DR 的游戏设置
|
# # DR 的游戏设置
|
||||||
cache_stream.write(arg2)
|
cache_stream.write(arg2)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ from Difficult_Rocket.utils.translate import tr
|
|||||||
# from Difficult_Rocket.utils.new_thread import new_thread
|
# from Difficult_Rocket.utils.new_thread import new_thread
|
||||||
|
|
||||||
|
|
||||||
# TODO 改变服务端启动逻辑 0.6.0会写完的(
|
# TODO 改变服务端启动逻辑 0.6.0(划掉 0.8.0)会写完的(
|
||||||
|
|
||||||
|
|
||||||
class Server:
|
class Server:
|
||||||
|
Loading…
Reference in New Issue
Block a user