@name 
@inputs 
@outputs 
@persist H W R G B A
@trigger 
runOnTick(1)
dRunOnChange("Red",1)
dRunOnChange("Green",1)
dRunOnChange("Blue",1)
dRunOnChange("Alpha",1)
Dclk=dClk("Red")+dClk("Green")+dClk("Blue")+dClk("Alpha")
if(first()){
    H = scrH()
    W = scrW()
    dPanel("Info",vec2(0,H/6*5),vec2(W,H/6))
    dPanel("Main",vec2(W/6*5,0),vec2(W/6,H))
    enableMouseF3(1)
    dTabHolder("Holder","Main",vec2(0,0),vec2(W/6,H))
    dTab("InGame","Holder")
    dTab("Options","Holder")
    dSlider("Red","Options",vec2(W/6/20,H/20),W/6/20*16,0,255)
    dSlider("Green","Options",vec2(W/6/20,H/20*2),W/6/20*16,0,255)
    dSlider("Blue","Options",vec2(W/6/20,H/20*3),W/6/20*16,0,255)
    dSlider("Alpha","Options",vec2(W/6/20,H/20*4),W/6/20*16,0,255)
    dSetNval("Red",127)
    dSetNval("Green",127)
    dSetNval("Blue",127)
    dSetNval("Alpha",127)
}
if(!Dclk){
    R=dNval("Red")
    G=dNval("Green")
    B=dNval("Blue")
    A=dNval("Alpha")
    dColor("Holder",R,G,B,A)
    dColor("Options",R,G,B,A)
    dColor("InGame",R,G,B,A)
    dColor("Info",R,G,B,A)
    dColor("Main",R,G,B,A)
}
