From 71479e5b5ea10796e66f611cbc3be7b8c9fafa05 Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 13:01:48 +0530 Subject: [PATCH 1/9] Resize the window and buttons Resized the plugin window popup and also moved the buttons to limit the overlapping with the description. --- plugin_manager.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin_manager.py b/plugin_manager.py index 7225598..2d9e419 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -816,9 +816,9 @@ class PluginWindow(popup.PopupWindow): play_sound() b_text_color = (0.75, 0.7, 0.8) - s = 1.1 if _uiscale is ba.UIScale.SMALL else 1.27 if ba.UIScale.MEDIUM else 1.57 + s = 1.25 if _uiscale is ba.UIScale.SMALL else 1.39 if ba.UIScale.MEDIUM else 1.67 width = 360 * s - height = 100 + 100 * s + height = 120 + 100 * s color = (1, 1, 1) text_scale = 0.7 * s self._transition_out = 'out_scale' @@ -933,10 +933,10 @@ class PluginWindow(popup.PopupWindow): ba.containerwidget(edit=self._root_widget, on_cancel_call=self._ok) - open_pos_x = (300 if _uiscale is ba.UIScale.SMALL else - 360 if _uiscale is ba.UIScale.MEDIUM else 350) - open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else - 110 if _uiscale is ba.UIScale.MEDIUM else 120) + open_pos_x = (350 if _uiscale is ba.UIScale.SMALL else + 410 if _uiscale is ba.UIScale.MEDIUM else 400) + open_pos_y = (125 if _uiscale is ba.UIScale.SMALL else + 135 if _uiscale is ba.UIScale.MEDIUM else 140) open_button = ba.buttonwidget(parent=self._root_widget, autoselect=True, position=(open_pos_x, open_pos_y), @@ -970,8 +970,8 @@ class PluginWindow(popup.PopupWindow): text=text, action=lambda: ba.open_url(self.plugin.info["external_url"]), ) - open_pos_x = (350 if _uiscale is ba.UIScale.SMALL else - 410 if _uiscale is ba.UIScale.MEDIUM else 400) + open_pos_x = (400 if _uiscale is ba.UIScale.SMALL else + 460 if _uiscale is ba.UIScale.MEDIUM else 450) open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else 110 if _uiscale is ba.UIScale.MEDIUM else 120) open_button = ba.buttonwidget(parent=self._root_widget, From 5623b018239e3d6ecca13706328c92f4c3f60ff7 Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 13:05:16 +0530 Subject: [PATCH 2/9] Add changelog for 0.3.1 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2900fd8..9da6511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Plugin Manager (dd-mm-yyyy) +### 0.3.1 (04-03-2023) + +- Resize the plugin window to limit the overlapping of plugin description. + ### 0.3.0 (12-02-2023) - Displays a tutorial button in the plugin window, whenever there is a supported url present in the plugin data. From 2ff6d498344e023078e2943c97c6f34d1c64bedb Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 13:28:23 +0530 Subject: [PATCH 3/9] Changed the version in PM and index Added the version change in PluginManager.py and index.json --- index.json | 1 + plugin_manager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 35df60c..2eca77d 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "0.3.1": null, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36", diff --git a/plugin_manager.py b/plugin_manager.py index 2d9e419..e5de46a 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -24,7 +24,7 @@ _env = _ba.env() _uiscale = ba.app.ui.uiscale -PLUGIN_MANAGER_VERSION = "0.3.0" +PLUGIN_MANAGER_VERSION = "0.3.1" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" CURRENT_TAG = "main" INDEX_META = "{repository_url}/{content_type}/{tag}/index.json" From c72879e91aedb8090527e9525a95c3e65c6344a9 Mon Sep 17 00:00:00 2001 From: kingsamurai123 Date: Sat, 4 Mar 2023 08:01:19 +0000 Subject: [PATCH 4/9] [ci] apply-version-metadata --- index.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 2eca77d..9987a70 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "0.3.1": null, + "0.3.1": { + "api_version": 7, + "commit_sha": "2ff6d49", + "released_on": "04-03-2023", + "md5sum": "48817d0411a6d1d98ed6cd971f0aa0e6" + }, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36", From cedd1b150133cf86306b04d417c76bbcddfdeca2 Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 15:40:01 +0530 Subject: [PATCH 5/9] Increase plugin window width Increased the plugin window size and moved the buttons to the left. --- plugin_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin_manager.py b/plugin_manager.py index e5de46a..68d77c2 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -817,7 +817,7 @@ class PluginWindow(popup.PopupWindow): play_sound() b_text_color = (0.75, 0.7, 0.8) s = 1.25 if _uiscale is ba.UIScale.SMALL else 1.39 if ba.UIScale.MEDIUM else 1.67 - width = 360 * s + width = 400 * s height = 120 + 100 * s color = (1, 1, 1) text_scale = 0.7 * s @@ -933,8 +933,8 @@ class PluginWindow(popup.PopupWindow): ba.containerwidget(edit=self._root_widget, on_cancel_call=self._ok) - open_pos_x = (350 if _uiscale is ba.UIScale.SMALL else - 410 if _uiscale is ba.UIScale.MEDIUM else 400) + open_pos_x = (390 if _uiscale is ba.UIScale.SMALL else + 450 if _uiscale is ba.UIScale.MEDIUM else 440) open_pos_y = (125 if _uiscale is ba.UIScale.SMALL else 135 if _uiscale is ba.UIScale.MEDIUM else 140) open_button = ba.buttonwidget(parent=self._root_widget, @@ -970,8 +970,8 @@ class PluginWindow(popup.PopupWindow): text=text, action=lambda: ba.open_url(self.plugin.info["external_url"]), ) - open_pos_x = (400 if _uiscale is ba.UIScale.SMALL else - 460 if _uiscale is ba.UIScale.MEDIUM else 450) + open_pos_x = (440 if _uiscale is ba.UIScale.SMALL else + 500 if _uiscale is ba.UIScale.MEDIUM else 490) open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else 110 if _uiscale is ba.UIScale.MEDIUM else 120) open_button = ba.buttonwidget(parent=self._root_widget, From 43dcb2ef5df0535aa907c14a91769e2f0fed026d Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 15:44:17 +0530 Subject: [PATCH 6/9] reset the hash --- index.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/index.json b/index.json index 9987a70..2eca77d 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": { - "0.3.1": { - "api_version": 7, - "commit_sha": "2ff6d49", - "released_on": "04-03-2023", - "md5sum": "48817d0411a6d1d98ed6cd971f0aa0e6" - }, + "0.3.1": null, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36", From 2460e007de925b9bc9f5f8b0078ac931abe281cb Mon Sep 17 00:00:00 2001 From: kingsamurai123 Date: Sat, 4 Mar 2023 10:15:06 +0000 Subject: [PATCH 7/9] [ci] apply-version-metadata --- index.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 2eca77d..f88daf7 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "0.3.1": null, + "0.3.1": { + "api_version": 7, + "commit_sha": "43dcb2e", + "released_on": "04-03-2023", + "md5sum": "fde604cd3789dfbeca74bc8e8d685fd8" + }, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36", From 0b856baf34e22b92e4f2cf2d285c5f08b8088173 Mon Sep 17 00:00:00 2001 From: Sravan Date: Sat, 4 Mar 2023 18:15:08 +0530 Subject: [PATCH 8/9] Y-axis typo --- index.json | 7 +------ plugin_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/index.json b/index.json index f88daf7..2eca77d 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": { - "0.3.1": { - "api_version": 7, - "commit_sha": "43dcb2e", - "released_on": "04-03-2023", - "md5sum": "fde604cd3789dfbeca74bc8e8d685fd8" - }, + "0.3.1": null, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36", diff --git a/plugin_manager.py b/plugin_manager.py index 68d77c2..2c4664d 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -935,8 +935,8 @@ class PluginWindow(popup.PopupWindow): open_pos_x = (390 if _uiscale is ba.UIScale.SMALL else 450 if _uiscale is ba.UIScale.MEDIUM else 440) - open_pos_y = (125 if _uiscale is ba.UIScale.SMALL else - 135 if _uiscale is ba.UIScale.MEDIUM else 140) + open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else + 110 if _uiscale is ba.UIScale.MEDIUM else 120) open_button = ba.buttonwidget(parent=self._root_widget, autoselect=True, position=(open_pos_x, open_pos_y), From 71e5d3a0b5dcb72f0ad5d342e64bdc79a78dbcd7 Mon Sep 17 00:00:00 2001 From: kingsamurai123 Date: Sat, 4 Mar 2023 12:47:12 +0000 Subject: [PATCH 9/9] [ci] apply-version-metadata --- index.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.json b/index.json index 2eca77d..8805e0f 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "0.3.1": null, + "0.3.1": { + "api_version": 7, + "commit_sha": "0b856ba", + "released_on": "04-03-2023", + "md5sum": "52fdce0f242b1bc52a1cbf2e7d78d230" + }, "0.3.0": { "api_version": 7, "commit_sha": "cb5df36",