From d69da9f1d0bea5d58671eca97fedcd614a404828 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 29 Sep 2023 00:56:26 +0800 Subject: [PATCH] =?UTF-8?q?A=20|=20Magic=20Number=20=EF=BC=88=E7=A1=AE?= =?UTF-8?q?=E4=BF=A1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Difficult_Rocket/gui/widget/button.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index a49cfd3..6556c4a 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -36,10 +36,27 @@ class ButtonDrawTheme(Options): 直接绘制按钮的风格 """ name = 'ButtonDrawTheme' - untouch_batch: Batch + untouched_batch: Batch touch_batch: Batch hit_batch: Batch + def init(self, **kwargs) -> bool: + """ + 初始化绘制 + :param kwargs: + :return: + """ + a = (72, 73, 74) + b = (109, 109, 110) + c = (88, 91, 92) + d = (124, 124, 125) + e = (49, 50, 51) + touch_a = (49, 50, 51) + touch_b = (90, 91, 92) + touch_c = (71, 72, 72) + touch_d = (106, 107, 108) + return False + class ButtonThemeOptions(Options): """ 基于 Options 写的 ButtonTheme """