fancy printer list, time to get ready for twenty10
This commit is contained in:
parent
c26b350e49
commit
319e30e3d4
5 changed files with 49 additions and 1 deletions
|
|
@ -3,3 +3,25 @@ class_name Printer
|
|||
|
||||
@export var name : String
|
||||
@export var spool : Spool
|
||||
@export var nozzle : String = "0.4mm"
|
||||
|
||||
static var nozzles : Array[String] = [
|
||||
"0.6mm",
|
||||
"0.4mm",
|
||||
"0.2mm",
|
||||
]
|
||||
|
||||
|
||||
func list_string() -> String:
|
||||
var result = name + ": "
|
||||
|
||||
if spool:
|
||||
result += spool.name + " "
|
||||
if spool.link:
|
||||
result += "[Link]("+spool.link+")"
|
||||
else:
|
||||
result += "***Unloaded***"
|
||||
|
||||
result += " (Nozzle: "+nozzle+")"
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue