29-08-2009, 06:40 PM
Don't use strings for your widget id's. Use numbers, maybe with constants with the equivelent names of the strings. Then just change UI to an array of types instead of a function. Seems like the easiest/fastest way to do it to me.