FileBrowserSave
FileBrowserSave(**kwargs)
Located in ursina/prefabs/file_browser_save.py
Overview
Extends FileBrowser with a TextField for entering the save filename, and a confirm dialog.
Key Properties
.file_name_field—InputFieldfor name.file_type— extension filter.last_saved_file
Methods
on_submit(path)— called when savingon_enable()/on_disable()
Example
from ursina import *
from ursina.prefabs.file_browser_save import FileBrowserSave
app = Ursina()
wp = FileBrowserSave(file_type='.*')
wp.data = '{"level":4,"name":"Link"}'
wp.enabled=False
def input(key):
if key=='tab': wp.enabled = not wp.enabled
app.run()