mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
added my mods
now will somehow pr
This commit is contained in:
parent
c42ffea998
commit
0fa3cfe3d1
5 changed files with 5632 additions and 0 deletions
24
plugins/utilities/rejoin.py
Normal file
24
plugins/utilities/rejoin.py
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue