From 15380d4fb7eb538fb24d52dfedef85798c998c81 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 24 May 2024 00:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E7=BA=BF=E9=80=8F=E6=98=8E?= =?UTF-8?q?=E5=BA=A6=E7=95=A5=E4=BD=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/dr_game/__init__.py | 2 +- mods/dr_game/sr1_ship.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/dr_game/__init__.py b/mods/dr_game/__init__.py index 015d52d..61a4040 100644 --- a/mods/dr_game/__init__.py +++ b/mods/dr_game/__init__.py @@ -76,7 +76,7 @@ DR_mod_runtime = _DR_mod_runtime() class DR_mod(ModInfo): # NOQA mod_id = "difficult_rocket_mod" name = "Difficult Rocket mod" - version = Version("0.3.4") + version = Version("0.3.5") writer = "shenjackyuanjie" link = "shenjack.top" diff --git a/mods/dr_game/sr1_ship.py b/mods/dr_game/sr1_ship.py index 9c40003..5348adc 100644 --- a/mods/dr_game/sr1_ship.py +++ b/mods/dr_game/sr1_ship.py @@ -295,6 +295,8 @@ class SR1ShipRender(BaseScreen): part_sprite, part_line_box = self.part_render_init( part_data, part_type, part_group, line_group, self.main_batch ) + for line in part_line_box: + line.opacity = 100 self.part_sprites[part_data.id] = part_sprite self.part_outlines[part_data.id] = part_line_box # TODO: 连接线渲染 @@ -311,6 +313,8 @@ class SR1ShipRender(BaseScreen): part_sprite, part_line_box = self.part_render_init( part_data, part_type, part_group, line_group, self.main_batch ) + for line in part_line_box: + line.opacity = 100 # 未连接的部件透明度降低 part_sprite.opacity = 100 self.part_sprites[part_data.id] = part_sprite @@ -445,8 +449,6 @@ class SR1ShipRender(BaseScreen): def on_mouse_scroll( self, x: int, y: int, scroll_x: int, scroll_y: int, window: ClientWindow ): - if not self.status.draw_done: - return if self.status.focus: mouse_dx = x - (self.width / 2) + self.dx mouse_dy = y - (self.height / 2) + self.dy