printer creation and deltion working
This commit is contained in:
parent
b53d33584c
commit
b7ce1a2162
7 changed files with 87 additions and 2 deletions
13
library.gd
13
library.gd
|
|
@ -37,4 +37,15 @@ func save_new():
|
|||
save = LibrarySave.new()
|
||||
var error = ResourceSaver.save(save, save_path)
|
||||
print(error)
|
||||
|
||||
|
||||
func list_printers() -> String:
|
||||
var response : String = "Current Printers:"
|
||||
for printer : Printer in save.printers:
|
||||
response += "\n- " + printer.name
|
||||
return response
|
||||
|
||||
func printer_choies() -> Array[Dictionary]:
|
||||
var printer_names : Array[Dictionary] = []
|
||||
for printer : Printer in save.printers:
|
||||
printer_names.append(ApplicationCommand.choice(printer.name, printer.name))
|
||||
return printer_names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue