From 43a07bab6e6785ed863ef4b7717a699cd497ea89 Mon Sep 17 00:00:00 2001 From: Rikko Date: Thu, 8 Jun 2023 21:24:40 +0530 Subject: [PATCH] Rename bastd stuff for colorscheme plugin --- plugins/utilities.json | 9 ++------- plugins/utilities/colorscheme.py | 8 ++++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index ca2f13a..94a9a31 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -223,12 +223,7 @@ } ], "versions": { - "2.0.0": { - "api_version": 8, - "commit_sha": "efa4149", - "released_on": "16-05-2023", - "md5sum": "febad34d0105335403daacbb63fc5054" - }, + "2.0.0": null, "1.2.3": { "api_version": 7, "commit_sha": "7753b87", @@ -715,4 +710,4 @@ } } } -} \ No newline at end of file +} diff --git a/plugins/utilities/colorscheme.py b/plugins/utilities/colorscheme.py index f022cf9..5ef5159 100644 --- a/plugins/utilities/colorscheme.py +++ b/plugins/utilities/colorscheme.py @@ -11,7 +11,7 @@ import _babase import babase import bauiv1 as bui -from bastd.ui.colorpicker import ColorPicker +from bauiv1lib.colorpicker import ColorPicker original_buttonwidget = bui.buttonwidget original_containerwidget = bui.containerwidget @@ -144,9 +144,9 @@ class ColorSchemeWindow(bui.Window): self.draw_ui() def draw_ui(self): - # Most of the stuff here for drawing the UI is referred from the - # game's bastd/ui/profile/edit.py, and so there could be some - # cruft here due to my oversight. + # NOTE: Most of the stuff here for drawing the UI is referred from the + # legacy (1.6 < version <= 1.7.19) game's bastd/ui/profile/edit.py, and + # so there could be some cruft here due to my oversight. uiscale = bui.app.classic.ui.uiscale self._width = width = 480.0 if uiscale is babase.UIScale.SMALL else 380.0 self._x_inset = x_inset = 40.0 if uiscale is babase.UIScale.SMALL else 0.0