mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
Updating updown.py to api 9
This commit is contained in:
parent
6a80e330c1
commit
baa586265f
2 changed files with 8 additions and 5 deletions
|
|
@ -77,6 +77,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"1.1.0": null,
|
||||||
"1.0.0": {
|
"1.0.0": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "333416f",
|
"commit_sha": "333416f",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import babase as ba
|
import babase as ba
|
||||||
import bauiv1 as bui
|
import bauiv1 as bui
|
||||||
import bauiv1lib.party
|
import bauiv1lib.party
|
||||||
from bauiv1lib.popup import PopupWindow
|
|
||||||
from bascenev1 import get_chat_messages as gcm, screenmessage as push
|
from bascenev1 import get_chat_messages as gcm, screenmessage as push
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -11,6 +10,7 @@ class VeryPW(bauiv1lib.party.PartyWindow):
|
||||||
s._n = 0
|
s._n = 0
|
||||||
s._o = ""
|
s._o = ""
|
||||||
s._f = True
|
s._f = True
|
||||||
|
s._chat_texts_haxx = []
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
bui.buttonwidget(
|
bui.buttonwidget(
|
||||||
parent=s._root_widget,
|
parent=s._root_widget,
|
||||||
|
|
@ -41,6 +41,8 @@ class VeryPW(bauiv1lib.party.PartyWindow):
|
||||||
s._n = -1
|
s._n = -1
|
||||||
s._c(s._o)
|
s._c(s._o)
|
||||||
|
|
||||||
|
for msg in s._chat_texts:
|
||||||
|
msg.delete()
|
||||||
for msg in s._chat_texts_haxx:
|
for msg in s._chat_texts_haxx:
|
||||||
msg.delete()
|
msg.delete()
|
||||||
for z in range(len(s._w1)):
|
for z in range(len(s._w1)):
|
||||||
|
|
@ -61,15 +63,15 @@ class VeryPW(bauiv1lib.party.PartyWindow):
|
||||||
flatness=1.0)
|
flatness=1.0)
|
||||||
bui.textwidget(edit=txt,
|
bui.textwidget(edit=txt,
|
||||||
on_activate_call=ba.Call(
|
on_activate_call=ba.Call(
|
||||||
s._on_chat_press,
|
s._copy_msg,
|
||||||
s._w1[z], txt))
|
s._w1[z]))
|
||||||
s._chat_texts_haxx.append(txt)
|
s._chat_texts_haxx.append(txt)
|
||||||
bui.containerwidget(edit=s._columnwidget, visible_child=txt)
|
bui.containerwidget(edit=s._columnwidget, visible_child=txt)
|
||||||
|
|
||||||
# ba_meta require api 8
|
# ba_meta require api 9
|
||||||
# ba_meta export plugin
|
# ba_meta export plugin
|
||||||
|
|
||||||
|
|
||||||
class byBordd(ba.Plugin):
|
class byBordd(ba.Plugin):
|
||||||
def __init__(s):
|
def __init__(s):
|
||||||
bauiv1lib.party.PartyWindow = VeryPW
|
bauiv1lib.party.PartyWindow = VeryPW
|
||||||
Loading…
Add table
Add a link
Reference in a new issue