Larsen,
the problem is: you have to know what you're doing, when
trying to merge two different description.ext files.
There's two seperate things when making a dialog:
The definition of the controls
(this is only required once)
and
The definition of the dialog itself - where the dialog-arrangement will be configured
(this has to be done seperately for each dialog)
e.g: class mydialog1
The whole stuff below is only required once in your description.ext file.
// Control types == NECESSARY==
#define CT_STATIC 0
#define CT_BUTTON 1
#define CT_EDIT 2
#define CT_SLIDER 3
#define CT_COMBO 4
#define CT_LISTBOX 5
#define CT_ACTIVETEXT 11
// Static styles
#define ST_HPOS 0x0F
#define ST_LEFT 0
#define ST_RIGHT 1
#define ST_CENTER 2
#define ST_UP 3
#define ST_DOWN 4
#define ST_VCENTER 5
#define ST_TYPE 0xF0
#define ST_SINGLE 0
#define ST_MULTI 16
#define ST_TITLE_BAR 32
#define ST_PICTURE 48
#define ST_FRAME 64
#define ST_BACKGROUND 80
#define ST_GROUP_BOX 96
#define ST_GROUP_BOX2 112
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE 144
#define ST_WITH_RECT 160
#define ST_LINE 176
#define ST_SHADOW 256
#define ST_NO_RECT 512
#define ST_TITLE ST_TITLE_BAR + ST_CENTER
// Predefined controls
#define IDC_OK 1
#define IDC_CANCEL 2
// Colors
#define TextColor 0.08, 0.08, 0.12
#define InvTextColor 0.35, 0.38, 0.36
// Fonts
#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"
class RscText
{
type = CT_STATIC;
idc = -1;
style = ST_LEFT;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {TextColor, 0.75};
font = FontS;
sizeEx = 0.02;
};
class FancyFont:RscText
{
type = CT_STATIC;
idc = -1;
style = ST_NO_RECT;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {TextColor, 0.75};
font = FontS;
sizeEx = 0.02;
};
class RscActiveText
{
type = CT_ACTIVETEXT;
style = ST_LEFT;
color[] = {0, 0, 0, 1};
colorActive[] = {1, 1, 1, 1};
font = FontMAIN;
sizeEx = 0.05;
soundEnter[] = {"ui\ui_over", 0.2, 1};
soundPush[] = {, 0.2, 1};
soundClick[] = {"ui\ui_ok", 0.2, 1};
soundEscape[] = {"ui\ui_cc", 0.2, 1};
default = false;
};
class RscActiveMenu : RscActiveText
{
color[] = {1, 1, 1, 1};
colorActive[] = {1, 0, 0, 1};
font = FontTITLEHalf;
sizeEx = 0.05;
default = false;
};
class RscButton
{
type = CT_BUTTON;
idc = -1;
style = ST_CENTER;
colorText[] = {0, 0, 0, 1};
font = FontHTML;
sizeEx = 0.025;
soundPush[] = {, 0.2, 1};
soundClick[] = {"ui\ui_ok", 0.2, 1};
soundEscape[] = {"ui\ui_cc", 0.2, 1};
default = true;
};
class RscObject
{
type = CT_OBJECT;
scale = 1.0;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
};
class RscObjNotebookListBox
{
type = CT_3DLISTBOX;
style = 0;
selection = "display";
angle = 0;
size = 0.8; // 3D size
colorSelect[] = {0, 1, 0, 1};
colorSelectBackground[] = {0, 1, 0, 0.2};
colorText[] = {0, 1, 0, 0.5};
font = FontHTML;
};
class RscLB_C
{
style = 0;
idc = -1;
colorSelect[] = {1,1,1,1};
colorSelectBackground[] = {0,0,0,1};
colorText[] = {0,0, 0, 0.6};
colorBackground[] = {0,0,0,0};
font = FontHTML;
sizeEx = 0.025;
rowHeight = 0.04;
};
class RscListBox : RscLB_C
{
type = CT_LISTBOX;
};
class RscCombo : RscLB_C
{
type = CT_COMBO;
wholeHeight = 0.3;
};
class RscEdit
{
idc = -1;
type = 2;
font = "courierNewB64";
sizeEx = 0.02;
colorText[] = {0,0,0,1};
colorSelection[] = {0.5, 0.5, 0.5, 1};
autocomplete = false;
style = 0;
};
hope this helps
~S~ CD