mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-03 22:14:45 +08:00
commit
dd571bab64
@ -184,16 +184,13 @@ def delete_user_system_scripts() -> None:
|
|||||||
path = f'{env.python_directory_user}/sys/{env.version}'
|
path = f'{env.python_directory_user}/sys/{env.version}'
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
print(
|
print('User system scripts deleted.')
|
||||||
f'User system scripts deleted.\n'
|
|
||||||
f'Restart {_babase.appname()} to use internal'
|
|
||||||
f' scripts. (use babase.quit() to exit the game)'
|
|
||||||
)
|
|
||||||
_babase.screenmessage('Deleted User System Scripts', color=(0, 1, 0))
|
_babase.screenmessage('Deleted User System Scripts', color=(0, 1, 0))
|
||||||
_babase.screenmessage(
|
_babase.screenmessage(
|
||||||
f'Restart {_babase.appname()} to take effect.',
|
f'Closing {_babase.appname()} to make changes.',
|
||||||
color=(0, 1, 0),
|
color=(0, 1, 0)
|
||||||
)
|
)
|
||||||
|
_babase.apptimer(2.0, _babase.quit)
|
||||||
else:
|
else:
|
||||||
print(f"User system scripts not found at '{path}'.")
|
print(f"User system scripts not found at '{path}'.")
|
||||||
_babase.screenmessage('User Scripts Not Found', color=(1, 0, 0))
|
_babase.screenmessage('User Scripts Not Found', color=(1, 0, 0))
|
||||||
|
|||||||
@ -474,7 +474,7 @@ class EliminationGame(bs.TeamGameActivity[Player, Team]):
|
|||||||
points.append(
|
points.append(
|
||||||
((start_pos - player_pos).length(), start_pos)
|
((start_pos - player_pos).length(), start_pos)
|
||||||
)
|
)
|
||||||
# Hmm.. we need to sorting vectors too?
|
# Hmm.. we need to sort vectors too?
|
||||||
points.sort(key=lambda x: x[0])
|
points.sort(key=lambda x: x[0])
|
||||||
return points[-1][1]
|
return points[-1][1]
|
||||||
return None
|
return None
|
||||||
|
|||||||
@ -294,6 +294,7 @@ class PlayOptionsWindow(PopupWindow):
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
minval=1.0,
|
minval=1.0,
|
||||||
|
maxval=100.0 if self._sessiontype is bs.FreeForAllSession else 99.0,
|
||||||
increment=1.0 if self._sessiontype is bs.FreeForAllSession else 2.0,
|
increment=1.0 if self._sessiontype is bs.FreeForAllSession else 2.0,
|
||||||
fallback_value=(
|
fallback_value=(
|
||||||
24 if self._sessiontype is bs.FreeForAllSession else 7
|
24 if self._sessiontype is bs.FreeForAllSession else 7
|
||||||
|
|||||||
@ -167,6 +167,7 @@ class ModdingToolsWindow(bui.Window):
|
|||||||
parent=self._subcontainer,
|
parent=self._subcontainer,
|
||||||
position=(230, v - 20),
|
position=(230, v - 20),
|
||||||
button_size=(200.0, 60.0),
|
button_size=(200.0, 60.0),
|
||||||
|
width=100.0,
|
||||||
choices=[
|
choices=[
|
||||||
'auto',
|
'auto',
|
||||||
'small',
|
'small',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user