Inkko
Valued Member!
recently figure out how to create dialogs and was wondering about something with them.
If I have several different dialogs, is it bad to have the same names for dialogs if they just have different text fields?
like this?
Can I use the same IDD/IDC for all of them if I'm not calling a script to change it specifically? Just a little confused about a couple things with dialogs and wanted to see if anyone could clear that up for me. I'm just using the dialogs to display some text and call them with the dialog name; createdialog "dialogname";
If I have several different dialogs, is it bad to have the same names for dialogs if they just have different text fields?
like this?
Code:
class dialog1
{
idd = 44417;
movingenable = 0;
class Controls
{
class D_Dialog_1: D_RscText
{
idc = 1001;
text = "Some Text";
x = 0.277068 * safezoneW + safezoneX;
y = 0.266021 * safezoneH + safezoneY;
w = 0.150872 * safezoneW;
h = 0.0340181 * safezoneH;
};
};
};
class dialog2
{
idd = 44418;
movingenable = 0;
class Controls
{
class D_Dialog_1: D_RscText
{
idc = 1001;
text = "Different text";
x = 0.277068 * safezoneW + safezoneX;
y = 0.266021 * safezoneH + safezoneY;
w = 0.150872 * safezoneW;
h = 0.0340181 * safezoneH;
};
};
};
Can I use the same IDD/IDC for all of them if I'm not calling a script to change it specifically? Just a little confused about a couple things with dialogs and wanted to see if anyone could clear that up for me. I'm just using the dialogs to display some text and call them with the dialog name; createdialog "dialogname";