fancy printer list, time to get ready for twenty10

This commit is contained in:
Tabby 2025-10-30 15:30:44 +11:00
parent c26b350e49
commit 319e30e3d4
5 changed files with 49 additions and 1 deletions

View file

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