diff --git a/index.json b/index.json index 75ae927..5d7f5a8 100644 --- a/index.json +++ b/index.json @@ -1,12 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "1.0.0": { - "api_version": 8, - "commit_sha": "4cb7d21", - "released_on": "20-06-2023", - "md5sum": "466272e4933946258751f84f956f862e" - }, + "1.0.0": null, "0.3.5": { "api_version": 7, "commit_sha": "985e486", @@ -110,4 +105,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} \ No newline at end of file +} diff --git a/plugin_manager.py b/plugin_manager.py index 56716cd..c0b69da 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -41,8 +41,8 @@ HEADERS = { "User-Agent": _env["legacy_user_agent_string"], } PLUGIN_DIRECTORY = _env["python_directory_user"] -def _regexp_friendly_class_name_shortcut(string): return string.replace(".", "\.") +_regexp_friendly_class_name_shortcut = lambda string: string.replace(".", "\\.") REGEXP = { "plugin_api_version": re.compile(b"(?<=ba_meta require api )(.*)"), diff --git a/plugins/utilities.json b/plugins/utilities.json index 6e6f801..94a9a31 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -223,12 +223,7 @@ } ], "versions": { - "2.0.0": { - "api_version": 8, - "commit_sha": "9cfd0db", - "released_on": "08-06-2023", - "md5sum": "92390046cc91e147ebcd97df7390527f" - }, + "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 5ef5159..a2998e3 100644 --- a/plugins/utilities/colorscheme.py +++ b/plugins/utilities/colorscheme.py @@ -147,7 +147,7 @@ class ColorSchemeWindow(bui.Window): # 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 + uiscale = bui.app.ui_v1.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 self._height = height = ( @@ -241,7 +241,7 @@ class ColorSchemeWindow(bui.Window): draw_controller=self._color_button, text=babase.Lstr(resource="editProfileWindow.colorText"), scale=0.7, - color=bui.app.classic.ui.title_color, + color=bui.app.ui_v1.title_color, maxwidth=120, ) @@ -268,7 +268,7 @@ class ColorSchemeWindow(bui.Window): draw_controller=self._highlight_button, text=babase.Lstr(resource="editProfileWindow.highlightText"), scale=0.7, - color=bui.app.classic.ui.title_color, + color=bui.app.ui_v1.title_color, maxwidth=120, )