01-23-2006 11:07
I've made a simple widget toolkit, it's buggy, incomplete, not finished and not in any way userfriendly or anything, but I don't think I'm gonna do any more work on it so I thought I'd just release it in case anybody would be interested. Drop me an IM in-world if you want a copy.

Basic functionality:
It has a window that can be minimized/restored, resized and closed.
To add a widget to the HUD put it in the rezwidgets() function in the script HWTView.
Each widget is on a layer, at any one time only one layer is active/visible. Each layer corresponds to a state in the script HWTController.

Functions for adding widgets (should work unless I've screwed up something since last I tested):
HWTButton(float width, float height, float xpos, float ypos, string label, integer layer)
-Creates a button of with and heigth at xpos,ypos with label. Label will also be that button's actioncommand.
HWTLabel(float xpos, float ypos, string label, vector color, integer layer)
-Creates a text label at xpos,ypos with text label and textcolor color
HWTImage(float width, float height, float xpos, float ypos, string texture, integer layer)
-Creates an image of width, heigth at xpos,ypos with texture