mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-14 17:46:03 +00:00
python3.9,removed windows build,kick vote,ban mute commands , rjcd
This commit is contained in:
parent
94bdfb531a
commit
dbe040a017
2453 changed files with 3797 additions and 437553 deletions
15
dist/ba_root/mods/tools/textonmap.py
vendored
15
dist/ba_root/mods/tools/textonmap.py
vendored
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
""" TODO need to set coordinates of text node , move timer values to settings.json """
|
||||
|
||||
from ba._enums import TimeType
|
||||
from ba._generated.enums import TimeType
|
||||
import ba, _ba
|
||||
import setting
|
||||
|
||||
class textonmap:
|
||||
|
||||
|
||||
def __init__(self):
|
||||
|
||||
|
||||
data = setting.get_settings_data()['textonmap']
|
||||
left = data['bottom left watermark']
|
||||
top = data['top watermark']
|
||||
|
||||
|
||||
self.index = 0
|
||||
self.highlights = data['center highlights']
|
||||
self.left_watermark(left)
|
||||
|
|
@ -31,10 +31,10 @@ class textonmap:
|
|||
'position':(0,138),
|
||||
'color':(1,1,1)
|
||||
})
|
||||
|
||||
|
||||
self.delt = ba.timer(7,node.delete)
|
||||
self.index = int((self.index+1)%len(self.highlights))
|
||||
|
||||
|
||||
def left_watermark(self, text):
|
||||
node = _ba.newnode('text',
|
||||
attrs={
|
||||
|
|
@ -46,7 +46,7 @@ class textonmap:
|
|||
'position':(-480,20),
|
||||
'color':(1,1,1)
|
||||
})
|
||||
|
||||
|
||||
def top_message(self, text):
|
||||
node = _ba.newnode('text',
|
||||
attrs={
|
||||
|
|
@ -58,4 +58,3 @@ class textonmap:
|
|||
'position':(0,138),
|
||||
'color':(1,1,1)
|
||||
})
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue