added my mods

now will somehow pr
This commit is contained in:
BrotherBoard 2024-05-16 18:44:57 +03:00 committed by GitHub
parent c42ffea998
commit 0fa3cfe3d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5632 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# ba_meta require api 8
import bascenev1 as bs
from babase import Plugin as v
from bauiv1 import buttonwidget as z,gettexture as x
from bauiv1lib.mainmenu import MainMenuWindow as m
m.i=m.p=0;k=bs.connect_to_party
def j(address,port=43210,print_progress=False):
try:bs.disconnect_from_host()
except:pass
m.i=address;m.p=port;k(m.i,m.p,print_progress)
def R(s):
def w(t,*f,**g):
z(parent=t._root_widget,size=(23,26),icon=x('replayIcon'),
on_activate_call=bs.Call(j,m.i,m.p))
return s(t,*f,**g)
return w
# ba_meta export plugin
class byBordd(v):
def __init__(s):
m._refresh_in_game=R(m._refresh_in_game)
bs.connect_to_party=j