Hi,
I've copied over some images from TuxPaint and try to create buttons so that some tools graphics is drawn over a button graphics:
Code: Select all
@Display {Title="HollyPaint", Width=800, Height=600, Color=#WHITE, Mode="Windowed"}
Const #BTN_DOWN=1
Const #BTN_UP=2
Const #BTN_OFF=3
Const #BTN_PAINT1=4
Const #BTN_PAINT2=5
LoadBrush(#BTN_UP, "images/ui/btn_up.png")
LoadBrush(#BTN_PAINT1,"images/tools/brush.png",{LoadAlpha=True})
LoadBrush(#BTN_PAINT2,"images/tools/brush.png")
DisplayBrush(#BTN_UP,0,0)
DisplayBrush(#BTN_PAINT1,0,20)
DisplayBrush(#BTN_UP,50,0)
DisplayBrush(#BTN_PAINT2,50,20)
WaitKeyDown("return")
It should look like this: http://www.tuxpaint.org/screenshots/sho ... 3?which=11
Regards, Matthias