mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Fixing Position of Loading Text and Added Sounds
This commit is contained in:
parent
b43e4133a9
commit
d11d4eadcf
1 changed files with 8 additions and 3 deletions
|
|
@ -450,6 +450,7 @@ class PluginWindow(popup.PopupWindow):
|
||||||
# ba.containerwidget(edit=self._root_widget, start_button=button3)
|
# ba.containerwidget(edit=self._root_widget, start_button=button3)
|
||||||
|
|
||||||
def _ok(self) -> None:
|
def _ok(self) -> None:
|
||||||
|
play_sound()
|
||||||
ba.containerwidget(edit=self._root_widget, transition='out_scale')
|
ba.containerwidget(edit=self._root_widget, transition='out_scale')
|
||||||
|
|
||||||
def button(fn):
|
def button(fn):
|
||||||
|
|
@ -593,10 +594,13 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
||||||
v_align="center",
|
v_align="center",
|
||||||
maxwidth=270,
|
maxwidth=270,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
loading_pos_y = self._height - (235 if _uiscale is ba.UIScale.SMALL else
|
||||||
|
220 if _uiscale is ba.UIScale.MEDIUM else 250)
|
||||||
|
|
||||||
self._loading_text = ba.textwidget(
|
self._loading_text = ba.textwidget(
|
||||||
parent=self._root_widget,
|
parent=self._root_widget,
|
||||||
position=(35, self._height - 150),
|
position=(-5, loading_pos_y),
|
||||||
size=(self._width, 25),
|
size=(self._width, 25),
|
||||||
text="Loading...",
|
text="Loading...",
|
||||||
color=ba.app.ui.title_color,
|
color=ba.app.ui.title_color,
|
||||||
|
|
@ -728,7 +732,7 @@ class PluginManagerWindow(ba.Window, PluginManager):
|
||||||
pass
|
pass
|
||||||
except urllib.error.URLError:
|
except urllib.error.URLError:
|
||||||
ba.textwidget(edit=self._loading_text,
|
ba.textwidget(edit=self._loading_text,
|
||||||
text="Make sure you are connected to the Internet and try again.")
|
text="Make sure you are connected\n to the Internet and try again.")
|
||||||
else:
|
else:
|
||||||
self._loading_text.delete()
|
self._loading_text.delete()
|
||||||
|
|
||||||
|
|
@ -995,6 +999,7 @@ class PluginManagerSettingsWindow(popup.PopupWindow):
|
||||||
# _ba.app.api_version
|
# _ba.app.api_version
|
||||||
|
|
||||||
def _disappear(self) -> None:
|
def _disappear(self) -> None:
|
||||||
|
play_sound()
|
||||||
ba.containerwidget(edit=self._root_widget, transition='out_scale')
|
ba.containerwidget(edit=self._root_widget, transition='out_scale')
|
||||||
|
|
||||||
def _open(self) -> None:
|
def _open(self) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue