New fixes

This commit is contained in:
Rikko 2023-06-21 00:56:02 +05:30
parent 79244decde
commit da62efcf2b
4 changed files with 8 additions and 18 deletions

View file

@ -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"
}
}

View file

@ -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 )(.*)"),

View file

@ -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 @@
}
}
}
}
}

View file

@ -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,
)