mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-27 01:12:38 +00:00
Merge pull request #113 from kingsamurai123/ResizePluginWindow
Resize plugin window to avoid overlapping with buttons
This commit is contained in:
commit
f74ac1b566
3 changed files with 18 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
{
|
||||
"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": "0b856ba",
|
||||
"released_on": "04-03-2023",
|
||||
"md5sum": "52fdce0f242b1bc52a1cbf2e7d78d230"
|
||||
},
|
||||
"0.3.0": {
|
||||
"api_version": 7,
|
||||
"commit_sha": "cb5df36",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
width = 360 * s
|
||||
height = 100 + 100 * s
|
||||
s = 1.25 if _uiscale is ba.UIScale.SMALL else 1.39 if ba.UIScale.MEDIUM else 1.67
|
||||
width = 400 * s
|
||||
height = 120 + 100 * s
|
||||
color = (1, 1, 1)
|
||||
text_scale = 0.7 * s
|
||||
self._transition_out = 'out_scale'
|
||||
|
|
@ -933,8 +933,8 @@ 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_x = (390 if _uiscale is ba.UIScale.SMALL else
|
||||
450 if _uiscale is ba.UIScale.MEDIUM else 440)
|
||||
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,
|
||||
|
|
@ -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 = (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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue