From 24ab22f4d84cce8eb59985296fdc2c2fdc65d6e6 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 13 Sep 2023 00:19:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=8F=E4=BA=86=EF=BC=8C=E5=BF=98=E8=AE=B0?= =?UTF-8?q?=E6=B0=B4commit=E4=BA=86=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Difficult_Rocket/gui/widget/button.py | 1 - mods/dr_game/menu.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index 7c40473..f4df300 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -130,7 +130,6 @@ class PressTextButton(widgets.WidgetBase): self.back_rec.position = self._x, self._y self.back_rec.width = self._width self.back_rec.height = self._height - ... PressTextButton.register_event_type('on_press') diff --git a/mods/dr_game/menu.py b/mods/dr_game/menu.py index ae7e80a..9c53e15 100644 --- a/mods/dr_game/menu.py +++ b/mods/dr_game/menu.py @@ -4,6 +4,8 @@ # All rights reserved # ------------------------------- +from pyglet.graphics import Batch, Group + from Difficult_Rocket.client import ClientWindow from Difficult_Rocket.api.screen import BaseScreen @@ -19,5 +21,8 @@ class Menu(BaseScreen): def __init__(self, main_window: ClientWindow): super().__init__(main_window) + self.main_batch = Batch() + self.main_group = Group(parent=main_window.main_group, order=1) + # 占位, 高二看看能不能咕出来点啥 (20230911) # 欸呀, 正好是 911 纪念日哦