GUI output:
void Button(string text) { int color = 0xEFF00000; @size(20) @out(text) } @out(rect()) @textwidth(2) @size(40) @bgcol(color) @onpress(color = 0xB0000000) @onrelease([(color = 0xE000DD00), return()]) int count = 0; { { Button decButton = new Button("-") -> {count--;}; @out(decButton) { ; @out(count) @size(60) @alignx(50) @textcol(0x80000000) } @textwidth(3) @size(60) void make2( string s1, string s2, Button b1, Button b2){ b1 = new Button("B1") -> println("B1"); @out(b1) ; } /////////////////////////// Button incButton = new Button("1") -> {count++;}; @out(incButton) Button incButton2 = new Button("2") -> {count++;}; @out(incButton2) Button incButton3 = new Button("3") -> {count++;}; @out(incButton3) } @cdir(1) }
Console: