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