as for buttons, it's basically creating your own from scratch. at it's most simple you can draw an image/text and check the position of the mouse when it's clicked to trigger a function.
or you can write your own object. see tooltip.txt in the samples folder to get started.
Thanks.
Examined tooltip.txt. There is a constructor here:
function SampleButton(x, y, w, h, caption, func, tiptext) {
// 'Constructor' stuff
this.left = x;
this.top = y;
this.w = w;
this.h = h;
this.right = x + w;
this.bottom = y + h;
this.caption = caption;
this.func = func;
this.tiptext = tiptext;
...
}
But where is the object "SampleButton" declaration by itself? Where can I find the whole properties and functions list?
One more thing. What is this syntaxis?
ButtonStates = {
normal: 0,
hover: 1,
down: 2,
hide: 3
}
Could not find this initialization style in Java guides...