From c5ab438149b1eaf481c5c15ddf23e6218292bffa Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 2 May 2023 12:20:36 +0800 Subject: [PATCH 1/3] fix: docs translate.md --- docs/src/howto/translate.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/src/howto/translate.md b/docs/src/howto/translate.md index 9a2660a..b7e7e87 100644 --- a/docs/src/howto/translate.md +++ b/docs/src/howto/translate.md @@ -3,9 +3,7 @@ ## 范例 ```python -from Difficult_Rocket.utils.translate import Tr +from Difficult_Rocket.utils.translate import tr -Tr.lang - -print(Tr.window.setup.done) +print(tr().window.setup.done()) ``` From 7462de428987baf7f88f4a5237e845f3d90335c5 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 2 May 2023 12:34:14 +0800 Subject: [PATCH 2/3] update --- docs/src/update_logs.md | 10 ++++++++++ test/data.jl | 14 -------------- 2 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 test/data.jl diff --git a/docs/src/update_logs.md b/docs/src/update_logs.md index 705fbe1..b1a4044 100644 --- a/docs/src/update_logs.md +++ b/docs/src/update_logs.md @@ -54,6 +54,16 @@ - Now when the game crashes, it will automatically output the crash log in stdio - The content of the crash log is basically the same as the crash report +### Docs + +- `howto/translate.md` + - 修改为新的 tr 调用方式 + - Modified to the new tr call method +- `SUMMARY.md` + - add `howto/translate.md` + - add `howto/game/readme.md` + - `contributors` -> `Contributing` + ### Mod Loader - `ModInfo` diff --git a/test/data.jl b/test/data.jl deleted file mode 100644 index 82fd388..0000000 --- a/test/data.jl +++ /dev/null @@ -1,14 +0,0 @@ - - - -struct a_part - part_type :: String - part_id :: UInt64 - enable :: Bool - x :: Float64 - y :: Float64 - x_v :: Float64 - y_v :: Float64 - angle :: Float16 - angle_v :: Float64 -end \ No newline at end of file From ad137e2679ef03527d4c6a2c296a771f268f0648 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 2 May 2023 12:38:48 +0800 Subject: [PATCH 3/3] add exit print --- DR.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DR.py b/DR.py index f1f1c9f..fcc7634 100644 --- a/DR.py +++ b/DR.py @@ -99,6 +99,7 @@ def main() -> None: crash.record_thread = False print(crash.all_thread) print(crash.all_process) + print("Difficult_Rocket 已关闭") if __name__ == '__main__':