@name PrinterBank
@inputs Scr:wirelink [UserTrigger Printer]:entity MaxAmt
@outputs Door Eject
@persist [Printers Owners Cash]:table [Name FileName]:string
@persist Use User:entity Menu Draw

Use=User:keyUse()
Use=changed(Use)
if (first()) {
    Name="Toaster" # Name of 'printers'
    FileName="printerbank.txt" # Name of the file to write to 
    
    #include "lib/egp/func"
    function hotBG(Scr:wirelink) {
        Scr:egpClear()
        Scr:egpBox(300,vec2(256),vec2(512))
        Scr:egpColor(300,vec(64))
        local Lines=5
        local Dist=512/Lines
        CurSelection=0
        for (I=1, Lines+2) {
            Scr:egpLine(I+200,vec2(Dist*(I-2),-5),vec2(Dist*I,517))
            Scr:egpSize(I+200,30)
            Scr:egpMaterial(I+200,"gui/gradient_down")
            Scr:egpColor(I+200,vec(32))
        }
    }
    
    setName("Scriptis' "+Name+" Bank")
}

Use=0
Draw=0
