I hope this is a simple scripting problem.
I am creating a custom dialog and no matter what I try the Height of the options box is rendered at what seems to be an arbitary value.
The code is picking up the right dialog, and calculating the number of options and the Height correctly, but this Height and corresponding Y value are not being used.
Here is the code:
function dialog_options_get_dimensions(DialogOptionsRenderingInfo *info){
int ocount;
int oindex;
ocount=0;
oindex=1;
info.Y = 470;
info.Height = 0;
while (oindex <= info.DialogToRender.OptionCount) {
if (info.DialogToRender.GetOptionState(oindex) == eOptionOn) {
info.Y -=8;
info.Height +=8;
ocount++;
}
oindex++;
}
vDialogNo=info.DialogToRender.ID;
vOptionCount=ocount;
vDialogHeight=info.Height;
info.X = 40;
info.Width = 560;
}
Any help or advice appreciated.