mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
6501b61ae4
commit
44b03b8fe3
1 changed files with 12 additions and 10 deletions
|
|
@ -51,7 +51,8 @@ class QuickChatPartyWindow(bauiv1lib.party.PartyWindow):
|
||||||
messages = load_messages()
|
messages = load_messages()
|
||||||
w, h = 400, 300
|
w, h = 400, 300
|
||||||
|
|
||||||
root = bui.containerwidget(parent=bui.get_special_widget('overlay_stack'), size=(w, h), transition='in_scale', scale=1.2, color=(0, 0, 0), on_outside_click_call=lambda: bui.containerwidget(edit=root, transition='out_scale'))
|
root = bui.containerwidget(parent=bui.get_special_widget('overlay_stack'), size=(w, h), transition='in_scale', scale=1.2, color=(
|
||||||
|
0, 0, 0), on_outside_click_call=lambda: bui.containerwidget(edit=root, transition='out_scale'))
|
||||||
|
|
||||||
self._msg_scroll = bui.scrollwidget(
|
self._msg_scroll = bui.scrollwidget(
|
||||||
parent=root, position=(20, 80), size=(360, 180), color=(0, 0, 0))
|
parent=root, position=(20, 80), size=(360, 180), color=(0, 0, 0))
|
||||||
|
|
@ -138,17 +139,18 @@ class QuickChatPartyWindow(bauiv1lib.party.PartyWindow):
|
||||||
|
|
||||||
h = 50 + len(msgs) * 45
|
h = 50 + len(msgs) * 45
|
||||||
h = min(h, 300)
|
h = min(h, 300)
|
||||||
win = bui.containerwidget(parent=bui.get_special_widget('overlay_stack'), size=(300, h), transition='in_scale', scale=1.2, color=(0, 0, 0), on_outside_click_call=lambda: bui.containerwidget(edit=win, transition='out_scale'))
|
win = bui.containerwidget(parent=bui.get_special_widget('overlay_stack'), size=(300, h), transition='in_scale', scale=1.2, color=(
|
||||||
|
0, 0, 0), on_outside_click_call=lambda: bui.containerwidget(edit=win, transition='out_scale'))
|
||||||
col = bui.columnwidget(parent=win)
|
col = bui.columnwidget(parent=win)
|
||||||
|
|
||||||
bui.buttonwidget(
|
bui.buttonwidget(
|
||||||
parent=col,
|
parent=col,
|
||||||
label=f'Colse',
|
label=f'Colse',
|
||||||
size=(260, 40),
|
size=(260, 40),
|
||||||
textcolor=(1, 1, 1),
|
textcolor=(1, 1, 1),
|
||||||
color=(1, 0.2, 0.2),
|
color=(1, 0.2, 0.2),
|
||||||
on_activate_call=lambda: bui.containerwidget(edit=win, transition='out_scale')
|
on_activate_call=lambda: bui.containerwidget(edit=win, transition='out_scale')
|
||||||
)
|
)
|
||||||
for msg in msgs:
|
for msg in msgs:
|
||||||
bui.buttonwidget(
|
bui.buttonwidget(
|
||||||
parent=col,
|
parent=col,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue