Few Changes

This commit is contained in:
Vishal 2024-03-24 16:21:21 +05:30 committed by GitHub
parent f6f95263a1
commit 16cbddcf90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -184,16 +184,9 @@ 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.quit()
f'Restart {_babase.appname()} to take effect.',
color=(0, 1, 0),
)
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))

View File

@ -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',