diff --git a/index.json b/index.json index d2dd7bd..8ebb3fd 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "0.1.10": { + "api_version": 7, + "commit_sha": "21e58a1", + "released_on": "05-12-2022", + "md5sum": "d6c963bf62e5bfdcd3d83ff44b58f855" + }, "0.1.9": { "api_version": 7, "commit_sha": "09b6832", diff --git a/plugin_manager.py b/plugin_manager.py index 749e46a..9e32364 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -20,7 +20,7 @@ _env = _ba.env() _uiscale = ba.app.ui.uiscale -PLUGIN_MANAGER_VERSION = "0.1.9" +PLUGIN_MANAGER_VERSION = "0.1.10" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" CURRENT_TAG = "main" INDEX_META = "{repository_url}/{content_type}/{tag}/index.json" @@ -1665,10 +1665,12 @@ class PluginManagerSettingsWindow(popup.PopupWindow): width = 380 * s height = 150 + 150 * s color = (0.9, 0.9, 0.9) + discord_bg_color = ba.normalized_color((88, 101, 242)) + github_bg_color = (0.2, 0.2, 0.2) text_scale = 0.7 * s self._transition_out = 'out_scale' transition = 'in_scale' - button_size = (60 * s, 32 * s) + button_size = (32 * s, 32 * s) # index = await self._plugin_manager.get_index() self._root_widget = ba.containerwidget(size=(width, height), # parent=_ba.get_special_widget( @@ -1727,23 +1729,40 @@ class PluginManagerSettingsWindow(popup.PopupWindow): maxwidth=width * 0.95) pos -= 75 - ba.buttonwidget(parent=self._root_widget, - position=((width * 0.20) - button_size[0] / 2, pos), - size=button_size, - on_activate_call=lambda: ba.open_url(DISCORD_URL), - textcolor=b_text_color, - button_type='square', - text_scale=1, - label='Discord') + self.discord_button = ba.buttonwidget(parent=self._root_widget, + position=((width * 0.20) - button_size[0] / 2, pos), + size=button_size, + on_activate_call=lambda: ba.open_url(DISCORD_URL), + textcolor=b_text_color, + color=discord_bg_color, + button_type='square', + text_scale=1, + label="") + + ba.imagewidget(parent=self._root_widget, + position=((width * 0.20)+0.5 - button_size[0] / 2, pos), + size=button_size, + texture=ba.gettexture("discordLogo"), + color=(10, 10, 10), + draw_controller=self.discord_button) + + self.github_button = ba.buttonwidget(parent=self._root_widget, + position=((width * 0.49) - button_size[0] / 2, pos), + size=button_size, + on_activate_call=lambda: ba.open_url(REPOSITORY_URL), + textcolor=b_text_color, + color=github_bg_color, + button_type='square', + text_scale=1, + label='') + + ba.imagewidget(parent=self._root_widget, + position=((width * 0.49) + 0.5 - button_size[0] / 2, pos), + size=button_size, + texture=ba.gettexture("githubLogo"), + color=(1, 1, 1), + draw_controller=self.github_button) - ba.buttonwidget(parent=self._root_widget, - position=((width * 0.49) - button_size[0] / 2, pos), - size=button_size, - on_activate_call=lambda: ba.open_url(REPOSITORY_URL), - textcolor=b_text_color, - button_type='square', - text_scale=1, - label='GitHub') ba.containerwidget(edit=self._root_widget, on_cancel_call=self._ok)