From 8c37cf694ff896f84f88b640a9369c8a14d8d469 Mon Sep 17 00:00:00 2001 From: ssssssssboom <2810462715@qq.com> Date: Thu, 6 Jun 2024 20:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84list=5Fback=E4=B9=9F?= =?UTF-8?q?=E4=BC=9A=E8=B7=9F=E7=9D=80=E6=8C=89=E9=92=AE=E8=B7=91=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Difficult_Rocket/gui/widget/button.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index 388df07..a4cabd4 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -247,6 +247,8 @@ class MinecraftWikiButtonTheme(BaseButtonTheme): def on_update(self, button) -> None: super().on_update(button) + self.list_back.x = self.x + self.list_back.y = self.y if self.enable and self.drag_list: button.text_label.y = ( self.y @@ -267,8 +269,6 @@ class MinecraftWikiButtonTheme(BaseButtonTheme): self.cover_back2.y = self.y + self.pad self.cover_back2.position = self.x + self.pad, self.y + self.pad self.cover_back2.height = self.height - (self.pad * 3) - self.list_back.x = self.x - self.list_back.y = self.y else: button.text_label.y = ( self.y