This is used in Player guis to add the Save/SaveAs controls
Does a no-clobber check, makes a .bak copy of any previously existing file it finds.
SaveConsole.new(object, path, layout)
Arguments:
object |
anything that can respond to .asCompileString and thus be saved to disk |
path |
supply this if the object you are supplying was already loaded from disk and has a known path. This is used for the save/save as behavior. |
layout | |
.path = value
.save(title: "save", minWidth: 100)
.saveAs(onSaveF, default)
.open(onOpenF)