When I compile I get the error
Already referenced name as import; you must define it before using it
On this line:
function CustomDialogGui::setAutosizeCorners(int upleft, int upright, int downleft, int downright)
I don't understand this error, can someone explain it to me?
Well, it's obviously specific to the CustomDialogGui module, but the function setAutosizeCorners is a member of the CustomDialogGui struct.
As for the error, I'm guessing you're using it in a module script that is above the CustomDialogGui script. You can right click modules and 'Move Up' or 'Move Down'.
Unless I'm wrong, in which case that won't help.
~Trent