mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Few Changes
This commit is contained in:
parent
a1fab1b669
commit
d06fc6d5ab
1 changed files with 62 additions and 46 deletions
|
|
@ -1001,53 +1001,19 @@ class MoreWindow(popup.PopupWindow):
|
||||||
text_scale = 0.7 * s
|
text_scale = 0.7 * s
|
||||||
self._transition_out = 'out_scale'
|
self._transition_out = 'out_scale'
|
||||||
transition = 'in_scale'
|
transition = 'in_scale'
|
||||||
|
for value in plugin.info['versions'].values():
|
||||||
|
if value['api_version'] == _app_api_version:
|
||||||
|
released_on = value['released_on']
|
||||||
|
print(released_on)
|
||||||
|
|
||||||
self._root_widget = bui.containerwidget(size=(width, height),
|
self._root_widget = bui.containerwidget(
|
||||||
on_outside_click_call=self._back,
|
size=(width, height),
|
||||||
transition=transition,
|
on_outside_click_call=self._back,
|
||||||
scale=(1.5 if _uiscale is babase.UIScale.SMALL else 1.5
|
transition=transition,
|
||||||
if _uiscale is babase.UIScale.MEDIUM else 1.0),
|
scale=(1.5 if _uiscale is babase.UIScale.SMALL else 1.5
|
||||||
scale_origin_stack_offset=self.scale_origin)
|
if _uiscale is babase.UIScale.MEDIUM else 1.0),
|
||||||
|
scale_origin_stack_offset=self.scale_origin)
|
||||||
bui.buttonwidget(parent=self._root_widget,
|
|
||||||
size=(60, 60),
|
|
||||||
label="report a bug",
|
|
||||||
on_activate_call=babase.Call(
|
|
||||||
bui.open_url, REPOSITORY_URL + "/issues/new?template=" + PLUGIN_ISSUE_TEMPLATE)
|
|
||||||
)
|
|
||||||
|
|
||||||
source_btn_pos_x = (390 if _uiscale is babase.UIScale.SMALL else
|
|
||||||
450 if _uiscale is babase.UIScale.MEDIUM else 440)
|
|
||||||
source_btn_pos_y = (100 if _uiscale is babase.UIScale.SMALL else
|
|
||||||
110 if _uiscale is babase.UIScale.MEDIUM else 120)
|
|
||||||
source_button = bui.buttonwidget(parent=self._root_widget,
|
|
||||||
autoselect=True,
|
|
||||||
position=(source_btn_pos_x, source_btn_pos_y),
|
|
||||||
size=(40, 40),
|
|
||||||
button_type="square",
|
|
||||||
label="",
|
|
||||||
color=(0.6, 0.53, 0.63),
|
|
||||||
on_activate_call=lambda: bui.open_url(self.plugin.view_url))
|
|
||||||
bui.imagewidget(parent=self._root_widget,
|
|
||||||
position=(source_btn_pos_x, source_btn_pos_y),
|
|
||||||
size=(40, 40),
|
|
||||||
color=(0.8, 0.95, 1),
|
|
||||||
texture=bui.gettexture("file"),
|
|
||||||
draw_controller=source_button)
|
|
||||||
bui.textwidget(parent=self._root_widget,
|
|
||||||
position=(source_btn_pos_x-3, source_btn_pos_y+12),
|
|
||||||
text="Source",
|
|
||||||
size=(10, 10),
|
|
||||||
draw_controller=source_button,
|
|
||||||
color=(1, 1, 1, 1),
|
|
||||||
rotate=25,
|
|
||||||
scale=0.45)
|
|
||||||
|
|
||||||
print(dir(plugin))
|
|
||||||
# bui.textwidget(parent=self._root_widget,
|
|
||||||
# size=(60,60),
|
|
||||||
# text=plugin)
|
|
||||||
|
|
||||||
back_button = bui.buttonwidget(
|
back_button = bui.buttonwidget(
|
||||||
parent=self._root_widget,
|
parent=self._root_widget,
|
||||||
position=(width * 0.1, height * 0.87),
|
position=(width * 0.1, height * 0.87),
|
||||||
|
|
@ -1058,6 +1024,56 @@ class MoreWindow(popup.PopupWindow):
|
||||||
on_activate_call=self._back)
|
on_activate_call=self._back)
|
||||||
bui.containerwidget(edit=self._root_widget, cancel_button=back_button)
|
bui.containerwidget(edit=self._root_widget, cancel_button=back_button)
|
||||||
|
|
||||||
|
bui.textwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(width/4, height/1.5),
|
||||||
|
text=f"RELEASED ON: {released_on}",
|
||||||
|
h_align='left', v_align='center')
|
||||||
|
|
||||||
|
bui.textwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(width/4, height/2),
|
||||||
|
text="Source: ",
|
||||||
|
h_align='left', v_align='center')
|
||||||
|
|
||||||
|
source_btn_pos_x = (390 if _uiscale is babase.UIScale.SMALL else
|
||||||
|
450 if _uiscale is babase.UIScale.MEDIUM else 440)
|
||||||
|
source_btn_pos_y = (100 if _uiscale is babase.UIScale.SMALL else
|
||||||
|
110 if _uiscale is babase.UIScale.MEDIUM else 120)
|
||||||
|
source_button = bui.buttonwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
autoselect=True,
|
||||||
|
position=(width/2-25, height/2-25),
|
||||||
|
size=(80, 80),
|
||||||
|
button_type="square",
|
||||||
|
label="",
|
||||||
|
color=(0.6, 0.53, 0.63),
|
||||||
|
on_activate_call=lambda: bui.open_url(self.plugin.view_url))
|
||||||
|
bui.imagewidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(width/2-25, height/2-25),
|
||||||
|
size=(80, 80),
|
||||||
|
color=(0.8, 0.95, 1),
|
||||||
|
texture=bui.gettexture("file"),
|
||||||
|
draw_controller=source_button)
|
||||||
|
bui.textwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
position=(width/2-16, height/2-2),
|
||||||
|
text="Source",
|
||||||
|
size=(20, 20),
|
||||||
|
draw_controller=source_button,
|
||||||
|
color=(1, 1, 1, 1),
|
||||||
|
rotate=25,
|
||||||
|
scale=0.7)
|
||||||
|
|
||||||
|
bui.buttonwidget(
|
||||||
|
parent=self._root_widget,
|
||||||
|
size=(60, 60),
|
||||||
|
label="report a bug",
|
||||||
|
on_activate_call=babase.Call(
|
||||||
|
bui.open_url, REPOSITORY_URL + "/issues/new?template=" + PLUGIN_ISSUE_TEMPLATE)
|
||||||
|
)
|
||||||
|
|
||||||
def _back(self) -> None:
|
def _back(self) -> None:
|
||||||
bui.getsound('swish').play()
|
bui.getsound('swish').play()
|
||||||
bui.containerwidget(edit=self._root_widget, transition='out_scale')
|
bui.containerwidget(edit=self._root_widget, transition='out_scale')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue