When we have many buttons it is difficult to keep track of the ButtonIDs, is there a way to wrap the Gui functions so that we can assign a meaningful button name instead of a number to the functions? For example, here is the normal function:
GuiButton( “Text”, id, x, y, width , height , notifyflags ) ;
It would be nice if we could wrap the function like this:
xGuiButton( “Text”, “ButtonName”, x, y, width, height, notifyflags );
Here the xGuiButton would automatically translate the ButtonName to sequential ButtonIDs so that later in the code we can refer to the button by name.
Thanks for any ideas you may have!