From 36e0895e8655d8f46f03cace4feea8d6497088c8 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 17 Jun 2023 01:28:10 +0800 Subject: [PATCH] add double format for caption --- Difficult_Rocket/client/__init__.py | 4 +++- requirement-build.txt | 2 +- requirement-dev.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index 6f538be..47d5daf 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -29,6 +29,7 @@ from pyglet.window import key, mouse # Difficult_Rocket function if TYPE_CHECKING: from Difficult_Rocket.main import Game +from Difficult_Rocket import DR_status from Difficult_Rocket.utils import tools from Difficult_Rocket.command import line from Difficult_Rocket.api.types import Options @@ -61,7 +62,8 @@ class ClientOption(Options): self.fullscreen = tools.format_bool(file['window']['full_screen']) self.resizeable = tools.format_bool(file['window']['resizable']) self.gui_scale = float(file['window']['gui_scale']) - self.caption = DR_runtime.format(file['window']['caption']) + self.caption = DR_status.format(file['window']['caption']) + self.caption = DR_runtime.format(self.caption) class Client: diff --git a/requirement-build.txt b/requirement-build.txt index fdbaff7..8b81c55 100644 --- a/requirement-build.txt +++ b/requirement-build.txt @@ -17,7 +17,7 @@ defusedxml >= 0.7.1 objprint >= 0.2.2 # for compile -nuitka >= 1.6.1 +nuitka >= 1.6.3 ordered-set >= 4.1.0 imageio >= 2.31.0 wheel >= 0.40.0 diff --git a/requirement-dev.txt b/requirement-dev.txt index 536bc21..3c2d6f6 100644 --- a/requirement-dev.txt +++ b/requirement-dev.txt @@ -20,7 +20,7 @@ viztracer >= 0.15.6 vizplugins >= 0.1.3 # for compile -nuitka >= 1.6.1 +nuitka >= 1.6.3 ordered-set >= 4.1.0 imageio >= 2.31.0 wheel >= 0.40.0