//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

// Generated Help ID header file
#define APSTUDIO_HIDDEN_SYMBOLS
#include "resource.hm"
#undef APSTUDIO_HIDDEN_SYMBOLS

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Hungarian resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_HUN)
#ifdef _WIN32
LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
#pragma code_page(1250)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ANIMDIALOG DIALOG DISCARDABLE  0, 0, 420, 249
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Pick animation"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "List1",IDC_ICONRES,"SysListView32",LVS_SINGLESEL | 
                    LVS_SORTASCENDING | LVS_OWNERDATA | WS_BORDER | 
                    WS_TABSTOP,7,7,406,215
    EDITTEXT        IDC_FILTER,62,226,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Resource filter:",IDC_STATIC,7,228,48,8
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_ANIMDIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 413
        TOPMARGIN, 7
        BOTTOMMARGIN, 242
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // Hungarian resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_WEIDU DIALOGEX 0, 0, 317, 226
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Compiler options"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_FILENAME,9,17,275,16,ES_AUTOHSCROLL | ES_READONLY,
                    WS_EX_ACCEPTFILES,0x80bf03eb
    DEFPUSHBUTTON   "&P",IDC_OPENFILE,288,17,16,16,BS_BITMAP
    EDITTEXT        IDC_DECOMPILED,9,48,199,14,ES_AUTOHSCROLL
    CONTROL         "Do not emit .D header comments (NOHEADER)",IDC_FLAG1,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,9,66,166,10
    CONTROL         "Do not emit .D from: comments (NOFROM)",IDC_FLAG2,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,9,79,150,10
    CONTROL         "Do not emit ANY comments (NOCOM)",IDC_FLAG3,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,9,92,135,10
    CONTROL         "Emit string text with refs in .D comments (TEXT)",
                    IDC_FLAG4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,9,105,
                    165,10
    LTEXT           "Additional parameters",IDC_STATIC,9,119,68,8
    EDITTEXT        IDC_PARAM,9,129,199,14,ES_AUTOHSCROLL
    CONTROL         "Show log",IDC_LOG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    229,131,45,10
    EDITTEXT        IDC_COMMAND,9,162,299,38,ES_MULTILINE | ES_READONLY
    DEFPUSHBUTTON   "OK",IDOK,7,205,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,260,205,50,14
    LTEXT           "Location of the external compiler (WeiDU)",IDC_STATIC,9,
                    7,132,8
    LTEXT           "Sample command",IDC_STATIC,9,150,57,8
    LTEXT           "Subfolder in your game directory for decompiled files",
                    IDC_STATIC,9,36,164,8
    CONTROL         "Set script style",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,229,48,61,10
END

IDD_IMAGEVIEW DIALOG DISCARDABLE  160, 0, 122, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION "View image..."
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "Back",IDCANCEL,29,36,50,14
    CONTROL         "",IDC_BITMAP,"Static",SS_BITMAP | SS_NOTIFY,7,7,15,13
    SCROLLBAR       IDC_HORIZONTAL,7,7,108,11,SBS_LEFTALIGN
    SCROLLBAR       IDC_VERTICAL,105,7,10,68,SBS_BOTTOMALIGN | SBS_VERT
    PUSHBUTTON      "Set",IDOK,29,20,50,14,NOT WS_VISIBLE
    CONTROL         "Spin1",IDC_SPINY,"msctls_updown32",UDS_ARROWKEYS | NOT 
                    WS_VISIBLE,7,35,13,17
    CONTROL         "Spin2",IDC_SPINX,"msctls_updown32",UDS_ARROWKEYS | 
                    UDS_HORZ | NOT WS_VISIBLE,7,54,19,11
    CONTROL         "Show all",IDC_SHOWALL,"Button",BS_AUTOCHECKBOX | NOT 
                    WS_VISIBLE | WS_TABSTOP,23,54,43,10
    COMBOBOX        IDC_VALUE,7,68,69,171,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    NOT WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
    CONTROL         "Show grid",IDC_SHOWGRID,"Button",BS_AUTOCHECKBOX | NOT 
                    WS_VISIBLE | WS_TABSTOP,33,63,47,10
    CONTROL         "Floodfill",IDC_FILL,"Button",BS_AUTOCHECKBOX | NOT 
                    WS_VISIBLE | WS_TABSTOP,76,51,39,10
    CONTROL         "Overlay",IDC_OVERLAY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,72,60,40,10
END

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 235, 71
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About DLTC Editor Pro"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,11,17,20,20
    LTEXT           "",IDC_VERSION,40,10,119,8,SS_NOPREFIX
    LTEXT           "Copyright (C) 2002-2011 Avenger",IDC_STATIC,40,23,119,8
    DEFPUSHBUTTON   "OK",IDOK,178,7,50,14,WS_GROUP
    LTEXT           "Source: http://gemrb.sourceforge.net",IDC_STATIC,40,36,
                    119,8
    LTEXT           "Forums: http://forums.gibberlings3.net",IDC_STATIC,40,
                    49,120,8
END

IDD_CHITEM_DIALOG DIALOGEX 0, 0, 319, 274
STYLE DS_MODALFRAME | DS_3DLOOK | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "DLTCEP"
MENU IDR_MENUBAR
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    PUSHBUTTON      "Reload chitin",IDC_RESCAN,15,7,63,14
    PUSHBUTTON      "Reload game data",IDC_RESCAN2,15,24,63,14
    PUSHBUTTON      "Reload dialog",IDC_RESCAN5,15,41,63,14
    PUSHBUTTON      "Reload variables",IDC_RESCAN3,15,58,63,14
    PUSHBUTTON      "Reload effects",IDC_RESCAN4,15,75,63,14
    PUSHBUTTON      "Items",IDC_FINDITEM,89,17,45,14
    PUSHBUTTON      "Creatures",IDC_FINDCRE,89,37,45,14
    PUSHBUTTON      "Scripts",IDC_FINDSCRIPT,89,57,45,14
    PUSHBUTTON      "Areas",IDC_FINDPROJ,89,77,45,14
    PUSHBUTTON      "Spells",IDC_FINDSPELL,144,17,45,14
    PUSHBUTTON      "Stores",IDC_FINDSTORE,144,37,45,14
    PUSHBUTTON      "Dialogs",IDC_FINDDIALOG,144,57,45,14
    PUSHBUTTON      "Effects",IDC_FINDEFF,144,77,45,14
    PUSHBUTTON      "Items",IDC_CHECKITEM,199,17,45,14
    PUSHBUTTON      "Creatures",IDC_CHECKCRE,199,37,45,14
    PUSHBUTTON      "Scripts",IDC_CHECKSCRIPT,199,57,45,14
    PUSHBUTTON      "Areas",IDC_CHECKPROJ,199,77,45,14
    PUSHBUTTON      "Spells",IDC_CHECKSPELL,254,17,45,14
    PUSHBUTTON      "Stores",IDC_CHECKSTORE,254,37,45,14
    PUSHBUTTON      "Dialogs",IDC_CHECKDIALOG,254,57,45,14
    PUSHBUTTON      "Effects",IDC_CHECKEFF,254,77,45,14
    DEFPUSHBUTTON   "Setup",IDC_COMPAT,7,253,57,14
    PUSHBUTTON      "Exit",IDOK,260,253,47,14
    EDITTEXT        IDC_EVENT,13,105,295,144,ES_MULTILINE | ES_AUTOVSCROLL | 
                    ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | WS_VSCROLL,
                    0,0x80660401
    LTEXT           "Event log",IDC_EVENT_TYPE,15,95,58,8
    GROUPBOX        "Edit",IDC_STATIC,194,7,110,93,BS_FLAT
    GROUPBOX        "Search",IDC_STATIC,85,7,110,93,BS_FLAT
END

IDD_CHECK DIALOG DISCARDABLE  0, 0, 288, 286
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Check options"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Check BAM References",IDC_ICONCHK,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,8,93,10
    CONTROL         "Check Dialog References",IDC_DLGCHK,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,24,97,10
    CONTROL         "Check Item References",IDC_ITEMREF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,40,91,10
    CONTROL         "Check String References",IDC_STRREF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,56,95,10
    CONTROL         "Check Attribute Consistency",IDC_ATTR,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,72,105,10
    CONTROL         "Check Item Type",IDC_ITEMTYPE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,88,70,10
    CONTROL         "Check MUS References",IDC_MPLUS,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,104,93,10
    CONTROL         "Check Proficiency Type",IDC_WPROF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,120,91,10
    CONTROL         "Check Animation ID",IDC_ANIM,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,136,79,10
    CONTROL         "Check Usability",IDC_USABILITY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,152,65,10
    CONTROL         "Check Opcodes",IDC_FEATURE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,168,67,10
    CONTROL         "Check Variables",IDC_VARIABLES,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,184,67,10
    CONTROL         "Check Spell References",IDC_SPELLREF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,200,93,10
    CONTROL         "Check Creature References",IDC_CREREF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,216,104,10
    CONTROL         "Check Store References",IDC_STOREREF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,232,94,10
    CONTROL         "Check Stat Restrictions",IDC_STATR,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,248,90,10
    CONTROL         "Check Script References",IDC_CHECKSCRIPT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,8,95,10
    CONTROL         "Check Other Attributes",IDC_OTHER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,24,87,10
    CONTROL         "Check Extended Headers",IDC_EXTHEAD,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,40,97,10
    CONTROL         "Skip dead extended headers",IDC_SKIPEXT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,56,107,10
    CONTROL         "Warn about empty references",IDC_WARN,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,72,109,10
    CONTROL         "Check Death Variables",IDC_SKIPDVAR,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,88,89,10
    CONTROL         "Check weapon slots",IDC_SLOT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,133,104,80,10
    CONTROL         "Check duration/timing",IDC_DURATION,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,120,85,10
    CONTROL         "Scan Chitin.key",IDC_NOCHITIN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,133,136,65,10
    CONTROL         "Skip undroppable items",IDC_NOSPEC,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,152,89,10
    CONTROL         "Skip original files",IDC_SOA,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,133,168,68,10
    CONTROL         "Skip scripts (.bcs) in store check",IDC_SCRIPT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,184,118,10
    CONTROL         "Check cutscenes",IDC_NOCUT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,133,200,71,10
    CONTROL         "Warn about duplicate chitin entries",IDC_DUPLO,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,216,125,10
    CONTROL         "Don't warn about missing files in chitin.key",
                    IDC_MISSING,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,133,
                    232,148,10
    CONTROL         "Warn about structural errors",IDC_STRUCT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,248,103,10
    DEFPUSHBUTTON   "&Done",IDOK,7,265,50,14
    PUSHBUTTON      "Select All",IDC_ALLSET,81,265,50,14
    PUSHBUTTON      "Deselect All",IDC_ALLUNSET,155,265,50,14
    PUSHBUTTON      "&Cancel",IDCANCEL,229,265,50,14
END

IDD_PROGRESS DIALOGEX 50, 50, 186, 26
STYLE DS_SYSMODAL | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Please wait..."
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    CONTROL         "Progress1",IDC_PROGRESS,"msctls_progress32",PBS_SMOOTH,
                    7,7,172,12
END

IDD_FINDITEM DIALOG DISCARDABLE  0, 0, 310, 210
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Find Item"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_ITEMTYPE,7,10,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ITEMTYPE2,48,10,29,14,ES_AUTOHSCROLL
    CONTROL         "Match item type",IDC_MTYPE,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,12,60,10
    EDITTEXT        IDC_EFFECT,7,30,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_EFFECT2,48,30,29,14,ES_AUTOHSCROLL
    CONTROL         "Match opcode",IDC_MFEAT,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,32,60,10
    EDITTEXT        IDC_PROJ,7,50,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PROJ2,48,50,29,14,ES_AUTOHSCROLL
    CONTROL         "Match projectile",IDC_MPROJ,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,52,60,10
    EDITTEXT        IDC_RESOURCE,7,70,69,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "Match resource",IDC_MRES,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,72,60,10
    EDITTEXT        IDC_ITEMNAME,7,90,69,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "Match item",IDC_MITEM,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,92,60,10
    EDITTEXT        IDC_VARIABLE,7,110,69,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "Match variable",IDC_MVAR,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,84,112,60,10
    CONTROL         "Replace",IDC_REPLACE,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,130,138,10
    COMBOBOX        IDC_CHANGE,7,146,138,85,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_NEWVALUE,90,167,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NEWRESOURCE,89,167,55,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    EDITTEXT        IDC_EA,162,10,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_EA2,201,10,29,14,ES_AUTOHSCROLL
    CONTROL         "Match EA",IDC_MEA,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,12,60,10
    EDITTEXT        IDC_GENERAL,162,30,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_GENERAL2,201,30,29,14,ES_AUTOHSCROLL
    CONTROL         "Match General",IDC_MGENERAL,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,33,60,10
    EDITTEXT        IDC_RACE,162,50,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RACE2,201,50,29,14,ES_AUTOHSCROLL
    CONTROL         "Match Race",IDC_MRACE,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,52,60,10
    EDITTEXT        IDC_CLASS,162,70,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CLASS2,201,70,29,14,ES_AUTOHSCROLL
    CONTROL         "Match Class",IDC_MCLASS,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,72,60,10
    EDITTEXT        IDC_SPECIFIC,162,90,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SPECIFIC2,201,90,29,14,ES_AUTOHSCROLL
    CONTROL         "Match Specific",IDC_MSPECIFIC,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,92,60,10
    EDITTEXT        IDC_GENDER,162,110,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_GENDER2,201,110,29,14,ES_AUTOHSCROLL
    CONTROL         "Match Gender",IDC_MGENDER,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,112,60,10
    EDITTEXT        IDC_ALIGN,162,130,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ALIGN2,201,130,29,14,ES_AUTOHSCROLL
    CONTROL         "Match Alignment",IDC_MALIGN,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,132,60,10
    EDITTEXT        IDC_STRREF,162,150,69,14,ES_AUTOHSCROLL
    CONTROL         "Match Strref",IDC_MSTRREF,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,239,153,60,10
    DEFPUSHBUTTON   "&Search",IDOK,53,189,50,14
    PUSHBUTTON      "&Back",IDCANCEL,189,189,50,14
    LTEXT           "-",IDC_STATIC,39,13,8,8
    LTEXT           "-",IDC_STATIC,39,53,8,8
    LTEXT           "-",IDC_STATIC,39,33,8,8
    LTEXT           "-",IDC_STATIC,194,13,8,8
    LTEXT           "-",IDC_STATIC,194,53,8,8
    LTEXT           "-",IDC_STATIC,194,33,8,8
    LTEXT           "-",IDC_STATIC,194,74,8,8
    LTEXT           "-",IDC_STATIC,194,114,8,8
    LTEXT           "-",IDC_STATIC,194,94,8,8
    LTEXT           "-",IDC_STATIC,194,133,8,8
    LTEXT           "value to replace with",IDC_STATIC,16,170,66,8
END

IDD_ITEMEDIT DIALOGEX 0, 0, 410, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Item:"
MENU IDR_ITEM
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Load Item",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load external item",IDC_LOADEX,80,229,62,14
    PUSHBUTTON      "Save Item As...",IDC_SAVEAS,165,229,50,14
    PUSHBUTTON      "New Item",IDC_NEW,238,229,41,14
    PUSHBUTTON      "Check Item",IDC_CHECK,302,229,41,14
    PUSHBUTTON      "E&xit",IDCANCEL,366,229,37,14
END

IDD_ITEMGENERAL DIALOGEX 0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "General properties"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_PRICE,7,20,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_WEIGHT,7,57,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_STACK,7,91,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_LORE,7,125,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MAGICLEVEL,7,159,40,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_ITEMTYPE,55,20,114,171,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_PROFICIENCY,55,57,114,134,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_ANIMATION,55,91,114,100,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_X25,81,138,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_X27,112,138,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_X33,143,138,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINLEVEL,225,43,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINSTR,225,64,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINSTRBONUS,274,64,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MININT,225,85,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINDEX,225,106,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINWIS,225,127,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINCON,225,148,19,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MINCHA,225,169,19,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",IDC_ITMCOLOR,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN,370,6,19,17,WS_EX_DLGMODALFRAME
    EDITTEXT        IDC_COLOR,304,27,85,14,ES_AUTOHSCROLL
    CONTROL         "V1",IDC_V1,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE | 
                    WS_GROUP | WS_TABSTOP,349,148,31,10
    CONTROL         "V1.1",IDC_V11,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    349,161,31,10
    CONTROL         "V2.0",IDC_V20,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    349,174,31,10
    LTEXT           "Price",IDC_STATIC,7,6,17,8
    LTEXT           "Weight",IDC_STATIC,7,45,24,8
    LTEXT           "Proficiency",IDC_STATIC,55,45,36,8
    LTEXT           "Paperdoll animation ID",IDC_STATIC,55,78,72,8
    LTEXT           "ItemType",IDC_STATIC,55,6,30,8
    LTEXT           "Stack",IDC_STATIC,7,78,20,8
    LTEXT           "Lore to ID",IDC_STATIC,7,111,32,8
    LTEXT           "Magic Level",IDC_STATIC,7,144,40,10
    LTEXT           "Level",IDC_STATIC,180,46,18,8
    LTEXT           "Strength",IDC_STATIC,180,67,28,8
    LTEXT           "Intelligence",IDC_STATIC,180,88,37,8
    LTEXT           "/",IDC_STATIC,255,67,8,8
    LTEXT           "Dexterity",IDC_STATIC,180,109,28,8
    LTEXT           "Wisdom",IDC_STATIC,180,130,26,8
    LTEXT           "Constitution",IDC_STATIC,180,151,38,8
    LTEXT           "Charisma",IDC_STATIC,180,172,30,8
    LTEXT           "0x25       0x27       0x33",IDC_STATIC,81,124,75,8
    LTEXT           "BG/IWD1",IDC_STATIC,308,148,33,8
    LTEXT           "PST",IDC_STATIC,326,161,15,8
    LTEXT           "IWD2",IDC_STATIC,321,174,20,8
    GROUPBOX        "Item version",IDC_STATIC,298,139,93,51,BS_FLAT
    GROUPBOX        "Stat restrictions",IDC_STATIC,173,4,126,186,BS_FLAT
    LTEXT           "Level restriction is usable only with empty animation ID",
                    IDC_STATIC,251,16,46,41
    GROUPBOX        "Unknowns",IDC_STATIC,70,106,104,84,BS_FLAT
    LTEXT           "Item Color (PST)",IDC_STATIC,304,14,52,8
END

IDD_ITEMICONS DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Icons && item attributes"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_ITEMINVICON,7,15,50,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,7,33,43,14
    PUSHBUTTON      "Center BAM",IDC_ICENTER,61,15,43,14
    EDITTEXT        IDC_ITEMGRNDICON,7,63,50,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,7,81,43,14
    PUSHBUTTON      "Center BAM",IDC_GCENTER,61,63,43,14
    EDITTEXT        IDC_ITEMDESCICON,7,111,50,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,7,129,43,14
    PUSHBUTTON      "Center BAM",IDC_DCENTER,61,111,43,14
    EDITTEXT        IDC_USEDUP,7,159,50,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Play Sound",IDC_PLAYSOUND,60,159,43,14,NOT WS_VISIBLE
    CONTROL         "Unsellable (critical item)",IDC_CRITICAL,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,213,7,89,10
    CONTROL         "Two handed",IDC_TWOHAND,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,213,22,56,10
    CONTROL         "Movable",IDC_MOVABLE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,213,39,43,10
    CONTROL         "Displayable in shop",IDC_DISPLAYABLE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,213,54,77,10
    CONTROL         "Cursed",IDC_CURSED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,213,70,38,10
    CONTROL         "??? (always set)",IDC_COPYABLE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,213,85,67,10
    CONTROL         "Magical",IDC_MAGICAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,213,99,41,10
    CONTROL         "Bow",IDC_BOW,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,213,
                    115,30,10
    CONTROL         "Silver",IDC_SILVER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,307,7,33,10
    CONTROL         "Cold Iron",IDC_COLD,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,307,22,44,10
    CONTROL         "Lefthanded (buggy)",IDC_STOLEN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,307,39,77,10
    CONTROL         "Conversible",IDC_CONVERSIBLE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,307,54,53,10
    CONTROL         "Pulsating (PST)",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,307,70,65,10
    CONTROL         "???",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    307,85,28,10
    CONTROL         "???",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    307,99,28,10
    CONTROL         "???",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    307,115,28,10
    EDITTEXT        IDC_CONV,213,143,65,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CONVREF,282,143,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DIALOG,214,171,50,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "Cannot equip simultaneously with the same kind (itemexcl)",
                    IDC_ITEMEXCL,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | 
                    WS_TABSTOP,307,162,86,29
    EDITTEXT        IDC_FLAGS,319,143,40,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_INVICON1,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN,113,7,15,14
    CONTROL         "",IDC_INVICON2,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN,143,7,15,13
    CONTROL         "",IDC_GRNDICON,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN,113,49,15,13
    CONTROL         "",IDC_DESCICON1,"Static",SS_BITMAP | SS_NOTIFY,103,127,
                    15,13
    LTEXT           "Inventory:",IDC_STATIC,7,3,32,8
    LTEXT           "Ground:",IDC_STATIC,7,51,26,8
    LTEXT           "Description:",IDC_DESCICON,7,99,38,8
    LTEXT           "Destructed item",IDC_DESTRUCTED,7,147,50,8
    LTEXT           "Unknown attributes",IDC_STATIC,320,130,62,8
    LTEXT           "Conversation label",IDC_STATIC,213,130,59,8
    CONTROL         "",IDC_DESCICON2,"Static",SS_BITMAP | SS_NOTIFY,173,127,
                    15,13
    CONTROL         "",IDC_DESCICON3,"Static",SS_BITMAP | SS_NOTIFY,101,150,
                    15,13
    CONTROL         "",IDC_DESCICON4,"Static",SS_BITMAP | SS_NOTIFY,173,150,
                    15,13
    LTEXT           "Dialog",IDC_STATIC,214,158,21,8
    PUSHBUTTON      "Browse",IDC_BROWSE4,7,177,43,14
    PUSHBUTTON      "Browse",IDC_BROWSE,267,171,35,14
END

IDD_ITEMEQUIP DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Equipping Effects"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_EQUIPNUM,7,21,340,169,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Remove",IDC_EQUIPREMOVE,358,21,35,14
    PUSHBUTTON      "Add",IDC_EQUIPADD,358,45,35,14
    PUSHBUTTON      "Edit",IDC_EDIT,358,69,35,14
    PUSHBUTTON      "Copy",IDC_EQUIPCOPY,358,93,35,14
    PUSHBUTTON      "Paste",IDC_EQUIPPASTE,358,117,35,14
    LTEXT           "Pick equipping effect:",IDC_STATIC,7,9,70,8
END

IDD_ITEMEFFECT DIALOG DISCARDABLE  0, 0, 400, 199
STYLE DS_SYSMODAL | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Extended Effects"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_EXTHEADNUM,68,14,32,126,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_EXTUSEICON,133,14,51,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    CONTROL         "",IDC_USEICON,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN | WS_BORDER,194,14,16,14
    PUSHBUTTON      "Remove",IDC_EXTREMOVE,238,14,35,14
    PUSHBUTTON      "Add",IDC_EXTADD,278,14,35,14
    PUSHBUTTON      "Copy",IDC_EXTCOPY,318,14,35,14
    PUSHBUTTON      "Paste",IDC_EXTPASTE,358,14,35,14
    COMBOBOX        IDC_EXTTYPE,7,42,57,103,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_LOC,66,42,55,105,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_TARGETNUM,123,42,17,12,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_TARGET,142,42,73,105,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_PROJFRAME,217,42,73,105,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_RANGE,292,43,30,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_SPEED,324,43,30,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_UNKNOWN1,356,43,30,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_THAC0,7,68,40,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_ROLL,50,68,18,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_DIE,82,68,18,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_ADD,112,68,17,12,ES_AUTOHSCROLL
    COMBOBOX        IDC_DAMAGETYPE,136,68,99,107,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SCHOOL,237,68,74,123,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SECTYPE,315,68,78,123,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_IDENTIFY,37,89,30,12,ES_AUTOHSCROLL
    CONTROL         "Need ID",IDC_ID,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    77,89,43,10
    CONTROL         "Mustn't ID",IDC_NOID,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,122,89,48,10
    EDITTEXT        IDC_FLAGS,261,89,43,12,ES_AUTOHSCROLL
    CONTROL         "Use strength",IDC_STRBONUS,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,315,83,56,10
    CONTROL         "Breakable",IDC_BREAKABLE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,315,95,48,10
    CONTROL         "Hostile",IDC_HOSTILE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,262,107,37,10
    CONTROL         "Recharges",IDC_RECHARGES,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,262,119,51,10
    CONTROL         "Ignore shield (IWD2)",IDC_FLAG1,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,315,107,81,10
    CONTROL         "Keen (IWD2)",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,315,119,57,9
    EDITTEXT        IDC_TOOLTIPTEXT,7,116,93,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_TOOLTIPREF,106,116,39,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_CHARGES,149,115,30,12,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_PERDAY,183,115,77,123,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Bow",IDC_BOW,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    132,30,10
    CONTROL         "Xbow",IDC_XBOW,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    142,34,10
    CONTROL         "Sling",IDC_MISC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    152,31,10
    COMBOBOX        IDC_MELEE,44,142,109,69,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_ANIM1,162,142,30,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_ANIM2,201,142,30,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_ANIM3,240,142,30,12,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_PROJID,279,142,114,137,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_EXTEFFNUM,44,162,319,121,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "d",IDC_STATIC,71,69,8,8
    LTEXT           "/",IDC_STATIC,368,163,8,8
    PUSHBUTTON      "Edit",IDC_EDIT,183,177,35,14
    PUSHBUTTON      "Remove",IDC_EXTEFFREMOVE,226,177,35,14
    PUSHBUTTON      "Add",IDC_EXTEFFADD,269,177,35,14
    PUSHBUTTON      "Copy",IDC_EXTEFFCOPY,312,177,35,14
    PUSHBUTTON      "Paste",IDC_EXTEFFPASTE,355,177,35,14
    LTEXT           "Extended header:",IDC_STATIC,7,16,57,8
    LTEXT           "Effect #",IDC_STATIC,7,164,26,8
    LTEXT           "Tooltip:",IDC_STATIC,7,105,24,8
    LTEXT           "Attack type:",IDC_STATIC,7,31,39,8
    LTEXT           "Use location:",IDC_STATIC,66,31,42,8
    LTEXT           "ID flags",IDC_STATIC,7,89,25,8
    LTEXT           "Speed",IDC_STATIC,324,32,22,8
    LTEXT           "Range",IDC_STATIC,292,32,22,8
    LTEXT           "Target number && type",IDC_STATIC,123,31,68,8
    LTEXT           "Projectile type",IDC_STATIC,217,31,45,8
    LTEXT           "+",IDC_STATIC,104,69,8,8
    LTEXT           "Damage rolls",IDC_STATIC,57,58,42,8
    LTEXT           "Thac0 +",IDC_STATIC,7,58,28,8
    LTEXT           "Damage type",IDC_STATIC,136,58,43,8
    LTEXT           "00",IDC_EFFNUM,377,163,9,8
    LTEXT           "/",IDC_STATIC,103,16,8,8
    LTEXT           "0",IDC_HEADNUM,113,16,8,8
    LTEXT           "Charges",IDC_STATIC,149,105,27,8
    LTEXT           "Melee animation:",IDC_STATIC,44,132,54,8
    LTEXT           "Projectile animation:",IDC_STATIC,279,132,64,8
    LTEXT           "0x3",IDC_STATIC,356,32,12,8
    LTEXT           "Tooltip strref",IDC_STATIC,106,105,40,8
    LTEXT           "Charge removal",IDC_STATIC,183,105,50,8
    LTEXT           "Use icon",IDC_STATIC,134,4,29,8
    LTEXT           "Overhand",IDC_STATIC,162,132,32,8
    LTEXT           "Backhand",IDC_STATIC,201,132,34,8
    LTEXT           "Thrust",IDC_STATIC,240,132,21,8
    LTEXT           "Functional flags",IDC_STATIC,204,89,52,8
    LTEXT           "School",IDC_STATIC,240,58,23,8
    LTEXT           "Secondary type",IDC_STATIC,315,58,50,8
END

IDD_ITEMPICKER DIALOG DISCARDABLE  0, 0, 160, 217
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Pick Item"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_PICK,7,7,146,153,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
                    LBS_WANTKEYBOARDINPUT | LBS_DISABLENOSCROLL | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_TEXT,7,164,89,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Search next",IDC_SEARCH,103,164,50,14
    CONTROL         "Resolve names",IDC_RESOLVE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,183,65,10
    CONTROL         "Preview",IDC_PREVIEW,"Button",BS_AUTOCHECKBOX | NOT 
                    WS_VISIBLE | WS_TABSTOP,103,183,41,10
    DEFPUSHBUTTON   "OK",IDOK,7,196,60,14
    PUSHBUTTON      "Cancel",IDCANCEL,88,196,65,14
    PUSHBUTTON      "Play sound",IDC_PLAY,103,181,50,14,NOT WS_VISIBLE
    PUSHBUTTON      "Large list",IDC_ANIMLIST,7,182,60,14,NOT WS_VISIBLE
END

IDD_EXTRACT DIALOG DISCARDABLE  0, 0, 184, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Extracting from bifs"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_BIFNAME,7,18,168,136,CBS_DROPDOWNLIST | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_FILEMASK,7,54,52,14,ES_UPPERCASE | ES_AUTOHSCROLL
    COMBOBOX        IDC_FILETYPE,76,55,35,121,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Overwrite files",IDC_OVERRIDE,"Button",BS_AUTOCHECKBOX | 
                    BS_MULTILINE | WS_TABSTOP,122,51,47,22
    DEFPUSHBUTTON   "Extract",IDOK,8,77,50,14
    PUSHBUTTON      "Back",IDCANCEL,126,77,50,14
    LTEXT           "Filemask",IDC_STATIC,7,41,28,8
    LTEXT           "Filetype",IDC_STATIC,76,41,25,8
    LTEXT           "Bif",IDC_STATIC,7,6,9,8
END

IDD_VVCEDIT DIALOGEX 0, 0, 400, 239
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Video Cell:"
MENU IDR_VVC
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_BAM,7,18,63,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,76,18,28,14
    EDITTEXT        IDC_FLAG1,7,49,19,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG2,33,49,19,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG3,59,49,19,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG4,85,49,19,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SEQ1,7,80,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SEQ2,42,80,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DURATION,78,80,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FRAMERATE,7,109,29,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_SEQUENCING,42,109,45,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_XCO,7,136,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YCO,42,136,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ZCO,78,136,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUND1,7,165,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,51,165,28,14
    PUSHBUTTON      "Play",IDC_PLAY1,81,165,28,14
    EDITTEXT        IDC_SOUND2,7,194,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,51,194,28,14
    PUSHBUTTON      "Play",IDC_PLAY2,81,194,28,14
    CONTROL         "Translucent",IDC_TRANSPARENT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,15,53,10
    CONTROL         "Blend",IDC_BRIGHTEST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,28,34,10
    CONTROL         "Greyscale",IDC_GREY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,182,41,47,10
    CONTROL         "Brighten",IDC_GLOW,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,182,54,42,10
    CONTROL         "Desaturate",IDC_RED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,182,67,51,10
    CONTROL         "Looping",IDC_LOOP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    118,97,41,10
    EDITTEXT        IDC_UNKNOWN10,241,25,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN14,294,25,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN1C,347,25,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN24,241,53,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN30,294,53,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN38,347,53,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN3C,241,81,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN40,294,81,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN44,347,81,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN48,241,109,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN50,294,109,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN54,347,109,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN58,241,137,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN60,294,137,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN64,347,137,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN70,241,165,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN74,294,165,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN88,347,165,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Edit Unknowns",IDC_UNKNOWN,343,194,50,14
    DEFPUSHBUTTON   "Load VVC",IDC_LOAD,8,218,50,14
    PUSHBUTTON      "Load external VVC",IDC_LOADEX,71,218,64,14
    PUSHBUTTON      "Save VVC As...",IDC_SAVEAS,148,218,54,14
    PUSHBUTTON      "New VVC",IDC_NEW,215,218,50,14
    PUSHBUTTON      "Check VVC",IDC_CHECK,278,218,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,341,218,50,14
    LTEXT           "BAM resource",IDC_STATIC,7,7,46,8
    LTEXT           "0x10",IDC_STATIC,241,14,16,8
    LTEXT           "Transparency flags",IDC_STATIC,7,38,61,8
    LTEXT           "0x1c",IDC_STATIC,347,14,16,8
    LTEXT           "Framerate",IDC_STATIC,7,98,32,8
    LTEXT           "Face target",IDC_STATIC,347,42,37,8
    LTEXT           "0x3c",IDC_STATIC,241,70,16,8
    LTEXT           "Position?",IDC_STATIC,294,70,30,8
    LTEXT           "Cycle?",IDC_STATIC,347,70,22,8
    LTEXT           "0x48",IDC_STATIC,241,98,16,8
    LTEXT           "X",IDC_STATIC,8,125,8,8
    LTEXT           "Y",IDC_STATIC,42,125,8,8
    LTEXT           "Z",IDC_STATIC,78,125,8,8
    LTEXT           "Sound1 resref",IDC_STATIC,7,154,45,8
    LTEXT           "Sound2 resref",IDC_STATIC,7,183,46,8
    LTEXT           "0x24",IDC_STATIC,241,42,16,8
    LTEXT           "Redraw?",IDC_STATIC,294,43,30,8
    LTEXT           "1. seq.",IDC_STATIC,7,69,22,8
    LTEXT           "2. seq.",IDC_STATIC,42,69,22,8
    GROUPBOX        "Unknowns",IDC_STATIC,235,3,157,208,BS_FLAT,WS_EX_RIGHT
    LTEXT           "0x54",IDC_STATIC,347,98,16,8
    LTEXT           "0x50",IDC_STATIC,294,98,16,8
    LTEXT           "Duration",IDC_STATIC,78,69,28,8
    LTEXT           "0x60",IDC_STATIC,294,126,16,8
    LTEXT           "0x70",IDC_STATIC,241,154,16,8
    LTEXT           "0x58",IDC_STATIC,241,126,16,8
    LTEXT           "0x64",IDC_STATIC,347,126,16,8
    LTEXT           "Sequence flags",IDC_STATIC,42,98,50,8
    GROUPBOX        "Transparency flags",IDC_STATIC,111,3,125,86,BS_FLAT
    GROUPBOX        "Sequence flags",IDC_STATIC,111,84,63,95,BS_FLAT
    LTEXT           "0x14",IDC_STATIC,294,14,16,8
    LTEXT           "0x74",IDC_STATIC,294,154,16,8
    LTEXT           "0x88",IDC_STATIC,347,154,16,8
    CONTROL         "Circle",IDC_POS1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    182,97,33,10
    CONTROL         "Relative",IDC_POS2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,182,110,42,10
    GROUPBOX        "Position flags",IDC_STATIC,173,84,63,95,BS_FLAT
    CONTROL         "Use BAM",IDC_USEBAM,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,136,46,10
    CONTROL         "SEQ2",IDC_U2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,118,
                    110,35,10
    CONTROL         "SEQ4",IDC_U3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,118,
                    123,35,10
    CONTROL         "Mirror Y",IDC_MIRROR,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,41,40,10
    CONTROL         "Mirror X",IDC_MIRROR2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,54,40,10
    CONTROL         "Darken",IDC_BLEND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    182,15,39,10
    EDITTEXT        IDC_UNKNOWN90,122,193,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN94,294,193,40,14,ES_AUTOHSCROLL
    LTEXT           "0x8c",IDC_STATIC,241,182,16,8
    LTEXT           "0x94",IDC_STATIC,294,182,16,8
    LTEXT           "3. seq.",IDC_STATIC,122,183,22,8
    EDITTEXT        IDC_UNKNOWN8C,241,193,40,14,ES_AUTOHSCROLL
    CONTROL         "Covers walls",IDC_WALL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,118,149,55,10
    CONTROL         "Tint",IDC_TINT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    182,28,28,10
END

IDD_CFB DIALOGEX 0, 0, 324, 236
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Add CFB"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_OUTFOLDER,15,22,253,16,ES_AUTOHSCROLL
    PUSHBUTTON      "",IDC_OUTPUT,281,22,15,14,BS_BITMAP
    EDITTEXT        IDC_FILENAME,15,55,253,16,ES_AUTOHSCROLL | ES_READONLY,
                    WS_EX_ACCEPTFILES,HIDC_FILENAME
    DEFPUSHBUTTON   "&Start",IDC_OPENFILE,274,55,35,16
    EDITTEXT        IDC_EVENT,14,87,295,123,ES_MULTILINE | ES_AUTOVSCROLL | 
                    ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | WS_VSCROLL,
                    0,HIDC_EVENT
    PUSHBUTTON      "&Back",IDCANCEL,133,215,50,14
    LTEXT           "Location of the CFB file (raw binary file of features)",
                    IDC_STATIC,15,43,187,8
    LTEXT           "Event log",IDC_EVENT_TYPE,15,74,58,8
    LTEXT           "Output folder",IDC_STATIC,15,9,42,8
END

IDD_STOREEDIT DIALOG DISCARDABLE  0, 0, 370, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Store:"
MENU IDR_STORE
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Load Store",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load External Store",IDC_LOADEX,70,229,65,14
    PUSHBUTTON      "Save Store As",IDC_SAVEAS,148,229,50,14
    PUSHBUTTON      "New Store",IDC_NEW,211,229,38,14
    PUSHBUTTON      "Check Store",IDC_CHECK,262,229,44,14
    PUSHBUTTON      "E&xit",IDCANCEL,319,229,44,14
END

IDD_STOREGENERAL DIALOGEX 0, 0, 360, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "General properties"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_STORENAMEREF,115,8,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STORENAME,7,26,215,14,ES_AUTOHSCROLL
    CONTROL         "Tagged",IDC_TAGGED,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,181,10,41,10
    COMBOBOX        IDC_STORETYPE,240,20,113,172,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Buys",IDC_SELLING,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
                    WS_TABSTOP,22,53,31,10,WS_EX_RIGHT
    CONTROL         "Sells",IDC_BUYING,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    22,71,31,10,WS_EX_RIGHT
    CONTROL         "Identifies",IDC_IDENTIFY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,89,44,10,WS_EX_RIGHT
    CONTROL         "Stealable",IDC_STEALING,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,107,45,10,WS_EX_RIGHT
    CONTROL         "Spells",IDC_CURES,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    18,143,35,10,WS_EX_RIGHT
    CONTROL         "Donate ?",IDC_DONATE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,8,125,45,10,WS_EX_RIGHT
    CONTROL         "Drinks",IDC_DRINKS,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,17,161,36,10,WS_EX_RIGHT
    CONTROL         "Bit 7",IDC_UNKNOWN1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,23,179,30,10,WS_EX_RIGHT
    EDITTEXT        IDC_BUYINGPERCENT,125,50,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SELLINGPERCENT,125,68,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LORE,125,86,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STEALPERCENT,125,104,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ICONRES,125,122,54,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,181,122,28,14
    EDITTEXT        IDC_DIALOGRES,125,140,54,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,181,158,28,14
    EDITTEXT        IDC_RUMOURRES,125,158,54,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,181,140,28,14
    EDITTEXT        IDC_PRICECHANGE,215,50,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CAPACITY,215,68,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_IDPRICE,215,86,40,14,ES_AUTOHSCROLL
    CONTROL         "Bit 8",IDC_UNKNOWN2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,53,30,10,WS_EX_RIGHT
    CONTROL         "Quality 1",IDC_FENCED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,266,71,43,10,WS_EX_RIGHT
    CONTROL         "Quality 2",IDC_UNKNOWN3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,266,89,43,10,WS_EX_RIGHT
    CONTROL         "Bit 11",IDC_UNKNOWN4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,275,107,34,10,WS_EX_RIGHT
    CONTROL         "Fence",IDC_UNKNOWN5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,317,53,36,10,WS_EX_RIGHT
    CONTROL         "Bit 13",IDC_UNKNOWN6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,319,71,34,10,WS_EX_RIGHT
    CONTROL         "Bit 14",IDC_UNKNOWN7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,319,89,34,10,WS_EX_RIGHT
    CONTROL         "Bit 15",IDC_UNKNOWN8,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,319,107,34,10,WS_EX_RIGHT
    CONTROL         "V1.0",IDC_V10,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    314,153,31,10
    CONTROL         "V1.1",IDC_V11,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    314,165,31,10
    CONTROL         "V9.0",IDC_V90,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    314,177,31,10
    LTEXT           "Store name (reference && tlk entry)",IDC_STATIC,7,11,
                    106,8
    LTEXT           "Store type",IDC_STATIC,240,7,33,8
    LTEXT           "Selling markup %",IDC_STATIC,64,71,54,8
    LTEXT           "Buying markup %",IDC_STATIC,63,53,55,8
    LTEXT           "Unknown dialog",IDC_STATIC,66,143,52,8
    LTEXT           "Difficulty %",IDC_STATIC,83,107,35,8
    LTEXT           "Depreciation",IDC_STATIC,172,53,41,8
    LTEXT           "Identify %",IDC_STATIC,87,89,31,8
    LTEXT           "ID price",IDC_STATIC,187,89,26,8
    LTEXT           "Tavern rumours",IDC_STATIC,68,161,50,8
    LTEXT           "Temple rumours",IDC_STATIC,67,126,51,8
    LTEXT           "Capacity",IDC_STATIC,185,71,28,8
    GROUPBOX        "Store version",IDC_STATIC,286,142,67,50,BS_FLAT,
                    WS_EX_RIGHT
    LTEXT           "BG",IDC_STATIC,298,153,11,8
    LTEXT           "IWD",IDC_STATIC,293,177,16,8
    LTEXT           "PST",IDC_STATIC,294,165,15,8
END

IDD_STOREITEMS DIALOG DISCARDABLE  0, 0, 360, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Items"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_ALLOWEDITEMS,7,17,76,156,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_ITEMTYPE,85,17,110,155,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Remove all",IDC_REMALLITEM,199,17,47,14
    PUSHBUTTON      "Remove type",IDC_REMOVEITEM,250,17,47,14
    PUSHBUTTON      "Add type",IDC_ADDITEM,305,17,47,14
    COMBOBOX        IDC_STOREDITEMS,7,43,140,149,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Browse",IDC_BROWSE,151,43,45,14
    PUSHBUTTON      "Remove all",IDC_REMALLITEM2,199,43,47,14
    PUSHBUTTON      "Remove Item",IDC_REMOVEITEM2,250,43,47,14
    PUSHBUTTON      "Add Item",IDC_ADDITEM2,305,43,47,14
    EDITTEXT        IDC_ITEMRES,7,68,42,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_COUNT,54,69,33,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_UNLIMITED,99,69,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_USE1,117,69,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_USE2,137,69,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_USE3,157,69,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_FLAGS,178,69,34,14,ES_AUTOHSCROLL
    CONTROL         "Identified",IDC_IDENTIFIED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,215,59,45,10
    CONTROL         "Can't steal",IDC_NOSTEAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,215,70,49,10
    CONTROL         "Stolen",IDC_STOLEN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,215,81,36,10
    EDITTEXT        IDC_UNKNOWN,265,69,34,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Order Store",IDC_ORDER,305,69,47,14
    EDITTEXT        IDC_STRREF,7,104,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "New string",IDC_NEW,62,104,50,14
    EDITTEXT        IDC_SCRIPT,7,124,346,68,ES_MULTILINE | ES_AUTOHSCROLL | 
                    WS_VSCROLL
    LTEXT           "Allowed Items",IDC_STATIC,7,6,44,8
    LTEXT           "Stored Items",IDC_STATIC,7,33,40,8
    LTEXT           "Stock",IDC_STATIC,54,59,20,8
    LTEXT           "Unlimited",IDC_STATIC,85,59,30,8
    LTEXT           "Charges",IDC_STATIC,117,59,27,8
    LTEXT           "Attr.",IDC_STATIC,178,59,14,8
    LTEXT           "Unknown",IDC_STATIC,265,59,32,8
    LTEXT           "Select itemtype to add",IDC_STATIC,85,6,71,8
    LTEXT           "Itemname",IDC_STATIC,7,58,32,8
    LTEXT           "Item Trigger (PST)",IDC_STATIC,7,94,58,8
END

IDD_EFFEDIT DIALOG DISCARDABLE  0, 0, 410, 322
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Effect:"
MENU IDR_EFFECT
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_EFFOPCODE,7,16,225,143,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | NOT WS_VISIBLE | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_EFFTARGET,7,46,70,118,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_TIMING,80,46,90,116,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_DURATION,176,46,50,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_PAR1,7,76,70,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAR1B1,7,76,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR1B2,25,76,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR1B3,43,76,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR1B4,61,76,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    CONTROL         "Explode",IDC_EXPLODE1,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,80,79,38,10
    EDITTEXT        IDC_PROB1,120,76,23,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_PROB2,157,76,23,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_UNKNOWN,199,76,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,7,104,112,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT2,123,104,112,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAR2,7,133,70,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAR2B1,7,133,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR2B2,25,133,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR2B3,43,133,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    EDITTEXT        IDC_PAR2B4,61,133,16,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    CONTROL         "Explode",IDC_EXPLODE2,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,80,136,38,10
    EDITTEXT        IDC_ROLL2,120,133,23,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_DIE2,152,133,23,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_POWER,180,133,23,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_UNKNOWN2C,208,133,23,14,ES_AUTOHSCROLL
    CONTROL         "Undefined",IDC_PAR_UNDEFINED,"Button",
                    BS_AUTORADIOBUTTON | BS_PUSHLIKE | WS_GROUP,11,165,41,10
    CONTROL         "Colour",IDC_PAR_COLOR,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,53,165,36,10
    CONTROL         "IDS",IDC_PAR_IDS,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,90,165,28,10
    CONTROL         "Damage",IDC_PAR_DAMAGE,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,119,165,43,10
    CONTROL         "Anim",IDC_PAR_ANIM,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,163,165,31,10
    CONTROL         "Hexa",IDC_HEXADECIMAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,195,165,33,10
    COMBOBOX        IDC_SAVETYPE,7,195,153,116,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_SAVEBONUS,164,195,23,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_RESIST,195,195,114,67,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SCHOOL,314,196,88,87,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_RESOURCE,7,224,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,63,224,28,14
    PUSHBUTTON      "Play",IDC_PLAY,98,224,28,14
    EDITTEXT        IDC_VVC,133,224,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,187,224,28,14
    EDITTEXT        IDC_RESOURCE3,223,224,49,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,278,224,28,14
    COMBOBOX        IDC_SECTYPE,314,224,88,59,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_VARNAME,7,253,141,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_PAR3,151,253,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAR4,187,253,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,223,253,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,253,253,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,283,253,23,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOURCE,314,253,49,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,370,253,28,14
    EDITTEXT        IDC_POS1X,7,281,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y,54,281,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2X,108,281,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2Y,155,281,40,14,ES_AUTOHSCROLL
    DEFPUSHBUTTON   "Load Effect",IDC_LOAD,7,301,42,14
    PUSHBUTTON      "Load external Effect",IDC_LOADEX,58,301,68,14
    PUSHBUTTON      "Save Effect As...",IDC_SAVEAS,135,301,60,14
    PUSHBUTTON      "New Effect",IDC_NEW,204,301,50,14
    PUSHBUTTON      "Check Effect",IDC_CHECK,263,301,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,351,301,50,14
    EDITTEXT        IDC_DESCRIPTION,239,16,163,165,ES_MULTILINE | 
                    ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | WS_VSCROLL
    LTEXT           "d",IDC_STATIC,144,135,8,8
    LTEXT           "-",IDC_STATIC,147,79,8,8
    LTEXT           "Parameter 1",IDC_PARLABEL1,7,63,84,8
    LTEXT           "Parameter 2",IDC_PARLABEL2,7,121,84,8
    LTEXT           "Duration",IDC_DURATIONLABEL,176,33,52,8
    LTEXT           "Effect description",IDC_STATIC,236,7,56,8
    LTEXT           "Target",IDC_STATIC,7,33,22,8
    LTEXT           "Timing",IDC_STATIC,80,33,22,8
    LTEXT           "Effect opcode",IDC_STATIC,7,7,46,8
    LTEXT           "Probability",IDC_STATIC,120,63,33,8
    LTEXT           "%",IDC_STATIC,185,79,8,8
    LTEXT           "Dice type/count",IDC_TYPE,120,121,52,8
    GROUPBOX        "Parameter style",IDC_STATIC,7,153,229,27,BS_FLAT
    LTEXT           "Saving throw",IDC_STATIC,7,184,42,8
    LTEXT           "Power",IDC_STATIC,180,121,21,8
    LTEXT           "Bonus",IDC_STATIC,164,184,21,8
    LTEXT           "1. Resource",IDC_STATIC,7,212,40,8
    LTEXT           "VVC (2. resource)",IDC_STATIC,133,212,56,8
    LTEXT           "Local variable name",IDC_STATIC,7,242,64,8
    LTEXT           "Resist",IDC_STATIC,195,184,20,8
    LTEXT           "Edit TLK entry (param 1 based)",IDC_STATIC,7,93,98,8
    COMBOBOX        IDC_EFFOPCODE2,7,16,225,143,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | CBS_SORT | NOT WS_VISIBLE | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Variable?",IDC_STATIC,208,121,30,8
    LTEXT           "Timing ?",IDC_STATIC,199,63,28,8
    LTEXT           "Parameters 3 && 4",IDC_STATIC,151,242,54,8
    LTEXT           "Spell school",IDC_STATIC,314,185,39,8
    LTEXT           "Secondary type",IDC_STATIC,314,212,50,8
    LTEXT           "Source of this effect",IDC_STATIC,314,242,64,8
    LTEXT           "3. Resource",IDC_STATIC,223,213,40,8
    LTEXT           "Level",IDC_STATIC,253,241,18,8
    LTEXT           "Efftext entry (opcode based)",IDC_STATIC,123,93,90,8
    LTEXT           "Projectile",IDC_STATIC,223,241,30,8
    LTEXT           "Position",IDC_STATIC,7,271,26,8
    LTEXT           "Slot",IDC_STATIC,283,241,13,8
    LTEXT           "Target",IDC_STATIC,107,271,22,8
    EDITTEXT        IDC_MIN,223,281,23,14,ES_AUTOHSCROLL
    LTEXT           "Level limit",IDC_STATIC,223,270,32,8
    EDITTEXT        IDC_MAX,253,281,23,14,ES_AUTOHSCROLL
END

IDD_VARIABLES DIALOG DISCARDABLE  0, 0, 220, 110
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Variables"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "Save && Back",IDOK,7,89,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,163,89,50,14
    CONTROL         "Locals",IDC_VTYPE,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE | WS_GROUP | WS_TABSTOP,22,21,37,10
    CONTROL         "Global",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,22,34,37,10
    CONTROL         "Kaputz",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON | 
                    BS_PUSHLIKE,22,47,37,10
    COMBOBOX        IDC_VARPICKER,85,20,126,178,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Add",IDC_ADD,163,37,50,14
    PUSHBUTTON      "Remove",IDC_REMOVE,163,58,50,14
    EDITTEXT        IDC_VALUE,109,58,40,14,ES_AUTOHSCROLL
    GROUPBOX        "Variable type",IDC_STATIC,11,7,61,59,BS_FLAT
    LTEXT           "Variable name",IDC_STATIC,85,7,46,8
    LTEXT           "Value",IDC_STATIC,84,58,19,8
    EDITTEXT        IDC_AREA,109,37,40,14,ES_AUTOHSCROLL
    LTEXT           "Area",IDC_STATIC,87,37,16,8
END

IDD_STORERENTAL DIALOGEX 0, 0, 360, 199
STYLE WS_CHILD | WS_CAPTION
CAPTION "Rental && unknowns"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_PEASANTPRICE,8,20,40,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Peasant",IDC_PEASANT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,6,7,42,10,WS_EX_RIGHT
    EDITTEXT        IDC_MERCHANTPRICE,76,20,40,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Merchant",IDC_MERCHANT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,70,7,46,10,WS_EX_RIGHT
    EDITTEXT        IDC_NOBLEPRICE,144,20,40,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Noble",IDC_NOBLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    149,7,35,10,WS_EX_RIGHT
    EDITTEXT        IDC_ROYALPRICE,218,20,40,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Royal",IDC_ROYAL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    224,7,34,10,WS_EX_RIGHT
    EDITTEXT        IDC_UNKNOWN,279,20,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Clear Unknowns",IDC_CLEARALL,214,64,57,14
    EDITTEXT        IDC_U1,10,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U2,40,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U3,70,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U4,100,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U5,130,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U6,160,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U7,190,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U8,220,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U9,250,86,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U10,10,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U11,40,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U12,70,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U13,100,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U14,130,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U15,160,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U16,190,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U17,220,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U18,250,107,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U19,10,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U20,40,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U21,70,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U22,100,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U23,130,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U24,160,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U25,190,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U26,220,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U27,250,128,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U28,10,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U29,40,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U30,70,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U31,100,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U32,130,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U33,160,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U34,190,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U35,220,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U36,250,149,21,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "Unknowns (36 bytes)",IDC_STATIC,10,74,68,8
    LTEXT           "Rental flags",IDC_STATIC,279,7,38,8
    LTEXT           "",IDC_UBYTES,9,174,267,8
END

IDD_COMPAT DIALOGEX 0, 0, 322, 269
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Compatibility options"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    PUSHBUTTON      "Cancel",IDCANCEL,252,247,64,14
    PUSHBUTTON      "&Save && Back",IDC_SAVE,7,248,64,14
    DEFPUSHBUTTON   "&P",IDC_OPENFILE,292,51,16,16,BS_BITMAP
    EDITTEXT        IDC_FILENAME,13,51,269,16,ES_AUTOHSCROLL | ES_READONLY,
                    WS_EX_ACCEPTFILES,HIDC_FILENAME
    LTEXT           "Location of chitin.key (override folder must be in the same place)",
                    IDC_STATIC,13,40,203,8
    CONTROL         "PST style variable management (var.var)",IDC_PSTVAR,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,121,143,10
    CONTROL         "BG1 style dialogs (no freezing dialog type flag)",
                    IDC_DLG30,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,133,
                    160,10
    COMBOBOX        IDC_SETUPNAME,13,21,193,169,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Setup name",IDC_STATIC,13,11,69,8
    COMBOBOX        IDC_GAMETYPE,213,21,96,104,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Game type",IDC_STATIC,213,11,35,8
    EDITTEXT        IDC_DESCPATH,13,87,269,16,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Button1",IDC_DESCOPEN,292,87,16,16,BS_BITMAP
    LTEXT           "Location of IEEP effect descriptions (.dat file)",
                    IDC_STATIC,13,76,142,8
    CONTROL         "IWD2 style structures (additional bytes in header)",
                    IDC_IWD2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,157,
                    169,10
    CONTROL         "BG1 style area header (direction exits)",IDC_BG1AREA,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,145,135,10
    PUSHBUTTON      "&Add setup",IDC_ADD,252,217,64,14
    PUSHBUTTON      "&Remove setup",IDC_REMOVE,252,232,64,14
    COMBOBOX        IDC_LOGTYPE,260,128,48,62,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Tooltips",IDC_TOOLTIP,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,146,41,10
    CONTROL         "Progressbar",IDC_PROGRESS,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,164,53,10
    GROUPBOX        "Global preferences",IDC_STATIC,245,105,71,92,BS_FLAT
    PUSHBUTTON      "Set &check options",IDC_OPTIONS,161,213,64,14
    CONTROL         "Read only",IDC_READONLY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,182,48,10
    LTEXT           "Log type",IDC_STATIC,260,118,28,8
    CONTROL         "Extended itemtypes",IDC_UNLIMIT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,169,77,10
    CONTROL         "No compressed bams",IDC_NOZIP,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,181,84,10
    CONTROL         "No weapon proficiency",IDC_WEAPON,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,193,89,10
    CONTROL         "Has XPVAR.2DA",IDC_XPLIST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,205,71,10
    PUSHBUTTON      "Set &WeiDU options",IDC_OPTIONS2,161,247,64,14
    PUSHBUTTON      "Set &edit options",IDC_OPTIONS1,161,230,64,14
    CONTROL         "Edit both tlk's",IDC_DIALOG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,109,58,10
    CONTROL         "DLTC specific",IDC_DLTC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,217,61,10
    CONTROL         "TOB specific",IDC_TOB,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,229,57,10
    PUSHBUTTON      "&New setup",IDC_NEW,252,202,64,14
END

IDD_ITEMEXTRA DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_CAPTION
CAPTION "Extras"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_U1,25,36,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,67,36,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,109,36,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,151,36,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,25,57,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,67,57,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,109,57,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U8,151,57,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U9,25,80,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U10,67,80,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,109,80,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,151,80,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,25,101,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U14,67,101,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U15,109,101,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U16,151,101,32,14,ES_AUTOHSCROLL
    LTEXT           "IWD2 unknowns",IDC_STATIC,25,19,54,8
END

IDD_STOREEXTRA DIALOG DISCARDABLE  0, 0, 360, 199
STYLE WS_CHILD | WS_CAPTION
CAPTION "Extras"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_U1,24,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U2,54,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U3,84,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U4,115,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U5,145,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U6,175,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U7,205,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U8,235,71,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U9,24,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U10,54,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U11,84,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U12,115,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U13,145,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U14,175,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U15,205,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U16,235,93,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U17,24,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U18,54,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U19,84,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U20,115,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U21,145,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U22,175,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U23,205,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U24,235,115,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U25,24,137,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U26,54,137,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U27,84,137,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U28,115,137,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U29,145,136,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U30,175,136,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U31,205,136,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U32,235,136,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U33,24,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U34,54,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U35,84,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U36,115,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U37,145,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U38,175,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U39,205,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_U40,235,159,21,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Unknowns on second page",IDC_PAGE,"Button",
                    BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP,23,53,144,14
    PUSHBUTTON      "Clear page",IDC_CLEARALL,206,53,50,14
    LTEXT           "Bag capacity",IDC_STATIC,23,14,42,8
    EDITTEXT        IDC_CAPACITY,23,29,40,14,ES_AUTOHSCROLL
END

IDD_BAMEDIT DIALOG DISCARDABLE  0, 0, 420, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Bam"
MENU IDR_BAMMENU
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Load Bam",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load External Bam",IDC_LOADEX,75,229,65,14
    PUSHBUTTON      "Save Bam As",IDC_SAVEAS,158,229,48,14
    PUSHBUTTON      "New Bam",IDC_NEW,224,229,50,14
    PUSHBUTTON      "Check BAM",IDC_CHECK,292,229,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,360,229,53,14
    COMBOBOX        IDC_FRAME,258,11,48,101,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_XSIZE,317,21,20,14,ES_AUTOHSCROLL | ES_READONLY | 
                    ES_NUMBER | NOT WS_TABSTOP
    EDITTEXT        IDC_YSIZE,343,21,20,14,ES_AUTOHSCROLL | ES_READONLY | 
                    ES_NUMBER | NOT WS_TABSTOP
    EDITTEXT        IDC_DSIZE,370,21,40,14,ES_AUTOHSCROLL | ES_READONLY | 
                    NOT WS_TABSTOP
    PUSHBUTTON      "Drop frame",IDC_DROPFRAME,258,27,50,14
    CONTROL         "RLE",IDC_RLE,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_TABSTOP,370,39,30,10
    PUSHBUTTON      "Import frame",IDC_NEWFRAME,258,45,50,14
    EDITTEXT        IDC_XPOS,317,53,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS,343,53,20,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Center",IDC_POS,370,53,34,14
    PUSHBUTTON      "Import many",IDC_IMPORT,258,63,50,14
    COMBOBOX        IDC_CYCLE,258,95,48,63,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_CYCFRAME,320,95,48,63,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Set",IDC_SET,373,99,34,14
    PUSHBUTTON      "Drop cycle",IDC_DROPCYC,258,119,50,14
    EDITTEXT        IDC_FRAME2,320,119,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Add",IDC_ADDFRAME,373,119,34,14
    PUSHBUTTON      "Add cycle",IDC_NEWCYCLE,258,139,50,14
    PUSHBUTTON      "Play cycle",IDC_PLAY,320,139,40,14
    PUSHBUTTON      "Remove",IDC_DELFRAME,373,139,34,14
    PUSHBUTTON      "Center frames",IDC_CENTER,258,160,50,14
    COMBOBOX        IDC_SAVEORDER,317,170,96,93,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Drop unused",IDC_CLEANUP,258,180,50,14
    CONTROL         "Externally compressed",IDC_COMPRESSED,"Button",
                    BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_TABSTOP,327,187,86,10
    EDITTEXT        IDC_TRANSPARENT,258,209,40,14,ES_AUTOHSCROLL
    CONTROL         "Description BAM",IDC_BACKGROUND,"Button",
                    BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_TABSTOP,344,201,69,10
    CONTROL         "Paperdoll BAM",IDC_PAPERDOLL,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,344,214,69,10
    CONTROL         "",IDC_BAMFRAME1,"Static",SS_BITMAP,7,7,15,13
    LTEXT           "Position",IDC_STATIC,317,40,26,8
    LTEXT           "Select frame",IDC_STATIC,258,0,40,8
    LTEXT           "Select cycle",IDC_STATIC,258,84,40,8
    LTEXT           "Frames in cycle",IDC_STATIC,320,84,50,8
    CONTROL         "",IDC_BAMFRAME2,"Static",SS_BITMAP,28,7,15,13
    CONTROL         "",IDC_BAMFRAME3,"Static",SS_BITMAP,7,29,15,13
    CONTROL         "",IDC_BAMFRAME4,"Static",SS_BITMAP,27,30,15,13
    GROUPBOX        "Frame properties",IDC_STATIC,313,0,100,78,BS_FLAT
    GROUPBOX        "Cycle properties",IDC_STATIC,313,73,100,86,BS_FLAT
    LTEXT           "Data size",IDC_STATIC,370,11,30,8
    LTEXT           "Save order",IDC_STATIC,317,160,36,8
    LTEXT           "Width",IDC_STATIC,317,11,20,8
    LTEXT           "Height",IDC_STATIC,343,11,22,8
    LTEXT           "Frame #",IDC_STATIC,320,110,27,8
    LTEXT           "Transparent index",IDC_STATIC,258,196,58,8
    CONTROL         "Zoom",IDC_ZOOM,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    306,214,34,10
END

IDD_PALETTE DIALOGEX 0, 0, 318, 212
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Palette"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    CONTROL         "",IDC_PALETTE,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN | WS_BORDER,23,24,17,15,0,HIDC_PALETTE
    EDITTEXT        IDC_IDX,249,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BLUE,249,35,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BLUE2,276,35,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_GREEN,249,54,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_GREEN2,276,54,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RED,249,73,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RED2,276,73,22,14,ES_AUTOHSCROLL
    PUSHBUTTON      "All",IDC_ALL,225,102,20,14
    EDITTEXT        IDC_FROM,249,102,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TO,276,102,22,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Scale colours",IDC_SMOOTH,248,121,50,14
    COMBOBOX        IDC_FUNCTION,225,148,86,60,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Swap",IDC_SWAP,225,164,20,14
    PUSHBUTTON      "Modify RGB",IDC_RGB,248,164,50,14
    CONTROL         "Keep gray",IDC_KEEPGRAY,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,250,183,48,10
    DEFPUSHBUTTON   "OK",IDOK,75,191,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,189,191,50,14
    LTEXT           "1",IDC_STATIC,13,35,8,8
    LTEXT           "2",IDC_STATIC,13,45,8,8
    LTEXT           "3",IDC_STATIC,13,55,8,8
    LTEXT           "4",IDC_STATIC,13,65,8,8
    LTEXT           "5",IDC_STATIC,13,75,8,8
    LTEXT           "6",IDC_STATIC,13,85,8,8
    LTEXT           "7",IDC_STATIC,13,95,8,8
    LTEXT           "8",IDC_STATIC,13,105,8,8
    LTEXT           "9",IDC_STATIC,13,115,8,8
    LTEXT           "A",IDC_STATIC,13,125,8,8
    LTEXT           "B",IDC_STATIC,13,135,8,8
    LTEXT           "C",IDC_STATIC,13,145,8,8
    LTEXT           "D",IDC_STATIC,13,155,8,8
    LTEXT           "E",IDC_STATIC,13,165,8,8
    LTEXT           "F",IDC_STATIC,13,175,8,8
    LTEXT           "0",IDC_STATIC,13,25,8,8
    LTEXT           "1",IDC_STATIC,36,13,8,8
    LTEXT           "2",IDC_STATIC,47,13,8,8
    LTEXT           "3",IDC_STATIC,58,13,8,8
    LTEXT           "4",IDC_STATIC,69,13,8,8
    LTEXT           "5",IDC_STATIC,80,13,8,8
    LTEXT           "6",IDC_STATIC,91,13,8,8
    LTEXT           "7",IDC_STATIC,102,13,8,8
    LTEXT           "8",IDC_STATIC,113,13,8,8
    LTEXT           "9",IDC_STATIC,124,13,8,8
    LTEXT           "A",IDC_STATIC,135,13,8,8
    LTEXT           "B",IDC_STATIC,146,13,8,8
    LTEXT           "C",IDC_STATIC,157,13,8,8
    LTEXT           "D",IDC_STATIC,168,13,8,8
    LTEXT           "E",IDC_STATIC,179,13,8,8
    LTEXT           "F",IDC_STATIC,189,13,8,8
    LTEXT           "0",IDC_STATIC,25,13,8,8
    LTEXT           "Red",IDC_STATIC,231,35,14,8
    LTEXT           "Green",IDC_STATIC,225,54,20,8
    LTEXT           "Blue",IDC_STATIC,230,73,15,8
    LTEXT           "Colour #",IDC_STATIC,217,16,28,8
    LTEXT           "Changed interval",IDC_STATIC,248,91,54,8
    LTEXT           "Function to perform",IDC_STATIC,225,138,62,8
    LTEXT           "Adjustment",IDC_STATIC,276,20,36,8
END

IDD_SPELLGENERAL DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "General properties"
FONT 8, "MS Sans Serif"
BEGIN
    GROUPBOX        "Spell usability flags",IDC_STATIC,131,34,197,68,BS_FLAT
    GROUPBOX        "Unknowns",IDC_STATIC,131,98,262,93,BS_FLAT
    COMBOBOX        IDC_SPELLTYPEPICKER,9,19,80,172,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_PRIESTTYPE,94,19,97,174,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_WAV,196,19,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Play sound",IDC_PLAYSOUND,242,19,40,14
    PUSHBUTTON      "Browse",IDC_BROWSE,287,19,28,14
    EDITTEXT        IDC_BOOKICON,321,19,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "",IDC_INVICON1,"Static",SS_BITMAP | SS_NOTIFY | 
                    SS_SUNKEN,372,10,16,14
    EDITTEXT        IDC_LEVEL,9,49,26,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_SELECTION,40,50,90,141,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SCHOOL,9,81,120,118,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SECTYPE,9,111,120,127,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_EXCLUDE,9,141,120,105,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    CONTROL         "1",IDC_ATTR1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,137,
                    44,20,10
    CONTROL         "2",IDC_ATTR2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,137,
                    57,20,10
    CONTROL         "Hostile spell",IDC_ATTR3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,137,70,53,10
    CONTROL         "No LOS needed",IDC_ATTR4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,137,84,67,10
    CONTROL         "5",IDC_ATTR5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,206,
                    44,20,10
    CONTROL         "Not indoors",IDC_ATTR6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,206,57,52,10
    CONTROL         "Simplified duration",IDC_ATTR7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,206,70,73,10
    CONTROL         "Triggers ?",IDC_ATTR8,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,206,84,47,10
    EDITTEXT        IDC_BYTE1,281,49,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BYTE34,281,79,40,14,ES_AUTOHSCROLL
    CONTROL         "V1",IDC_V1,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE | 
                    WS_GROUP,361,50,29,10
    CONTROL         "V2.0",IDC_V20,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    361,61,29,10
    EDITTEXT        IDC_UNKNOWN0C,139,117,47,14,ES_AUTOHSCROLL | WS_GROUP
    EDITTEXT        IDC_UNKNOWN23,194,117,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN28,230,117,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN2C,285,117,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN30,340,117,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN38,139,145,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN42,194,145,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN44,230,145,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN48,285,145,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN4C,340,145,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN54,139,173,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN58,230,173,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN5C,285,173,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN60,340,173,47,14,ES_AUTOHSCROLL
    LTEXT           "Completion sound (EFF_*)",IDC_STATIC,196,6,82,8
    LTEXT           "Spell type",IDC_STATIC,9,6,32,8
    LTEXT           "Secondary type",IDC_STATIC,9,98,50,8
    LTEXT           "Level",IDC_STATIC,9,36,18,8
    LTEXT           "Priest type",IDC_STATIC,94,6,34,8
    LTEXT           "School (for effects)",IDC_STATIC,9,68,60,8
    LTEXT           "School exclusion",IDC_STATIC,9,128,54,8
    LTEXT           "School/casting graphics",IDC_STATIC,40,36,78,8
    LTEXT           "0xC (strref)",IDC_STATIC,139,106,34,8
    LTEXT           "0x24",IDC_STATIC,194,106,16,8
    LTEXT           "0x28                     0x2C",IDC_LEVELINC,230,106,104,
                    8
    LTEXT           "0x30",IDC_STATIC,340,106,16,8
    LTEXT           "0x38 (stack)",IDC_STATIC,139,134,40,8
    LTEXT           "0x42",IDC_STATIC,194,134,16,8
    LTEXT           "0x44",IDC_STATIC,230,134,16,8
    LTEXT           "0x48",IDC_STATIC,285,134,16,8
    LTEXT           "0x4C",IDC_STATIC,340,134,17,8
    LTEXT           "0x54 (strref)",IDC_STATIC,139,162,38,8
    LTEXT           "0x58",IDC_STATIC,230,162,16,8
    LTEXT           "0x5C",IDC_STATIC,285,162,17,8
    LTEXT           "0x60",IDC_STATIC,340,162,16,8
    LTEXT           "Spellbook icon",IDC_STATIC,321,6,48,8
    LTEXT           "GemRB flags",IDC_STATIC,281,39,42,8
    LTEXT           "Not in combat",IDC_STATIC,281,68,45,8
    LTEXT           "IWD2",IDC_STATIC,336,61,20,8
    LTEXT           "Other",IDC_STATIC,338,51,18,8
    GROUPBOX        "Spell version",IDC_STATIC,328,34,65,68,BS_FLAT
    EDITTEXT        IDC_U1,9,173,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,72,173,32,14,ES_AUTOHSCROLL
    LTEXT           "Simplified duration ",IDC_STATIC,9,158,60,8
    LTEXT           "rounds",IDC_STATIC,107,176,22,8
    LTEXT           "/level +",IDC_STATIC,43,176,25,8
END

IDD_ITEMDESC DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Descriptions"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_SHORTREF,150,25,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SHORTNAME,11,25,125,14,ES_AUTOHSCROLL
    CONTROL         "Tagged entry",IDC_SHORTNAMETAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,80,10,58,10
    PUSHBUTTON      "New",IDC_NEW1,150,8,40,14
    EDITTEXT        IDC_LONGREF,345,25,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGNAME,204,25,125,14,ES_AUTOHSCROLL
    CONTROL         "Tagged entry",IDC_LONGNAMETAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,272,10,58,10
    PUSHBUTTON      "New",IDC_NEW2,345,7,40,14
    EDITTEXT        IDC_SHORTDESCREF,11,177,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SHORTDESC,11,50,180,120,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    CONTROL         "Tagged entry",IDC_SHORTDESCTAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,80,177,58,10
    PUSHBUTTON      "New",IDC_NEW3,150,177,40,14
    EDITTEXT        IDC_LONGDESCREF,204,177,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGDESC,205,50,180,120,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    CONTROL         "Tagged entry",IDC_LONGDESCTAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,272,177,58,10
    PUSHBUTTON      "New",IDC_NEW4,345,177,40,14
    LTEXT           "Identified name:",IDC_STATIC,204,10,51,8
    LTEXT           "Unidentified name:",IDC_STATIC,11,10,60,8
END

IDD_ITEMUSE DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Usability"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Chaotic",IDC_CHAOTIC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,7,78,10
    CONTROL         "Evil",IDC_EVIL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    17,78,10
    CONTROL         "Good",IDC_GOOD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    27,78,10
    CONTROL         "... Neutral",IDC_EGNEUTRAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,37,78,10
    CONTROL         "Lawful",IDC_LAWFUL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,47,78,10
    CONTROL         "Neutral ...",IDC_LCNEUTRAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,57,78,10
    CONTROL         "Bard",IDC_BARD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    67,78,10
    CONTROL         "Cleric",IDC_CLERIC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,77,78,10
    CONTROL         "Cleric/Mage",IDC_CLMAGE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,7,78,10
    CONTROL         "Cleric/Thief",IDC_CLTHIEF,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,17,78,10
    CONTROL         "Cleric/Ranger",IDC_CLRANGER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,27,78,10
    CONTROL         "Fighter",IDC_FIGHTER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,37,78,10
    CONTROL         "Fighter/Druid",IDC_FIDRUID,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,47,78,10
    CONTROL         "Fighter/Mage",IDC_FIMAGE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,57,78,10
    CONTROL         "Fighter/Cleric",IDC_FICLERIC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,67,78,10
    CONTROL         "Fighter/Mage/Cleric",IDC_FIMACLERIC,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,96,77,78,10
    CONTROL         "Fighter/Mage/Thief",IDC_FIMATHIEF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,204,7,78,10
    CONTROL         "Fighter/Thief",IDC_FITHIEF,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,17,78,10
    CONTROL         "Mage",IDC_MAGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    204,27,78,10
    CONTROL         "Mage/Thief",IDC_MATHIEF,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,37,78,10
    CONTROL         "Paladin",IDC_PALADIN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,47,78,10
    CONTROL         "Ranger",IDC_RANGER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,57,78,10
    CONTROL         "Thief",IDC_THIEF,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    204,67,78,10
    CONTROL         "Elf",IDC_ELF,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,204,
                    77,78,10
    CONTROL         "Dwarf",IDC_DWARF,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    308,7,78,10
    CONTROL         "Half-elf",IDC_HALF_ELF,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,17,78,10
    CONTROL         "Halfling",IDC_HALFLING,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,27,78,10
    CONTROL         "Human",IDC_HUMAN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    308,37,78,10
    CONTROL         "Gnome",IDC_GNOME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    308,47,78,10
    CONTROL         "Monk",IDC_MONK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    308,57,78,10
    CONTROL         "Druid",IDC_DRUID,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    308,67,78,10
    CONTROL         "Half-orc",IDC_HALFORC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,77,78,10
    CONTROL         "Cleric of Talos",IDC_TALOS,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,92,78,10
    CONTROL         "Cleric of Helm",IDC_HELM,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,102,78,10
    CONTROL         "Cleric of Lathander",IDC_LATHANDER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,112,78,10
    CONTROL         "Totemic Druid",IDC_TOTEMIC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,122,78,10
    CONTROL         "Shapeshifter Druid",IDC_SHAPE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,132,78,10
    CONTROL         "Beast/Avenger Druid",IDC_AVENGER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,142,78,10
    CONTROL         "Barbarian",IDC_BARBARIAN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,152,78,10
    CONTROL         "Wildmage",IDC_WILDMAGE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,162,78,10
    CONTROL         "Stalker",IDC_STALKER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,92,78,10
    CONTROL         "Beastmaster",IDC_BEAST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,102,78,10
    CONTROL         "Assassin",IDC_ASSASSIN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,112,78,10
    CONTROL         "Bounty Hunter",IDC_BOUNTY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,122,78,10
    CONTROL         "Swashbuckler",IDC_SWASH,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,132,78,10
    CONTROL         "Blade",IDC_BLADE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    96,142,78,10
    CONTROL         "Jester",IDC_JESTER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,96,152,78,10
    CONTROL         "Skald",IDC_SKALD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    96,162,78,10
    CONTROL         "Diviner",IDC_DIVINER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,92,78,10
    CONTROL         "Enchanter",IDC_ENCHANTER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,102,78,10
    CONTROL         "Illusionist",IDC_ILLUSIONIST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,112,78,10
    CONTROL         "Invoker",IDC_INVOKER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,122,78,10
    CONTROL         "Necromancer",IDC_NECROMANCER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,132,78,10
    CONTROL         "Transmuter",IDC_TRANSMUTER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,142,78,10
    CONTROL         "Baseclass",IDC_BASECLASS,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,152,78,10
    CONTROL         "Archer",IDC_FERLAIN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,204,162,78,10
    CONTROL         "Berserker",IDC_BERSERKER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,92,78,10
    CONTROL         "Wizardslayer",IDC_WIZARDSLAYER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,102,78,10
    CONTROL         "Kensai",IDC_KENSAI,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,112,78,10
    CONTROL         "Cavalier",IDC_CAVALIER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,122,78,10
    CONTROL         "Inquisitor",IDC_INQUISITOR,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,132,78,10
    CONTROL         "Undead Hunter",IDC_UNDEADHUNTER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,308,142,78,10
    CONTROL         "Abjurer",IDC_ABJURER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,152,78,10
    CONTROL         "Conjurer",IDC_CONJURER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,308,162,78,10
    PUSHBUTTON      "Select all",IDC_ALLSET,7,177,50,14
    PUSHBUTTON      "Deselect all",IDC_ALLUNSET,96,177,50,14
END

IDD_SPELLEQUIP DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Casting features"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_EQUIPNUM,7,21,340,169,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Remove",IDC_EQUIPREMOVE,358,21,35,14
    PUSHBUTTON      "Add",IDC_EQUIPADD,358,45,35,14
    PUSHBUTTON      "Edit",IDC_EDIT,358,69,35,14
    PUSHBUTTON      "Copy",IDC_EQUIPCOPY,358,93,35,14
    PUSHBUTTON      "Paste",IDC_EQUIPPASTE,358,117,35,14
    LTEXT           "Pick casting feature:",IDC_STATIC,7,9,66,8
END

IDD_SPELLEXTRA DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_CAPTION
CAPTION "Extras"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_U3,91,63,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,133,63,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,7,84,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,49,84,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,91,84,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U8,133,84,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U9,7,106,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U10,49,106,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,91,106,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,133,106,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,7,127,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U14,49,127,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U15,91,127,32,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U16,133,127,32,14,ES_AUTOHSCROLL
    LTEXT           "more IWD2 unknowns",IDC_STATIC,7,64,72,8
END

IDD_SPELLDESC DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Description"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_LONGREF,142,19,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGNAME,7,19,125,14,ES_AUTOHSCROLL
    CONTROL         "Tagged entry",IDC_LONGNAMETAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,77,7,58,10
    PUSHBUTTON      "New string",IDC_NEW1,191,19,50,14
    EDITTEXT        IDC_LONGDESCREF,7,177,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGDESC,7,52,384,120,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    CONTROL         "Tagged entry",IDC_LONGDESCTAG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,77,38,58,10
    PUSHBUTTON      "New string",IDC_NEW2,57,178,50,14
    LTEXT           "Spell name:",IDC_STATIC,7,7,38,8
    LTEXT           "Description:",IDC_STATIC,7,39,38,8
END

IDD_SPELLEFFECT DIALOG DISCARDABLE  0, 0, 400, 199
STYLE DS_SYSMODAL | WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Extended Effects"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_EXTHEADNUM,68,14,42,126,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Order",IDC_ORDER,193,14,41,14
    PUSHBUTTON      "Remove",IDC_EXTREMOVE,238,14,35,14
    PUSHBUTTON      "Add",IDC_EXTADD,277,14,35,14
    PUSHBUTTON      "Copy",IDC_EXTCOPY,316,14,35,14
    PUSHBUTTON      "Paste",IDC_EXTPASTE,355,14,35,14
    EDITTEXT        IDC_LEVEL,7,42,46,12,ES_AUTOHSCROLL
    COMBOBOX        IDC_EXTTYPE,58,42,62,103,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_LOC,125,42,62,105,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_TARGETNUM,192,42,17,12,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_TARGET,214,42,80,105,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_RANGE,299,42,26,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_SPEED,330,42,26,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_UNKNOWN01,361,42,26,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EXTUSEICON,7,67,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "",IDC_USEICON,"Static",SS_BITMAP | SS_NOTIFY | 
                    WS_BORDER,64,65,16,14
    COMBOBOX        IDC_PROJID,88,67,123,137,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_UNKNOWN16,214,67,61,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN1A,279,67,46,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN22,330,67,26,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN24,361,67,26,12,ES_AUTOHSCROLL
    LISTBOX         IDC_EXTEFFNUM,7,100,339,91,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Remove",IDC_EXTEFFREMOVE,358,91,35,14
    PUSHBUTTON      "Add",IDC_EXTEFFADD,358,112,35,14
    PUSHBUTTON      "Edit",IDC_EDIT,358,133,35,14
    PUSHBUTTON      "Copy",IDC_EXTEFFCOPY,358,154,35,14
    PUSHBUTTON      "Paste",IDC_EXTEFFPASTE,358,175,35,14
    LTEXT           "Extended Header:",IDC_STATIC,7,16,58,8
    LTEXT           "Pick effect:",IDC_STATIC,7,89,37,8
    LTEXT           "Spell form:",IDC_STATIC,58,31,34,8
    LTEXT           "Location:",IDC_STATIC,125,31,30,8
    LTEXT           "Speed",IDC_STATIC,330,31,22,8
    LTEXT           "Range",IDC_STATIC,299,31,22,8
    LTEXT           "Target number && type",IDC_STATIC,192,31,68,8
    LTEXT           "/",IDC_STATIC,113,16,8,8
    LTEXT           "0",IDC_HEADNUM,123,16,8,8
    LTEXT           "Projectile animation:",IDC_STATIC,88,57,64,8
    LTEXT           "Casting icon",IDC_STATIC,8,57,40,8
    LTEXT           "Required level",IDC_STATIC,7,31,46,8
    LTEXT           "0x16",IDC_STATIC,214,57,16,8
    LTEXT           "0x22",IDC_STATIC,330,57,16,8
    LTEXT           "0x1A",IDC_STATIC,279,57,17,8
    LTEXT           "0x24",IDC_STATIC,361,57,16,8
    LTEXT           "0x1",IDC_STATIC,361,31,12,8
    PUSHBUTTON      "Next",IDC_NEXT,134,14,23,14
    PUSHBUTTON      "Prev.",IDC_PREV,162,14,23,14
END

IDD_SPELLEDIT DIALOGEX 0, 0, 410, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Spell:"
MENU IDR_SPELL
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Load Spell",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load external spell",IDC_LOADEX,74,229,66,14
    PUSHBUTTON      "Save Spell As...",IDC_SAVEAS,157,229,57,14
    PUSHBUTTON      "New Spell",IDC_NEW,231,229,50,14
    PUSHBUTTON      "Check Spell",IDC_CHECK,298,229,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,365,229,38,14
END

IDD_EXTRACT2 DIALOG DISCARDABLE  0, 0, 186, 71
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Found resource"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "Extract",IDYES,7,50,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,129,50,50,14
    PUSHBUTTON      "Find next",IDOK,67,50,50,14
    LTEXT           "XXXXXXXX.2DA in \n\\data\\xxxx.bif",IDC_TEXT,7,7,172,35
END

IDD_AREAGENERAL DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "General"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_WED,7,18,53,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,66,18,28,14
    PUSHBUTTON      "Edit wed",IDC_EDIT,101,18,32,14
    PUSHBUTTON      "Night wed",IDC_NIGHT,162,18,44,14,WS_DISABLED
    COMBOBOX        IDC_AREATYPE,213,18,118,173,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_LASTSAVED,336,18,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPT,384,18,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,432,18,28,14
    EDITTEXT        IDC_UNKNOWN90,421,50,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NORTHRES,11,57,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_NORTHFLAG,62,57,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_WESTRES,11,87,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_WESTFLAG,62,87,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUTHRES,11,117,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUTHFLAG,62,117,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_EASTRES,11,147,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_EASTFLAG,62,147,29,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RAIN,150,54,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SNOW,150,84,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FOG,150,114,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LIGHTNING,150,144,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN52,150,174,40,14,ES_AUTOHSCROLL
    CONTROL         "Outdoors",IDC_OUTDOOR,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,47,45,10
    CONTROL         "Day and night",IDC_DAYNIGHT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,61,60,10
    CONTROL         "Weather",IDC_WEATHER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,75,43,10
    CONTROL         "City",IDC_CITY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    222,89,27,10
    CONTROL         "Forest",IDC_FOREST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,103,35,10
    CONTROL         "Dungeon",IDC_DUNGEON,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,117,45,10
    CONTROL         "Extended night",IDC_EXTENDEDNIGHT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,222,131,63,10
    CONTROL         "Can rest indoor",IDC_CANREST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,222,145,63,10
    EDITTEXT        IDC_UNKFLAG,216,174,26,14,ES_AUTOHSCROLL
    CONTROL         "Has songs",IDC_SONG,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,334,40,49,10
    PUSHBUTTON      "Edit Songs",IDC_SONGS,413,80,60,14
    CONTROL         "Resting interrupts",IDC_REST,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,334,58,70,10
    PUSHBUTTON      "Edit Interrupts",IDC_INT,413,103,60,14
    PUSHBUTTON      "Remove explored",IDC_DELEXP,413,126,60,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,413,149,60,14
    CONTROL         "V1.0",IDC_V10,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    359,164,31,10
    CONTROL         "V9.1",IDC_V91,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    359,176,31,10
    PUSHBUTTON      "View map",IDC_VIEW,413,172,60,14
    GROUPBOX        "Area type",IDC_STATIC,212,32,120,159,BS_FLAT
    LTEXT           "Wedfile",IDC_STATIC,7,7,25,8
    GROUPBOX        "BG1 Area fields",IDC_STATIC,8,32,136,159,BS_FLAT
    LTEXT           "North",IDC_STATIC,11,45,18,8
    LTEXT           "West",IDC_STATIC,11,135,18,8
    LTEXT           "East",IDC_STATIC,11,75,15,8
    LTEXT           "South",IDC_STATIC,11,105,20,8
    GROUPBOX        "Weather",IDC_STATIC,143,32,69,159,BS_FLAT
    LTEXT           "Rain",IDC_STATIC,150,42,16,8
    LTEXT           "Fog",IDC_STATIC,150,102,13,8
    LTEXT           "Lightning",IDC_STATIC,150,132,30,8
    LTEXT           "Snow",IDC_STATIC,150,72,19,8
    LTEXT           "Area flag",IDC_STATIC,229,7,29,8
    LTEXT           "0x52",IDC_STATIC,150,162,16,8
    LTEXT           "0x90",IDC_STATIC,421,39,16,8
    LTEXT           "Lastsaved",IDC_STATIC,336,7,34,8
    LTEXT           "Scriptname",IDC_STATIC,384,7,36,8
    LTEXT           "Extra area type bits",IDC_STATIC,216,162,61,8
    GROUPBOX        "Area version",IDC_STATIC,331,151,70,40,BS_FLAT
    LTEXT           "IWD2",IDC_STATIC,336,176,20,8
    LTEXT           "Other",IDC_STATIC,338,164,18,8
    PUSHBUTTON      "Edit explored",IDC_EXPLORED,336,80,60,14
END

IDD_AREAEDIT DIALOGEX 0, 0, 500, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Area:"
MENU IDR_AREA
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Load Area",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load external area",IDC_LOADEX,90,229,64,14
    PUSHBUTTON      "Save Area As...",IDC_SAVEAS,187,229,54,14
    PUSHBUTTON      "New Area",IDC_NEW,274,229,50,14
    PUSHBUTTON      "Check Area",IDC_CHECK,357,229,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,440,229,50,14
END

IDD_AREAACTOR DIALOG DISCARDABLE  0, 0, 480, 198
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Actors"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_ACTORPICKER,7,14,116,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_CRERES,175,14,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,231,14,28,14
    PUSHBUTTON      "Edit creature",IDC_EDIT,267,14,50,14
    PUSHBUTTON      "Embed it",IDC_EMBED,319,14,33,14
    EDITTEXT        IDC_POSX,7,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,36,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DESTX,65,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DESTY,94,46,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Stay in place",IDC_SAME,123,46,46,14
    EDITTEXT        IDC_VISIBLE,7,76,24,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_FACE,40,76,120,120,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_ANIMATION,7,106,153,110,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_U2C,7,134,39,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U36,50,134,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U38,78,134,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3C,106,134,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TALKNUM,134,134,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "xxxxxxxxxxxxxxxxxxxxxxxx",IDC_SCHEDULE,7,164,83,14,
                    BS_FLAT
    LTEXT           "Static",IDC_TIMEOFDAY,94,167,38,8
    PUSHBUTTON      "Refresh fields",IDC_FIELDS,217,46,48,14
    PUSHBUTTON      "Clear fields",IDC_CLEAR,304,47,48,14
    EDITTEXT        IDC_DIALOG,183,68,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,237,68,28,14
    EDITTEXT        IDC_GENERAL,272,68,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,324,68,28,14
    EDITTEXT        IDC_OVERRIDE,183,102,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,237,102,28,14
    EDITTEXT        IDC_DEFAULT,272,102,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE7,324,102,28,14
    EDITTEXT        IDC_CLASS,183,136,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,237,136,28,14
    EDITTEXT        IDC_SPECIFIC,272,136,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE8,324,136,28,14
    EDITTEXT        IDC_RACE,183,170,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE5,237,170,28,14
    EDITTEXT        IDC_AREA,272,170,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE9,324,170,28,14
    PUSHBUTTON      "Add actor",IDC_ADD,423,14,50,14
    PUSHBUTTON      "Remove actor",IDC_REMOVE,423,41,50,14
    PUSHBUTTON      "Remove all",IDC_BUTTON1,423,68,50,14
    PUSHBUTTON      "Copy actor",IDC_COPY,423,95,50,14
    PUSHBUTTON      "Paste actor",IDC_PASTE,423,122,50,14
    PUSHBUTTON      "Set position",IDC_SETPOS,423,149,50,14
    PUSHBUTTON      "Set destination",IDC_SETDEST,423,176,50,14
    LTEXT           "Actor",IDC_STATIC,7,2,18,8
    LTEXT           "Position",IDC_STATIC,7,34,26,8
    LTEXT           "Destination",IDC_STATIC,65,34,36,8
    LTEXT           "Fields",IDC_STATIC,7,64,19,8
    LTEXT           "Animation",IDC_STATIC,7,94,32,8
    LTEXT           "0x2c",IDC_STATIC,7,122,16,8
    LTEXT           "Direction",IDC_STATIC,40,64,29,8
    LTEXT           "Visible",IDC_STATIC,78,122,21,8
    LTEXT           "0x3c",IDC_STATIC,106,122,16,8
    LTEXT           "Talk count",IDC_STATIC,134,122,35,8
    LTEXT           "Schedule",IDC_STATIC,7,152,31,8
    LTEXT           "Dialog",IDC_STATIC,183,54,21,8
    LTEXT           "General",IDC_STATIC,272,54,26,8
    GROUPBOX        "Override scripts && dialog",IDC_STATIC,175,33,183,158,
                    BS_FLAT
    LTEXT           "Override",IDC_STATIC,183,88,28,8
    LTEXT           "Class",IDC_STATIC,183,122,18,8
    LTEXT           "Race",IDC_STATIC,183,156,18,8
    LTEXT           "Default",IDC_STATIC,272,88,24,8
    LTEXT           "Specific",IDC_STATIC,272,122,26,8
    LTEXT           "Creature",IDC_STATIC,175,2,28,8
    LTEXT           "/ 0",IDC_MAXACTOR,128,16,21,8
    LTEXT           "0x36",IDC_STATIC,50,122,16,8
    LTEXT           "Area (IWD2)",IDC_STATIC,272,156,40,8
END

IDD_SCHEDULE DIALOG DISCARDABLE  0, 0, 227, 164
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Schedule"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,34,143,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,141,143,50,14
    CONTROL         "1. Hour",IDC_HOUR1,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,7,39,10
    CONTROL         "2. Hour",IDC_HOUR2,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,18,39,10
    CONTROL         "3. Hour",IDC_HOUR3,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,29,39,10
    CONTROL         "4. Hour",IDC_HOUR4,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,40,39,10
    CONTROL         "5. Hour",IDC_HOUR5,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,51,39,10
    CONTROL         "6. Hour",IDC_HOUR6,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,62,39,10
    CONTROL         "7. Hour",IDC_HOUR7,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,73,39,10
    CONTROL         "8. Hour",IDC_HOUR8,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,84,39,10
    CONTROL         "9. Hour",IDC_HOUR9,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,95,39,10
    CONTROL         "10. Hour",IDC_HOUR10,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,106,39,10
    CONTROL         "11. Hour",IDC_HOUR11,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,117,39,10
    CONTROL         "12. Hour",IDC_HOUR12,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,7,128,39,10
    CONTROL         "13. Hour",IDC_HOUR13,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,7,39,10
    CONTROL         "14. Hour",IDC_HOUR14,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,18,39,10
    CONTROL         "15. Hour",IDC_HOUR15,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,29,39,10
    CONTROL         "16. Hour",IDC_HOUR16,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,40,39,10
    CONTROL         "17. Hour",IDC_HOUR17,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,51,39,10
    CONTROL         "18. Hour",IDC_HOUR18,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,62,39,10
    CONTROL         "19. Hour",IDC_HOUR19,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,73,39,10
    CONTROL         "20. Hour",IDC_HOUR20,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,84,39,10
    CONTROL         "21. Hour",IDC_HOUR21,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,95,39,10
    CONTROL         "22. Hour",IDC_HOUR22,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,106,39,10
    CONTROL         "23. Hour",IDC_HOUR23,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,117,39,10
    CONTROL         "24. Hour",IDC_HOUR24,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,66,128,39,10
    PUSHBUTTON      "Night",IDC_NIGHT,168,94,50,14
    PUSHBUTTON      "Dawn",IDC_DAWN,168,52,50,14
    PUSHBUTTON      "Day",IDC_DAY,113,94,50,14
    PUSHBUTTON      "Twilight",IDC_TWILIGHT,168,73,50,14
    PUSHBUTTON      "All",IDC_ALL,113,115,50,14
    PUSHBUTTON      "None",IDC_NONE,168,115,50,14
    PUSHBUTTON      "Morning",IDC_MORNING,113,52,50,14
    PUSHBUTTON      "Afternoon",IDC_AFTERNOON,113,73,50,14
    PUSHBUTTON      "Copy",IDC_COPY,113,7,50,14
    PUSHBUTTON      "Paste",IDC_PASTE,168,7,50,14
END

IDD_PROJEDIT DIALOGEX 0, 0, 410, 266
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Projectile:"
MENU IDR_PROJECT
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Load Projectile",IDC_LOAD,7,245,52,14
    PUSHBUTTON      "Load external projectile",IDC_LOADEX,69,245,78,14
    PUSHBUTTON      "Save Projectile As...",IDC_SAVEAS,157,245,68,14
    PUSHBUTTON      "New Projectile",IDC_NEW,235,245,50,14
    PUSHBUTTON      "Check Projectile",IDC_CHECK,295,245,56,14
    PUSHBUTTON      "E&xit",IDCANCEL,361,245,42,14
    COMBOBOX        IDC_TYPE,7,20,88,57,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_SPEED,101,20,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUND1,7,47,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,65,47,28,14
    PUSHBUTTON      "Play",IDC_PLAY1,101,47,28,14
    EDITTEXT        IDC_SOUND2,7,77,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,65,77,28,14
    PUSHBUTTON      "Play",IDC_PLAY2,101,77,28,14
    EDITTEXT        IDC_SOUND3,7,107,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,65,107,28,14
    PUSHBUTTON      "Play",IDC_PLAY3,101,107,28,14
    EDITTEXT        IDC_BAM1,7,137,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,65,137,28,14
    EDITTEXT        IDC_SEQ1,101,137,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM2,7,167,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE5,65,167,28,14
    EDITTEXT        IDC_SEQ2,101,167,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PALETTE,7,197,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,65,197,28,14
    EDITTEXT        IDC_U1,7,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,25,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,43,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,61,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,79,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,97,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,115,227,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,141,20,40,14,ES_AUTOHSCROLL
    CONTROL         "Sparks",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    188,15,38,10
    CONTROL         "Flying",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    188,26,34,10
    LTEXT           "Spark colour",IDC_STATIC,141,36,41,8
    CONTROL         "Ignore center",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,188,37,58,10
    COMBOBOX        IDC_SPARKCOLOUR,141,49,100,194,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_UNKNOWN0E,161,66,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN2A,213,66,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_X,154,97,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_Y,200,97,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_Z,246,97,28,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_SMOKETYPE,138,134,100,89,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_DELAY,174,151,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,138,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,157,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,176,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U14,195,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U15,214,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U16,233,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U17,252,187,16,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ATTR,249,20,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_AIM,293,20,110,67,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Coloured BAM",IDC_ATTR1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,38,61,10
    CONTROL         "Smoke enabled",IDC_ATTR2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,48,65,10
    CONTROL         "3",IDC_ATTR3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,279,
                    58,20,10
    CONTROL         "Dark projectile",IDC_ATTR4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,68,61,10
    CONTROL         "5",IDC_ATTR5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,279,
                    78,20,10
    CONTROL         "Shadow enabled",IDC_ATTR6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,88,69,10
    CONTROL         "Light spot enabled",IDC_ATTR7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,98,74,10
    CONTROL         "Fix transparency ?",IDC_ATTR8,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,279,108,73,10
    CONTROL         "9",IDC_ATTR9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,364,
                    38,20,10
    CONTROL         "10",IDC_ATTR10,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,48,24,10
    CONTROL         "11",IDC_ATTR11,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,58,24,10
    CONTROL         "12",IDC_ATTR12,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,68,24,10
    CONTROL         "13",IDC_ATTR13,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,78,24,10
    CONTROL         "14",IDC_ATTR14,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,88,24,10
    CONTROL         "15",IDC_ATTR15,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,98,24,10
    CONTROL         "16",IDC_ATTR16,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    364,108,24,10
    EDITTEXT        IDC_BAM3,282,138,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_FREQ1,366,138,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM4,282,157,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_FREQ2,366,157,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM5,282,176,49,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_FREQ3,366,176,28,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Edit area extension",IDC_EXTENSION,135,213,141,14
    PUSHBUTTON      "GemRB specific",IDC_UNKNOWN2C,335,202,68,14
    PUSHBUTTON      "Unknowns at 0x154",IDC_UNKNOWN154,335,223,68,14
    GROUPBOX        "Sparks",IDC_STATIC,135,7,112,81,BS_FLAT
    GROUPBOX        "Light spot",IDC_STATIC,135,83,141,39,BS_FLAT
    GROUPBOX        "Projectile trail ",IDC_STATIC,275,117,128,78,BS_FLAT
    GROUPBOX        "Smoke",IDC_STATIC,135,117,141,90,BS_FLAT
    LTEXT           "Projectile type",IDC_STATIC,7,7,45,8
    LTEXT           "Speed",IDC_STATIC,101,7,22,8
    LTEXT           "0x0e",IDC_STATIC,141,69,16,8
    LTEXT           "Sound resource 1",IDC_STATIC,7,35,57,8
    LTEXT           "Sound resource 2",IDC_STATIC,7,65,57,8
    LTEXT           "Sound resource 3",IDC_STATIC,7,95,57,8
    LTEXT           "Attributes",IDC_STATIC,249,7,30,8
    LTEXT           "Projectile BAM",IDC_STATIC,7,125,47,8
    LTEXT           "Shadow BAM",IDC_STATIC,7,155,44,8
    LTEXT           "Cycle",IDC_STATIC,101,125,18,8
    LTEXT           "Cycle",IDC_STATIC,101,155,18,8
    LTEXT           "X",IDC_STATIC,141,100,8,8
    LTEXT           "Y",IDC_STATIC,187,100,8,8
    LTEXT           "Z",IDC_STATIC,233,100,8,8
    LTEXT           "Palette BMP",IDC_STATIC,7,185,40,8
    LTEXT           "Puff delay",IDC_STATIC,138,154,32,8
    LTEXT           "Direction (cycle change) ?",IDC_STATIC,293,7,84,8
    LTEXT           "Projectile colour gradients",IDC_STATIC,7,215,82,8
    LTEXT           "Trail bams",IDC_STATIC,282,128,33,8
    LTEXT           "Frequency",IDC_STATIC,366,128,34,8
    CONTROL         "",IDC_MPTRAVEL,"Static",SS_BITMAP | SS_NOTIFY,96,208,17,
                    15,WS_EX_DLGMODALFRAME
    CONTROL         "",IDC_MPSMOKE,"Static",SS_BITMAP | SS_NOTIFY,233,165,17,
                    15,WS_EX_DLGMODALFRAME
    LTEXT           "Smoke colour gradients",IDC_STATIC,138,172,75,8
    LTEXT           "Smoke animation",IDC_STATIC,183,124,55,8
    CONTROL         "Looping",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,88,35,41,10
    PUSHBUTTON      "Browse",IDC_BROWSE7,335,138,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE8,335,157,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE13,335,176,28,14
    CONTROL         "Looping",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,88,65,41,10
    LTEXT           "0x2a",IDC_STATIC,192,68,16,8
END

IDD_AREAENTRANCE DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Entrances"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_ENTRANCEPICKER,7,20,116,167,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_POSX,7,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,36,50,24,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_FACE,65,50,61,142,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_UNKNOWN26,131,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN28,160,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN2A,189,50,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Add entrance",IDC_ADD,411,20,62,14
    PUSHBUTTON      "Remove entrance",IDC_REMOVE,411,50,62,14
    PUSHBUTTON      "Copy entrance",IDC_COPY,411,80,62,14
    PUSHBUTTON      "Paste entrance",IDC_PASTE,411,110,62,14
    PUSHBUTTON      "Set entrance",IDC_SET,411,140,62,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,411,170,62,14
    LTEXT           "Entrance",IDC_STATIC,7,6,30,8
    LTEXT           "Position",IDC_STATIC,7,40,26,8
    LTEXT           "Face",IDC_STATIC,65,40,17,8
    LTEXT           "/ 0",IDC_MAXENTRANCE,128,23,38,8
    LTEXT           "0x26",IDC_STATIC,131,40,16,8
    LTEXT           "0x28",IDC_STATIC,160,40,16,8
    LTEXT           "0x2a",IDC_STATIC,189,40,16,8
END

IDD_AREATRIGGER DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Regions"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_TRIGGERPICKER,7,18,121,174,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POS1X,7,47,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y,37,47,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2X,7,65,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2Y,37,65,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Edit Polygon",IDC_EDITPOLYGON,68,45,60,14
    PUSHBUTTON      "Recalculate Box",IDC_RECALCBOX,68,65,60,14
    EDITTEXT        IDC_DESTAREA,53,90,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,100,90,28,14
    COMBOBOX        IDC_ENTRANCENAME,10,114,117,163,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    CONTROL         "Party required",IDC_PARTY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,10,132,59,10
    CONTROL         "NPC can't pass",IDC_NONPC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,73,132,62,10
    EDITTEXT        IDC_CURSORIDX,14,160,40,14,ES_AUTOHSCROLL
    CONTROL         "Spin1",IDC_SPINCURSOR,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,52,161,11,14
    CONTROL         "",IDC_CURSOR,"Static",SS_BITMAP | SS_SUNKEN,71,149,16,
                    14
    COMBOBOX        IDC_REGIONTYPE,159,18,70,174,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_FLAGS,232,18,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN30,276,18,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSX,139,56,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSY,176,56,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KEY,213,56,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECT,139,88,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_REMOVAL,176,88,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPT,213,88,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_TRAPPED,139,120,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECTED,176,120,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DIALOG,213,120,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    CONTROL         "Walk to it?",IDC_TOVERRIDE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,142,139,50,10
    EDITTEXT        IDC_POS1X2,139,171,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y2,176,171,24,14,ES_AUTOHSCROLL
    CONTROL         "Invisible trap",IDC_TUNDET,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,42,55,10
    CONTROL         "Reset trap",IDC_TRESET,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,55,49,10
    CONTROL         "Detectable",IDC_TDETECT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,68,51,10
    CONTROL         "5",IDC_TUNK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,287,
                    81,20,10
    CONTROL         "6",IDC_TUNK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,287,
                    94,20,10
    CONTROL         "NPC triggers",IDC_TNPC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,107,55,10
    CONTROL         "8",IDC_TUNK3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,287,
                    120,20,10
    CONTROL         "Deactivated",IDC_TDEACTIVATED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,133,55,10
    CONTROL         "Blocked",IDC_TDOOR,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,287,146,42,10
    CONTROL         "13",IDC_TUNK4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,287,
                    159,24,10
    CONTROL         "14",IDC_TUNK5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,287,
                    172,24,10
    CONTROL         "15",IDC_TUNK6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,317,
                    159,24,10
    CONTROL         "16",IDC_TUNK7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,317,
                    172,24,10
    PUSHBUTTON      "Add region",IDC_ADD,411,9,62,14
    PUSHBUTTON      "Remove region",IDC_REMOVE,411,33,62,14
    PUSHBUTTON      "Copy region",IDC_COPY,411,57,62,14
    PUSHBUTTON      "Paste region",IDC_PASTE,411,81,62,14
    PUSHBUTTON      "Set launch point",IDC_SET,411,105,62,14
    PUSHBUTTON      "Select region",IDC_SELECTION,411,153,62,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,411,177,62,14
    LTEXT           "Region name",IDC_STATIC,7,6,43,8
    LTEXT           "Bounding box",IDC_STATIC,7,33,44,8
    LTEXT           "Region type",IDC_STATIC,159,6,39,8
    LTEXT           "0x30",IDC_STATIC,276,6,16,8
    LTEXT           "Cursor index",IDC_STATIC,14,149,40,8
    GROUPBOX        "Travel trigger",IDC_STATIC,7,80,129,66,BS_FLAT
    LTEXT           "Destination",IDC_STATIC,10,90,36,8
    GROUPBOX        "Trap",IDC_STATIC,135,33,212,158,BS_FLAT
    LTEXT           "Detection",IDC_STATIC,139,75,32,8
    LTEXT           "Removal",IDC_STATIC,176,75,29,8
    LTEXT           "Entrance",IDC_STATIC,10,103,30,8
    LTEXT           "Trapped",IDC_STATIC,139,107,28,8
    LTEXT           "Detected",IDC_STATIC,176,107,30,8
    LTEXT           "Launch point",IDC_STATIC,139,43,42,8
    LTEXT           "Key",IDC_STATIC,213,43,13,8
    LTEXT           "Dialog",IDC_STATIC,213,107,21,8
    LTEXT           "Script",IDC_STATIC,213,75,19,8
    LTEXT           "/ 0",IDC_MAXTRIGGER,129,20,24,8
    LTEXT           "Flags",IDC_STATIC,232,6,18,8
    LTEXT           "%",IDC_STATIC,166,90,8,8
    LTEXT           "%",IDC_STATIC,204,90,8,8
    PUSHBUTTON      "Browse",IDC_BROWSE,256,56,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE2,256,88,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE3,256,120,28,14
    LTEXT           "Operating point",IDC_STATIC,139,157,49,8
    PUSHBUTTON      "Edit strings",IDC_STRING,213,171,50,14
    PUSHBUTTON      "Set walk point",IDC_SET2,411,129,62,14
    EDITTEXT        IDC_WAVRES,213,152,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE5,256,152,28,14
    LTEXT           "Wav resource",IDC_STATIC,213,139,46,8
END

IDD_AREASPAWN DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Spawns"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_SPAWNPICKER,7,18,116,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POSX,7,47,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,51,47,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MIN,100,47,33,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_SPAWNNUMPICKER,152,18,85,104,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Add",IDC_ADDCRE,270,18,31,14
    EDITTEXT        IDC_CRERES,152,47,72,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,231,47,31,14
    PUSHBUTTON      "Remove",IDC_DELCRE,270,47,31,14
    EDITTEXT        IDC_DIFF,7,88,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DELAY,49,88,33,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_METHOD,91,88,96,104,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_UNKNOWN7C,196,88,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN80,239,88,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN82,280,88,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAX,7,122,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LOW,91,122,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HIGH,150,122,33,14,ES_AUTOHSCROLL
    PUSHBUTTON      "xxxxxxxxxxxxxxxxxxxxxxxx",IDC_SCHEDULE,7,170,83,14,
                    BS_FLAT
    PUSHBUTTON      "Add spawnpoint",IDC_ADD,403,20,70,14
    PUSHBUTTON      "Remove spawnpoint",IDC_REMOVE,403,50,70,14
    PUSHBUTTON      "Copy spawnpoint",IDC_COPY,403,80,70,14
    PUSHBUTTON      "Paste spawnpoint",IDC_PASTE,403,110,70,14
    PUSHBUTTON      "Set spawnpoint",IDC_SET,403,140,70,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,403,170,70,14
    LTEXT           "Spawn point",IDC_STATIC,7,6,40,8
    LTEXT           "Position",IDC_STATIC,7,33,26,8
    LTEXT           "/ 0",IDC_MAXSPAWN,128,20,16,8
    LTEXT           "Creature",IDC_STATIC,152,33,28,8
    LTEXT           "/ 0",IDC_MAXCRE,246,20,16,8
    GROUPBOX        "Spawned creatures",IDC_STATIC,147,7,167,60,BS_FLAT
    LTEXT           "Difficulty",IDC_STATIC,7,74,28,8
    LTEXT           "Delay ?",IDC_STATIC,49,74,42,8
    LTEXT           "Spawn method ?",IDC_STATIC,96,74,54,8
    LTEXT           "Schedule",IDC_STATIC,7,156,31,8
    LTEXT           "Static",IDC_TIMEOFDAY,94,172,38,8
    LTEXT           "Day chance",IDC_STATIC,91,109,40,8
    LTEXT           "Expiry",IDC_STATIC,196,74,20,8
    LTEXT           "Walk distances",IDC_STATIC,239,74,50,8
    LTEXT           "%",IDC_STATIC,185,124,8,8
    LTEXT           "Maximum",IDC_STATIC,7,109,30,8
    LTEXT           "Enabled",IDC_STATIC,100,33,27,8
    LTEXT           "%",IDC_STATIC,129,124,8,8
    LTEXT           "Night chance",IDC_STATIC,150,109,44,8
END

IDD_CREATUREEDIT DIALOGEX 0, 0, 410, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Creature:"
MENU IDR_CREATURE
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Load Creature",IDC_LOAD,7,229,50,14
    PUSHBUTTON      "Load external creature",IDC_LOADEX,67,229,76,14
    PUSHBUTTON      "Save Creature As...",IDC_SAVEAS,153,229,66,14
    PUSHBUTTON      "New Creature",IDC_NEW,229,229,50,14
    PUSHBUTTON      "Check Creature",IDC_CHECK,289,229,54,14
    PUSHBUTTON      "E&xit",IDCANCEL,353,229,50,14
END

IDD_CREATUREGENERAL DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "General properties"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_LONGNAMEREF,7,20,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGNAME,53,20,142,14,ES_AUTOHSCROLL
    CONTROL         "Tagged text",IDC_LONGNAMETAG,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,141,7,54,10
    EDITTEXT        IDC_SHORTNAMEREF,202,20,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SHORTNAME,254,20,135,14,ES_AUTOHSCROLL
    CONTROL         "Tagged text",IDC_SHORTNAMETAG,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,335,7,54,10
    COMBOBOX        IDC_DUALFLAGS,7,52,93,157,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_STATEFLAGS,104,52,93,167,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_IDSEA,202,52,93,140,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_IDSGENDER,300,52,93,140,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_LEVEL1,7,82,22,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_LEVEL2,40,82,22,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_LEVEL3,73,82,22,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_ANIMATION,104,82,93,110,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_IDSGENERAL,202,82,93,110,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_IDSALIGNMENT,300,82,93,110,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_XPVALUE,7,114,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_CURRHP,55,114,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_THAC0,104,114,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_NUMATTACKS,149,114,44,145,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_IDSRACE,202,114,93,161,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_CURRXP,7,146,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MAXHP,55,146,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_HATED,104,147,93,182,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_IDSCLASS,202,146,93,158,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_GOLD,7,178,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MORALE,55,178,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MRECOVERY,104,178,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MBREAK,157,178,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_IDSSPECIFIC,202,178,93,142,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    CONTROL         "V1.0",IDC_V10,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    355,144,31,10
    CONTROL         "V1.2",IDC_V12,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    355,153,31,10
    CONTROL         "V2.2",IDC_V22,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    355,163,31,10
    CONTROL         "V9.0",IDC_V90,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE,
                    355,172,31,10
    LTEXT           "Creature animation",IDC_STATIC,104,69,60,8
    LTEXT           "Long name",IDC_STATIC,7,7,36,8
    LTEXT           "Short name",IDC_STATIC,202,7,37,8
    LTEXT           "XP value",IDC_STATIC,7,101,30,8
    LTEXT           "Current XP",IDC_STATIC,7,133,35,8
    LTEXT           "Gold",IDC_STATIC,7,165,16,8
    LTEXT           "State flags",IDC_STATIC,104,39,34,8
    LTEXT           "Class flags",IDC_STATIC,7,39,34,8
    LTEXT           "Current HP",IDC_STATIC,55,101,36,8
    LTEXT           "Max HP",IDC_STATIC,55,133,26,8
    LTEXT           "Levels",IDC_STATIC,7,69,22,8
    LTEXT           "General",IDC_STATIC,202,69,26,8
    LTEXT           "Race",IDC_STATIC,202,101,18,8
    LTEXT           "Class",IDC_STATIC,202,133,18,8
    LTEXT           "Reaction",IDC_STATIC,202,39,30,8
    LTEXT           "Specific",IDC_STATIC,202,165,26,8
    LTEXT           "Gender",IDC_STATIC,300,39,24,8
    LTEXT           "Alignment",IDC_STATIC,300,69,32,8
    LTEXT           "Hated race",IDC_STATIC,104,134,36,8
    LTEXT           "Morale",IDC_STATIC,55,165,29,8
    LTEXT           "Morale break",IDC_STATIC,159,165,42,8
    LTEXT           "Morale recovery",IDC_STATIC,104,165,54,8
    LTEXT           "THAC0",IDC_STATIC,104,101,24,8
    LTEXT           "# of attacks",IDC_STATIC,149,100,39,8
    LTEXT           "Kit",IDC_STATIC,300,99,9,8
    GROUPBOX        "Creature version",IDC_STATIC,302,133,91,56,BS_FLAT
    LTEXT           "BG",IDC_STATIC,339,144,11,8
    LTEXT           "PST",IDC_STATIC,335,153,15,8
    LTEXT           "IWD2",IDC_STATIC,330,163,20,8
    LTEXT           "IWD",IDC_STATIC,334,172,16,8
    PUSHBUTTON      "New string",IDC_NEW1,53,6,51,11
    PUSHBUTTON      "New string",IDC_NEW2,254,6,51,11
    COMBOBOX        IDC_KIT,300,113,93,79,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "IWD2 levels",IDC_LEVELSLOT,7,69,88,27
END

IDD_CREATUREICONS DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Icons && scripts"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_SMALLPORTRAIT,7,24,51,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    CONTROL         "",IDC_SMALLPORTRAITICON,"Static",SS_BITMAP,66,10,15,13
    PUSHBUTTON      "Browse",IDC_BROWSE13,7,41,51,14
    EDITTEXT        IDC_LARGEPORTRAIT,7,99,51,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    CONTROL         "",IDC_LARGEPORTRAITICON,"Static",SS_BITMAP,66,85,15,13
    PUSHBUTTON      "Browse",IDC_BROWSE14,7,117,51,14
    PUSHBUTTON      "Animate",IDC_PLAY,7,141,51,14
    EDITTEXT        IDC_CMETAL,153,17,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,247,17,28,14
    EDITTEXT        IDC_CMINOR,153,43,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE7,247,43,28,14
    EDITTEXT        IDC_CMAJOR,153,69,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE8,247,69,28,14
    EDITTEXT        IDC_CSKIN,153,95,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE9,247,95,28,14
    EDITTEXT        IDC_CLEATHER,153,121,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE10,247,121,28,14
    EDITTEXT        IDC_CARMOR,153,147,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE11,247,147,28,14
    EDITTEXT        IDC_CHAIR,153,173,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE12,247,173,28,14
    EDITTEXT        IDC_OVERRIDE,304,17,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,365,17,28,14
    EDITTEXT        IDC_CLASS,304,43,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,365,43,28,14
    EDITTEXT        IDC_RACE,304,69,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,365,69,28,14
    EDITTEXT        IDC_GENERAL,304,95,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,365,95,28,14
    EDITTEXT        IDC_DEFAULT,304,121,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE5,365,121,28,14
    EDITTEXT        IDC_DIALOG,304,147,51,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,365,147,28,14
    EDITTEXT        IDC_DVAR,281,173,112,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Small portrait",IDC_STATIC,7,10,41,8
    LTEXT           "Large portrait",IDC_STATIC,7,85,42,8
    LTEXT           "Metal colour",IDC_STATIC,153,7,40,8
    LTEXT           "Minor colour",IDC_STATIC,153,33,40,8
    LTEXT           "Major colour",IDC_STATIC,153,59,40,8
    LTEXT           "Skin colour",IDC_STATIC,153,85,36,8
    LTEXT           "Leather colour",IDC_STATIC,153,111,46,8
    LTEXT           "Armor colour",IDC_STATIC,153,137,40,8
    LTEXT           "Hair colour",IDC_STATIC,153,163,35,8
    LTEXT           "Override script",IDC_STATIC,304,7,46,8
    LTEXT           "Class script",IDC_STATIC,304,33,36,8
    LTEXT           "Race script",IDC_STATIC,304,59,37,8
    LTEXT           "General script",IDC_STATIC,304,85,44,8
    LTEXT           "Default script",IDC_STATIC,304,111,42,8
    LTEXT           "Dialog",IDC_STATIC,304,137,21,8
    LTEXT           "Scripting name (Death variable)",IDC_STATIC,281,163,100,
                    8
END

IDD_CREATURESKILLS DIALOGEX 0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Stats && Skills"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_HIDE,75,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DETILL,75,46,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SETTRAP,75,76,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LOCKPICK,75,106,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LORE,75,136,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_INTOX,75,166,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STEALTH,164,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FINDTRAP,164,46,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PICKPOCKET,164,76,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TRACKING,164,106,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LUCK,164,136,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FATIGUE,164,166,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_AC,244,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_EFFAC,244,46,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MISSILE,244,76,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PIERCING,244,106,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SLASHING,244,136,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CRUSHING,244,166,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STR,320,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STRBON,357,16,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_INT,320,46,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_WIS,320,76,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DEX,320,106,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CON,320,136,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CHA,320,166,22,14,ES_AUTOHSCROLL
    LTEXT           "Hide in Shadows",IDC_STATIC,13,19,54,8
    LTEXT           "Detect illusion",IDC_PST,7,49,60,8,0,WS_EX_RIGHT
    LTEXT           "Set traps",IDC_STATIC,38,79,29,8
    LTEXT           "Lore",IDC_STATIC,52,139,15,8
    LTEXT           "Lockpicking",IDC_STATIC,27,109,40,8
    LTEXT           "Stealth",IDC_STATIC,134,19,23,8
    LTEXT           "Find/disarm trap",IDC_STATIC,105,49,52,8
    LTEXT           "Pickpocket",IDC_STATIC,120,79,37,8
    LTEXT           "Luck",IDC_STATIC,140,139,17,8
    LTEXT           "Tracking",IDC_STATIC,128,109,29,8
    LTEXT           "Strength",IDC_STATIC,283,19,28,8
    LTEXT           "Constitution",IDC_STATIC,273,139,38,8
    LTEXT           "Intelligence",IDC_STATIC,274,49,37,8
    LTEXT           "Wisdom",IDC_STATIC,285,79,26,8
    LTEXT           "Dexterity",IDC_STATIC,283,109,28,8
    LTEXT           "Charisma",IDC_STATIC,281,169,30,8
    LTEXT           "Fatigue",IDC_STATIC,133,169,24,8
    LTEXT           "Intoxication",IDC_STATIC,30,169,37,8
    LTEXT           "Base AC",IDC_STATIC,205,19,28,8
    LTEXT           "Effective AC",IDC_STATIC,193,49,40,8
    LTEXT           "Crushing",IDC_STATIC,205,169,28,8
    LTEXT           "Missile",IDC_STATIC,211,79,22,8
    LTEXT           "Slashing",IDC_STATIC,205,139,28,8
    LTEXT           "Piercing",IDC_STATIC,207,109,26,8
    LTEXT           "/",IDC_STATIC,347,19,8,8
END

IDD_CREATURERES DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Resistances"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_DEATH,61,13,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_WANDS,61,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POLYMORPH,61,79,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BREATH,61,112,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELLS,61,145,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FIRE,161,13,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_COLD,161,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ELECTRICITY,161,79,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ACID,161,112,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAGIC,161,145,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAGFIRE,280,13,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAGCOLD,280,46,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SLASHING,280,79,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CRUSHING,280,112,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PIERCING,280,145,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MISSILE,280,178,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Default warrior",IDC_DEF1,331,31,50,14
    PUSHBUTTON      "Default priest",IDC_DEF2,331,51,50,14
    PUSHBUTTON      "Default rogue",IDC_DEF3,331,71,50,14
    PUSHBUTTON      "Default wizard",IDC_DEF4,331,91,50,14
    LTEXT           "Death, poison",IDC_STH1,9,16,45,8
    LTEXT           "Wands",IDC_STH2,30,49,24,8
    LTEXT           "Polymorph",IDC_STH3,20,82,34,8
    LTEXT           "Breath",IDC_STH4,32,115,22,8
    LTEXT           "Spells",IDC_STH5,34,148,20,8
    LTEXT           "Resist fire",IDC_STATIC,120,16,32,8
    LTEXT           "Resist cold",IDC_STATIC,116,49,36,8
    LTEXT           "Resist electricity",IDC_STATIC,100,82,52,8
    LTEXT           "Resist acid",IDC_STATIC,116,115,36,8
    LTEXT           "Resist magic",IDC_STATIC,111,148,41,8
    LTEXT           "Resist magical fire",IDC_STATIC,211,16,58,8
    LTEXT           "Resist magical cold",IDC_STATIC,207,49,62,8
    LTEXT           "Resist slashing",IDC_STATIC,221,82,48,8
    LTEXT           "Resist crushing",IDC_STATIC,220,115,49,8
    LTEXT           "Resist piercing",IDC_STATIC,222,148,47,8
    LTEXT           "Resist missile",IDC_STATIC,227,181,42,8
    GROUPBOX        "Saving throws",IDC_STATIC,325,16,62,99,BS_FLAT
END

IDD_CREATURESTRINGS DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Soundset"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_BUDDY,50,6,40,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    PUSHBUTTON      "Clear slots",IDC_CLEAR,98,6,50,14
    PUSHBUTTON      "Copy slots",IDC_COPY,156,6,50,14
    PUSHBUTTON      "Paste slots",IDC_PASTE,214,6,50,14
    PUSHBUTTON      "Export soundset",IDC_EXPORT,272,6,56,14
    PUSHBUTTON      "Import soundset",IDC_IMPORT,336,6,55,14
    COMBOBOX        IDC_SLOTPICKER,7,22,375,170,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Spin1",IDC_SLOTSPIN,"msctls_updown32",UDS_SETBUDDYINT | 
                    UDS_AUTOBUDDY | UDS_ARROWKEYS,382,22,11,12
    EDITTEXT        IDC_REF,125,42,53,14,ES_AUTOHSCROLL
    CONTROL         "Tagged text",IDC_TAGGED,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,184,45,54,10
    EDITTEXT        IDC_SOUNDREF,282,42,53,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Play Sound",IDC_PLAY,343,42,50,14
    EDITTEXT        IDC_TEXT,7,64,386,128,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    LTEXT           "Tlk entry",IDC_STATIC,7,45,28,8
    LTEXT           "Sound ref.:",IDC_STATIC,245,45,36,8
    LTEXT           "Choose slot",IDC_STATIC,7,8,38,8
    LTEXT           "String reference",IDC_STATIC,68,45,51,8
END

IDD_CREATUREUNKNOWN DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Unused"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Clear Unknowns",IDC_CLEARALL,336,175,57,14
    EDITTEXT        IDC_LARGE,53,7,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SMALL,53,31,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BOW,53,55,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SPEAR,53,79,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BLUNT,53,103,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SPIKED,53,127,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_AXE,53,151,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MISSILE,53,175,20,14,ES_AUTOHSCROLL
    LTEXT           "Large swords",IDC_STATIC,7,7,43,8
    LTEXT           "Small swords",IDC_STATIC,8,31,42,8
    LTEXT           "Bows",IDC_STATIC,32,55,18,8
    LTEXT           "Spears",IDC_STATIC,27,79,23,8
    LTEXT           "Blunt",IDC_STATIC,33,103,17,8
    LTEXT           "Spiked",IDC_STATIC,27,127,23,8
    LTEXT           "Axe",IDC_STATIC,37,151,13,8
    LTEXT           "Missile",IDC_STATIC,28,175,22,8
    EDITTEXT        IDC_U1,84,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,108,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,132,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,156,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,180,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,204,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,228,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U8,252,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U9,276,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U10,300,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,324,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,348,20,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,372,20,20,14,ES_AUTOHSCROLL
    LTEXT           "Unknowns at 0x76 (more weapons?)",IDC_STATIC,84,7,116,8
    EDITTEXT        IDC_U20,84,116,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U21,84,52,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U22,132,52,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U23,180,52,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U24,228,52,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U25,84,84,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U26,132,84,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U27,180,84,40,14,ES_AUTOHSCROLL
    LTEXT           "0x84",IDC_STATIC,84,39,16,8
    LTEXT           "0x88",IDC_STATIC,132,39,16,8
    LTEXT           "0x8c",IDC_STATIC,180,39,16,8
    LTEXT           "0x90",IDC_STATIC,228,39,16,8
    LTEXT           "0x94",IDC_STATIC,84,71,16,8
    LTEXT           "0x98",IDC_STATIC,132,71,16,8
    LTEXT           "0x9c",IDC_STATIC,180,71,16,8
    LTEXT           "0xa0",IDC_STATIC,228,71,16,8
    EDITTEXT        IDC_U14,276,52,20,14,ES_AUTOHSCROLL
    LTEXT           "Sex",IDC_STATIC,276,39,13,8
    EDITTEXT        IDC_U15,300,52,20,14,ES_AUTOHSCROLL
    LTEXT           "0x243",IDC_STATIC,300,39,20,8
    EDITTEXT        IDC_U16,108,116,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U17,132,116,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U18,156,116,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U19,180,116,20,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U28,228,84,40,14,ES_AUTOHSCROLL
    LTEXT           "Internal object identifier (IESDP)",IDC_STATIC,84,103,
                    101,8
    EDITTEXT        IDC_U29,84,148,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U30,132,148,40,14,ES_AUTOHSCROLL
    LTEXT           "Internal object identifier (IWD2)",IDC_STATIC,84,135,98,
                    8
    EDITTEXT        IDC_REPUTATION,324,52,40,14,ES_AUTOHSCROLL
    LTEXT           "Reputation (useless)",IDC_STATIC,324,39,65,8
    PUSHBUTTON      "Torment specific",IDC_TORMENT,336,138,57,14
END

IDD_AREASONGS DIALOG DISCARDABLE  0, 0, 258, 246
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Songs"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_DAY,41,21,117,163,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "View musiclist",IDC_MUSDAY,164,21,50,14
    EDITTEXT        IDC_UNKNOWN3,222,21,22,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_NIGHT,41,45,117,141,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "View musiclist",IDC_MUSNIGHT,164,45,50,14
    EDITTEXT        IDC_UNKNOWN4,222,45,22,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_UNKNOWN1,41,69,117,162,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "View musiclist",IDC_MUSWIN,164,69,50,14
    EDITTEXT        IDC_UNKNOWN5,222,69,22,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_BATTLE,41,93,117,154,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "View musiclist",IDC_MUSBATTLE,164,93,50,14
    EDITTEXT        IDC_UNKNOWN6,222,93,22,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_UNKNOWN2,41,117,117,158,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "View musiclist",IDC_MUSLOSE,164,117,50,14
    EDITTEXT        IDC_UNKNOWN7,222,117,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_AMBI1D,15,146,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_AMBI2D,118,146,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_VOLUMED,222,146,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_AMBI1N,15,170,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_AMBI2N,118,170,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_VOLUMEN,222,170,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,211,196,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Clear songs",IDC_CLEAR,7,225,50,14
    PUSHBUTTON      "Back",IDOK,201,225,50,14
    LTEXT           "Day",IDC_STATIC,18,23,14,8
    LTEXT           "Night",IDC_STATIC,14,47,18,8
    LTEXT           "Battle",IDC_STATIC,14,95,19,8
    LTEXT           "Win",IDC_STATIC,18,71,14,8
    LTEXT           "Lose",IDC_STATIC,16,119,16,8
    LTEXT           "Song index",IDC_STATIC,41,9,36,8
    LTEXT           "Volume?",IDC_STATIC,220,134,28,8
    LTEXT           "Ambients",IDC_STATIC,15,134,30,8
    LTEXT           "Reverb flags:",IDC_STATIC,164,196,43,8
    LTEXT           "Unknowns",IDC_STATIC,213,7,35,8
    PUSHBUTTON      "Play",IDC_PLAY,60,146,26,14
    PUSHBUTTON      "Play",IDC_PLAY1,60,170,26,14
    PUSHBUTTON      "Play",IDC_PLAY2,164,146,26,14
    PUSHBUTTON      "Play",IDC_PLAY3,164,170,26,14
    PUSHBUTTON      "Browse",IDC_BROWSE,89,146,26,14
    PUSHBUTTON      "Browse",IDC_BROWSE1,89,170,26,14
    PUSHBUTTON      "Browse",IDC_BROWSE3,193,170,26,14
    PUSHBUTTON      "Browse",IDC_BROWSE2,193,146,26,14
END

IDD_AREAAMBIENT DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Ambients"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_AMBIENTPICKER,7,20,130,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POSX,7,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,42,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RADIUS,77,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HEIGHT,112,50,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U28,7,80,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2C,42,80,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_VOLUME,7,109,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NUM,42,109,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_GAP,77,109,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUNDNUM,109,109,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,7,137,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U90,42,138,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "xxxxxxxxxxxxxxxxxxxxxxxx",IDC_SCHEDULE,7,170,83,14,
                    BS_FLAT
    CONTROL         "Enabled",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,239,74,42,10
    CONTROL         "Eax disabled",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,239,86,56,10
    CONTROL         "Global (ignore radius)",IDC_FLAG3,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,239,98,82,10
    CONTROL         "Random sound selection",IDC_FLAG4,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,239,110,94,10
    COMBOBOX        IDC_AMBINUMPICKER,185,18,85,104,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Add",IDC_ADDWAV,303,15,31,14
    PUSHBUTTON      "Remove",IDC_DELWAV,303,32,31,14
    EDITTEXT        IDC_WAVRES,185,49,72,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Play",IDC_PLAY,265,49,31,14
    PUSHBUTTON      "Browse",IDC_BROWSE,303,49,31,14
    PUSHBUTTON      "Add ambient",IDC_ADD,411,20,62,14
    PUSHBUTTON      "Remove ambient",IDC_REMOVE,411,50,62,14
    PUSHBUTTON      "Copy ambient",IDC_COPY,411,80,62,14
    PUSHBUTTON      "Paste ambient",IDC_PASTE,411,110,62,14
    PUSHBUTTON      "Set center",IDC_SET,411,140,62,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,411,170,62,14
    LTEXT           "/ 0",IDC_MAXWAV,279,20,16,8
    LTEXT           "Ambient",IDC_STATIC,7,6,26,8
    LTEXT           "Position",IDC_STATIC,7,40,26,8
    LTEXT           "/ 0",IDC_MAXAMBIENT,141,23,17,8
    LTEXT           "Radius",IDC_STATIC,77,40,23,8
    LTEXT           "Height",IDC_STATIC,112,40,22,8
    LTEXT           "Volume",IDC_STATIC,7,99,24,8
    LTEXT           "Schedule",IDC_STATIC,7,159,31,8
    LTEXT           "Static",IDC_TIMEOFDAY,94,173,38,8
    GROUPBOX        "Sound resources",IDC_STATIC,180,7,167,60,BS_FLAT
    LTEXT           "0x80",IDC_STATIC,42,99,16,8
    LTEXT           "Interval",IDC_STATIC,77,98,24,8
    LTEXT           "Sounds to use",IDC_STATIC,109,98,46,8
    LTEXT           "0x2c",IDC_STATIC,45,71,16,8
    LTEXT           "0x28",IDC_STATIC,7,71,16,8
    LTEXT           "0x90",IDC_STATIC,42,128,16,8
    LTEXT           "Ambient",IDC_STATIC,185,38,26,8
    LTEXT           "Flags",IDC_STATIC,7,128,18,8
    CONTROL         "Disable in low mem.",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,239,122,78,10
END

IDD_AREAINT DIALOG DISCARDABLE  0, 0, 340, 206
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Rest interruptions"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_SECTION,5,16,132,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_SPAWNNUMPICKER,151,17,85,123,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_STRREF,5,44,48,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,59,44,201,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CRERES,5,74,66,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN9A,9,133,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN9C,56,133,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWNA0,103,133,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWNA2,150,133,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MIN,197,133,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAX,9,170,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DAY,56,170,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NIGHT,103,170,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWNAC,150,170,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWNAE,197,170,33,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,78,74,31,14
    PUSHBUTTON      "Add",IDC_ADDCRE,302,28,31,14
    PUSHBUTTON      "Remove",IDC_DELCRE,302,43,31,14
    PUSHBUTTON      "Clear interruptions",IDC_CLEAR,272,129,61,14
    PUSHBUTTON      "Back",IDOK,283,185,50,14
    LTEXT           "Section name",IDC_STATIC,5,7,44,8
    LTEXT           "Tlk entry",IDC_STATIC,5,34,28,8
    LTEXT           "Creature",IDC_STATIC,5,64,28,8
    LTEXT           "/ 0",IDC_MAXCRE,250,19,16,8
    LTEXT           "Encounter difficulty ?",IDC_STATIC,9,114,35,17
    LTEXT           "0x9c",IDC_STATIC,56,123,16,8
    LTEXT           "0xa0",IDC_STATIC,103,123,16,8
    LTEXT           "0xa2",IDC_STATIC,150,123,16,8
    LTEXT           "Trigger count ?",IDC_STATIC,9,151,33,17
    LTEXT           "Enabled",IDC_STATIC,197,123,27,8
    LTEXT           "Day chance",IDC_STATIC,56,151,34,17
    LTEXT           "Night chance",IDC_STATIC,103,151,33,17
    LTEXT           "0xac",IDC_STATIC,150,160,16,8
    LTEXT           "0xae",IDC_STATIC,197,160,16,8
    GROUPBOX        "Global data",IDC_STATIC,5,96,232,103,BS_FLAT
    EDITTEXT        IDC_DAYMOVIE,116,74,66,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NIGHTMOVIE,227,74,66,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,189,73,31,14
    PUSHBUTTON      "Browse",IDC_BROWSE3,300,73,31,14
    LTEXT           "Resting movie at day",IDC_STATIC,116,62,67,8
    LTEXT           "Resting movie at night",IDC_STATIC,227,63,71,8
END

IDD_AREACONTAINER DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Containers"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_CONTAINERPICKER,7,16,116,167,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_POSX,7,40,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,34,40,24,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_TYPE,61,40,89,142,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_LOCKED,7,66,24,14,ES_AUTOHSCROLL
    CONTROL         "Locked",IDC_HIDDEN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,38,56,40,10
    CONTROL         "Disabled",IDC_NOPC,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,38,66,43,10
    CONTROL         "Trap reset",IDC_TRESET,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,82,56,48,10
    EDITTEXT        IDC_DIFF,157,66,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TRAPPED,7,92,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECTED,39,92,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECT,74,92,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_REMOVAL,115,92,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN80,157,118,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSX,7,118,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSY,39,118,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPT,65,118,54,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,123,118,28,14
    EDITTEXT        IDC_UNKNOWN56,157,92,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPTNAME,7,144,91,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KEY,103,144,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,158,144,28,14
    EDITTEXT        IDC_STRREF,7,175,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,54,175,320,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_ITEMNUMPICKER,221,17,68,167,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Add item",IDC_ADDITEM,315,17,50,14
    EDITTEXT        IDC_ITEMRES,221,41,55,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,281,41,28,14
    PUSHBUTTON      "Remove item",IDC_DELITEM,315,41,50,14
    EDITTEXT        IDC_FLAGS,221,68,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_USE1,250,68,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_USE2,279,68,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_USE3,308,68,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN8,337,68,24,14,ES_AUTOHSCROLL
    CONTROL         "Identified",IDC_IDENTIFIED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,221,85,45,10
    CONTROL         "Unstealable",IDC_NOSTEAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,221,98,53,10
    CONTROL         "Stolen",IDC_STOLEN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,85,36,10
    CONTROL         "No drop",IDC_NODROP,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,98,41,10
    EDITTEXT        IDC_POS1X,225,133,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y,256,133,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2X,225,149,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2Y,256,149,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Edit polygon",IDC_EDITPOLYGON,287,123,60,14
    PUSHBUTTON      "Recalculate Box",IDC_RECALCBOX,287,149,60,14
    PUSHBUTTON      "Add container",IDC_ADD,411,6,62,14
    PUSHBUTTON      "Remove container",IDC_REMOVE,411,30,62,14
    PUSHBUTTON      "Copy container",IDC_COPY,411,54,62,14
    PUSHBUTTON      "Paste container",IDC_PASTE,411,78,62,14
    PUSHBUTTON      "Set position",IDC_SET,411,102,62,14
    PUSHBUTTON      "Select container",IDC_SELECTION,411,126,62,14
    PUSHBUTTON      "Fix items",IDC_FIT,411,150,62,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,411,174,62,14
    LTEXT           "/ 0",IDC_MAXCONTAINER,128,18,17,8
    LTEXT           "Position",IDC_STATIC,7,30,26,8
    LTEXT           "Type",IDC_STATIC,61,30,17,8
    GROUPBOX        "Items",IDC_STATIC,218,7,155,109,BS_FLAT
    LTEXT           "Container name",IDC_STATIC,7,6,50,8
    LTEXT           "Lock strength",IDC_STATIC,137,56,44,8
    LTEXT           "Itemname",IDC_STATIC,221,31,32,8
    LTEXT           "Amount/charges",IDC_STATIC,250,58,54,8
    LTEXT           "Flags",IDC_STATIC,221,58,18,8
    LTEXT           "Unknown",IDC_STATIC,337,58,32,8
    LTEXT           "/ 0",IDC_MAXITEM,290,19,23,8
    LTEXT           "Trapped",IDC_STATIC,7,82,28,8
    LTEXT           "Removal",IDC_STATIC,115,82,29,8
    LTEXT           "Detection",IDC_STATIC,74,82,32,8
    LTEXT           "Locked",IDC_STATIC,7,56,25,8
    LTEXT           "%",IDC_STATIC,102,96,8,8
    LTEXT           "%",IDC_STATIC,143,96,8,8
    LTEXT           "Detected",IDC_STATIC,39,82,30,8
    LTEXT           "Trap launch point",IDC_STATIC,7,108,56,8
    LTEXT           "Key",IDC_STATIC,103,134,13,8
    LTEXT           "Bounding box",IDC_STATIC,225,123,44,8
    LTEXT           "Script",IDC_STATIC,65,108,19,8
    LTEXT           "Open fail text (reference && text)",IDC_STATIC,7,165,98,
                    8
    LTEXT           "0x80",IDC_STATIC,157,108,16,8
    LTEXT           "0x56",IDC_STATIC,157,82,16,8
    LTEXT           "Scripting name ?",IDC_STATIC,7,134,54,8
    GROUPBOX        "Vertices",IDC_STATIC,218,111,155,57,BS_FLAT
END

IDD_AREADOOR DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Doors"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_DOORPICKER,7,16,144,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_DOORID,7,43,57,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,68,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSX,96,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TPOSY,124,43,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Set",IDC_SET,152,43,34,14
    EDITTEXT        IDC_STRREF,7,151,40,14,ES_AUTOHSCROLL
    CONTROL         "Open",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    91,33,10
    CONTROL         "Detectable",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,148,91,51,10
    CONTROL         "Linked",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    95,104,41,10
    CONTROL         "Transp.",IDC_FLAG10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,50,117,40,10
    CONTROL         "Locked",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    50,91,40,10
    CONTROL         "Broken",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    7,104,39,10
    CONTROL         "Secret",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    148,104,39,10
    CONTROL         "Use up key",IDC_FLAG11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,95,117,52,10
    CONTROL         "Reset trap",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,95,91,49,10
    CONTROL         "Unclosed",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,50,104,46,10
    CONTROL         "Found it",IDC_FLAG9,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,117,41,10
    CONTROL         "Slide",IDC_FLAG12,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    148,117,31,10
    EDITTEXT        IDC_INFOSTR,52,151,174,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CURSORIDX,10,177,40,14,ES_AUTOHSCROLL
    CONTROL         "Spin1",IDC_SPINCURSOR,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,44,177,11,14
    CONTROL         "",IDC_CURSOR,"Static",SS_BITMAP | SS_SUNKEN,56,169,16,
                    14
    EDITTEXT        IDC_SOUND1,96,177,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,141,177,28,14
    PUSHBUTTON      "Play Sound",IDC_PLAY,175,177,41,14
    EDITTEXT        IDC_SOUND2,224,177,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,269,177,28,14
    PUSHBUTTON      "Play Sound",IDC_PLAYSOUND,302,177,41,14
    EDITTEXT        IDC_U54,348,177,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LOCKED,193,16,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DIFF,237,16,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KEY,284,16,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECT,193,43,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_REMOVAL,237,43,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPT,284,43,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_TRAPPED,193,70,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DETECTED,237,70,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DIALOG,284,70,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,329,16,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE5,329,44,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE4,329,70,28,14
    PUSHBUTTON      "Add door",IDC_ADD,421,8,52,14
    PUSHBUTTON      "Remove door",IDC_REMOVE,421,30,52,14
    PUSHBUTTON      "Copy door",IDC_COPY,421,52,52,14
    PUSHBUTTON      "Paste door",IDC_PASTE,421,74,52,14
    CONTROL         "Open",IDC_OPEN,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,307,104,33,10
    EDITTEXT        IDC_POS1X,295,128,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y,323,128,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2X,295,144,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2Y,323,144,24,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Edit blocks",IDC_EDITBLOCK,352,104,56,14
    PUSHBUTTON      "Edit polygon",IDC_EDITPOLYGON,352,125,56,14
    PUSHBUTTON      "Recalculate Box",IDC_RECALCBOX,352,146,56,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,421,176,52,14
    LTEXT           "/ 0",IDC_MAXDOOR,159,19,26,8
    LTEXT           "Door name",IDC_STATIC,7,6,36,8
    LTEXT           "Identifier",IDC_STATIC,7,33,28,8
    LTEXT           "Flags",IDC_STATIC,68,33,18,8
    LTEXT           "Bounding box",IDC_STATIC,295,118,44,8
    GROUPBOX        "Vertices && impeded blocks",IDC_STATIC,291,92,122,70,
                    BS_FLAT
    LTEXT           "Opening sound",IDC_STATIC,96,166,49,8
    LTEXT           "Closing sound",IDC_STATIC,224,166,45,8
    LTEXT           "Discovery",IDC_STATIC,193,6,32,8
    LTEXT           "Cursor index",IDC_STATIC,10,166,40,8
    LTEXT           "Trap detection && removal",IDC_STATIC,193,33,80,8
    LTEXT           "Trapped",IDC_STATIC,193,60,28,8
    LTEXT           "Detected",IDC_STATIC,237,60,30,8
    LTEXT           "Launch point",IDC_STATIC,96,33,42,8
    LTEXT           "Key",IDC_STATIC,284,6,13,8
    LTEXT           "Dialog",IDC_STATIC,284,60,21,8
    LTEXT           "Script",IDC_STATIC,284,33,19,8
    LTEXT           "%",IDC_STATIC,226,46,8,8
    LTEXT           "%",IDC_STATIC,269,46,8,8
    LTEXT           "0x54",IDC_STATIC,351,166,16,8
    LTEXT           "%",IDC_STATIC,269,19,8,8
    LTEXT           "Lock difficulty",IDC_STATIC,237,6,44,8
    LTEXT           "Open fail",IDC_STATIC,7,141,29,8
    LTEXT           "Region link",IDC_STATIC,7,59,36,8
    LTEXT           "%",IDC_STATIC,226,19,8,8
    EDITTEXT        IDC_POS1X2,199,100,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y2,232,100,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2X2,199,127,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS2Y2,232,127,28,14,ES_AUTOHSCROLL
    LTEXT           "Open location front",IDC_STATIC,201,91,61,8
    LTEXT           "Open location back",IDC_STATIC,201,117,63,8
    PUSHBUTTON      "Set",IDC_SET2,263,100,24,14
    PUSHBUTTON      "Set",IDC_SET3,263,127,24,14
    PUSHBUTTON      "Select door",IDC_SELECTION,231,151,56,14
    COMBOBOX        IDC_AREA,7,71,179,89,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
END

IDD_AREAVARIABLE DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Variables && notes"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_VARIABLEPICKER,12,22,144,170,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_VARIABLE,12,51,156,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN20,12,81,36,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN24,57,81,36,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_VALUE,102,81,36,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Add variable",IDC_ADD,175,22,60,14
    PUSHBUTTON      "Remove variable",IDC_REMOVE,175,51,60,14
    PUSHBUTTON      "Copy variable",IDC_COPY,175,81,60,14
    PUSHBUTTON      "Paste variable",IDC_PASTE,175,111,60,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN,175,142,60,14
    COMBOBOX        IDC_NOTEPICKER,252,22,144,171,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POS1X,252,51,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POS1Y,300,51,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STRREF,281,78,40,14,ES_AUTOHSCROLL
    CONTROL         "Tagged",IDC_TAGGED,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,336,81,41,10
    EDITTEXT        IDC_NOTE,252,99,154,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWNC,252,130,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_COLOR,300,130,78,111,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Add note",IDC_ADD2,411,22,60,14
    PUSHBUTTON      "Remove note",IDC_REMOVE2,411,51,60,14
    PUSHBUTTON      "Copy note",IDC_COPY2,411,81,60,14
    PUSHBUTTON      "Paste note",IDC_PASTE2,411,111,60,14
    PUSHBUTTON      "Edit unknowns",IDC_UNKNOWN2,411,142,60,14
    PUSHBUTTON      "Set position",IDC_SET,411,173,60,14
    LTEXT           "Variable",IDC_STATIC,12,41,26,8
    LTEXT           "Value",IDC_STATIC,102,71,19,8
    LTEXT           "0x20",IDC_STATIC,12,71,16,8
    LTEXT           "Position",IDC_STATIC,252,41,26,8
    LTEXT           "Note",IDC_STATIC,253,81,16,8
    LTEXT           "Colour",IDC_STATIC,300,120,21,8
    LTEXT           "0x0c",IDC_STATIC,252,120,16,8
    LTEXT           "/ 0",IDC_MAXVARIABLE,158,24,20,8
    LTEXT           "/ 0",IDC_MAXNOTE,397,24,20,8
    LTEXT           "0x24",IDC_STATIC,57,71,16,8
    GROUPBOX        "Choose variable",IDC_STATIC,7,6,237,185,BS_FLAT
    GROUPBOX        "Choose mapnote",IDC_STATIC,244,6,229,185,BS_FLAT
END

IDD_DIALOGEDIT DIALOGEX 0, 0, 464, 286
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Dialog:"
MENU IDR_TREEMENU
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    CONTROL         "Tree1",IDC_DIALOGTREE,"SysTreeView32",TVS_HASBUTTONS | 
                    TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS | 
                    TVS_INFOTIP | TVS_FULLROWSELECT | WS_BORDER | WS_TABSTOP,
                    7,7,330,168,WS_EX_CLIENTEDGE
    EDITTEXT        IDC_TEXT,36,191,421,69,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    DEFPUSHBUTTON   "Load Dialog",IDC_LOAD,7,265,43,14
    PUSHBUTTON      "Load external dialog",IDC_LOADEX,77,265,68,14
    PUSHBUTTON      "Save Dialog As...",IDC_SAVEAS,172,265,60,14
    PUSHBUTTON      "E&xit",IDCANCEL,414,265,43,14
    LTEXT           "Text",IDC_LABEL,36,180,110,8
    PUSHBUTTON      "Option",IDC_OPTION,407,26,50,14
    PUSHBUTTON      "Condition",IDC_CONDITION,407,47,50,14
    PUSHBUTTON      "Journal",IDC_JOURNAL,407,88,50,14
    PUSHBUTTON      "Action",IDC_ACTION,407,67,50,14
    CONTROL         "Has reply",IDC_HASOPTION,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,344,29,59,10
    CONTROL         "Has condition",IDC_HASCONDITION,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,344,50,59,10
    CONTROL         "Has action",IDC_HASACTION,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,344,70,59,10
    CONTROL         "Has journal",IDC_HASJOURNAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,344,91,59,10
    COMBOBOX        IDC_JOURTYPE,344,115,113,152,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Journal type",IDC_STATIC2,344,105,39,8
    EDITTEXT        IDC_FLAGS,407,7,50,14,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "Tagged text",IDC_TAGGED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,206,177,54,10
    CONTROL         "Freeze flag",IDC_VERSION,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,344,9,51,10
    EDITTEXT        IDC_STRREF,407,175,50,14,ES_AUTOHSCROLL
    LTEXT           "String reference",IDC_STATIC3,406,164,51,8
    EDITTEXT        IDC_VALUE,407,148,50,14,ES_AUTOHSCROLL
    LTEXT           "Transition flags",IDC_STATIC4,352,151,48,8
    CONTROL         "",IDC_U1,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,193,24,8
    CONTROL         "",IDC_U2,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,201,24,8
    CONTROL         "",IDC_U3,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,209,24,8
    CONTROL         "",IDC_U4,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,217,24,8
    CONTROL         "",IDC_U5,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,225,24,8
    CONTROL         "",IDC_U6,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,233,24,8
    CONTROL         "",IDC_U7,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,241,24,8
    CONTROL         "",IDC_U8,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,7,249,24,8
    EDITTEXT        IDC_SOUND,349,175,50,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Sound reference",IDC_STATIC5,349,164,54,8
    PUSHBUTTON      "Play sound",IDC_PLAY,296,175,40,14
    PUSHBUTTON      "Browse",IDC_BROWSE,264,175,28,14
    LTEXT           "Linking dialog",IDC_STATIC6,356,133,44,8
    EDITTEXT        IDC_DIALOG,407,130,50,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "New dialog",IDC_NEW,259,265,50,14
    PUSHBUTTON      "Check Dialog",IDC_CHECK,336,265,50,14
    PUSHBUTTON      "New string",IDC_NEWVALUE,152,175,50,14
    CONTROL         "",IDC_U9,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,258,24,8
    CONTROL         "",IDC_U10,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,202,24,8
    CONTROL         "",IDC_U11,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,26,210,24,8
    CONTROL         "",IDC_U12,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,35,219,24,8
    CONTROL         "",IDC_U13,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,45,228,24,8
    CONTROL         "",IDC_U14,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,54,236,24,8
    CONTROL         "",IDC_U15,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,63,245,24,8
    CONTROL         "",IDC_U16,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,73,254,24,8
    CONTROL         "",IDC_U17,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,202,24,8
    CONTROL         "",IDC_U18,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,26,210,24,8
    CONTROL         "",IDC_U19,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,35,219,24,8
    CONTROL         "",IDC_U20,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,45,228,24,8
    CONTROL         "",IDC_U21,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,54,236,24,8
    CONTROL         "",IDC_U22,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,63,245,24,8
    CONTROL         "",IDC_U23,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,73,254,24,8
    CONTROL         "",IDC_U24,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,202,24,8
    CONTROL         "",IDC_U25,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,26,210,24,8
    CONTROL         "",IDC_U26,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,35,219,24,8
    CONTROL         "",IDC_U27,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,45,228,24,8
    CONTROL         "",IDC_U28,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,54,236,24,8
    CONTROL         "",IDC_U29,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,63,245,24,8
    CONTROL         "",IDC_U30,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,73,254,24,8
    CONTROL         "",IDC_U31,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,202,24,8
    CONTROL         "",IDC_U32,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,26,210,24,8
    CONTROL         "",IDC_U33,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,35,219,24,8
    CONTROL         "",IDC_U34,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,45,228,24,8
    CONTROL         "",IDC_U35,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,54,236,24,8
    CONTROL         "",IDC_U36,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,63,245,24,8
    CONTROL         "",IDC_U37,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,73,254,24,8
    CONTROL         "",IDC_U38,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,17,202,24,8
    CONTROL         "",IDC_U39,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,26,210,24,8
    CONTROL         "",IDC_U40,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,35,219,24,8
END

IDD_SEARCHNODE DIALOG DISCARDABLE  0, 0, 210, 117
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Search dialog node"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_TEXT,7,18,196,14,ES_AUTOHSCROLL | WS_GROUP
    CONTROL         "Ignore case",IDC_IGNORECASE,"Button",BS_AUTOCHECKBOX | 
                    WS_GROUP | WS_TABSTOP,150,6,53,10
    PUSHBUTTON      "From top",IDC_TOP,7,35,50,14,WS_GROUP
    CONTROL         "State",IDC_TYPE,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
                    WS_TABSTOP,7,55,33,10
    EDITTEXT        IDC_NODE,7,75,40,14,ES_AUTOHSCROLL | WS_GROUP
    CONTROL         "Strings",IDC_STRING,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,93,49,37,10
    CONTROL         "Script",IDC_SCRIPT,"Button",BS_AUTORADIOBUTTON,93,61,34,
                    10
    CONTROL         "Both",IDC_BOTH2,"Button",BS_AUTORADIOBUTTON,93,73,31,10
    CONTROL         "Transition",IDC_TRAN,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,150,49,47,10
    CONTROL         "State",IDC_STATE,"Button",BS_AUTORADIOBUTTON,150,61,33,
                    10
    CONTROL         "Both",IDC_BOTH,"Button",BS_AUTORADIOBUTTON,150,73,31,10
    DEFPUSHBUTTON   "Search",IDOK,8,96,50,14,WS_GROUP
    PUSHBUTTON      "Back",IDCANCEL,153,96,50,14,WS_GROUP
    LTEXT           "Node #",IDC_STATIC,7,66,25,8
    LTEXT           "Text",IDC_STATIC,7,5,15,8
    GROUPBOX        "Node type",IDC_STATIC,145,34,58,54,BS_FLAT
    GROUPBOX        "Part",IDC_STATIC,89,34,57,54,BS_FLAT
END

IDD_ADDLINK DIALOG DISCARDABLE  0, 0, 127, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Modify link"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_DIALOG,7,18,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,70,18,50,14
    EDITTEXT        IDC_STATE,7,49,40,14,ES_AUTOHSCROLL
    CONTROL         "Internal link",IDC_INTERNAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,68,38,52,10
    CONTROL         "Remove link",IDC_REMOVE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,68,49,55,10
    DEFPUSHBUTTON   "OK",IDOK,7,74,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,70,74,50,14
    LTEXT           "Target dialog",IDC_STATIC,7,7,42,8
    LTEXT           "State index",IDC_STATIC,7,38,36,8
END

IDD_PROJEXT DIALOGEX 0, 0, 410, 191
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Area extension header"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_DURATION,142,72,55,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Back",IDOK,352,170,50,14
    CONTROL         "Projectile visible",IDC_ATTR1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,34,66,10
    CONTROL         "Target inanimates",IDC_ATTR2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,44,72,10
    CONTROL         "Explode on trigger",IDC_ATTR3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,54,73,10
    CONTROL         "One explosion at a time",IDC_ATTR4,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,64,89,10
    CONTROL         "Use secondary projectile",IDC_ATTR5,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,74,93,10
    CONTROL         "Draw fragments",IDC_ATTR6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,84,65,10
    CONTROL         "Target only enemies",IDC_ATTR7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,94,79,10
    CONTROL         "Party only (with only enemies)",IDC_ATTR8,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,104,108,10
    CONTROL         "Caster level * explosions",IDC_ATTR9,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,114,92,10
    CONTROL         "Multiple set off",IDC_ATTR10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,124,61,10
    CONTROL         "Use VVC",IDC_ATTR11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,142,165,45,10
    CONTROL         "Cone shape",IDC_ATTR12,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,142,146,54,10
    CONTROL         "13",IDC_ATTR13,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,
                    134,24,10
    CONTROL         "No explosion ?",IDC_ATTR14,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,144,63,10
    CONTROL         "Delayed explosion ?",IDC_ATTR15,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,154,79,10
    CONTROL         "Affect only one ?",IDC_ATTR16,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,164,69,10
    EDITTEXT        IDC_ATTR,13,16,55,14,ES_AUTOHSCROLL
    LTEXT           "Attributes (16 bits)",IDC_STATIC,13,7,57,8
    EDITTEXT        IDC_UNKNOWN2,76,16,55,14,ES_AUTOHSCROLL
    LTEXT           "0x202",IDC_STATIC,76,7,20,8
    LTEXT           "Trigger radius",IDC_STATIC,142,7,44,8
    LTEXT           "Area of effect",IDC_STATIC,254,7,44,8
    EDITTEXT        IDC_SOUND,249,44,55,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Set off sound",IDC_STATIC,249,33,43,8
    PUSHBUTTON      "Browse",IDC_BROWSE1,311,44,28,14
    PUSHBUTTON      "Play",IDC_PLAY1,343,44,28,14
    COMBOBOX        IDC_TRIGGER,142,18,92,216,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_AREA,249,18,124,216,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CONESIZE,198,146,92,76,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_EXPLOSION,142,126,92,122,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Set off animation",IDC_STATIC,142,115,54,8
    LTEXT           "Duration (or trigger count)",IDC_STATIC,142,61,81,8
    COMBOBOX        IDC_FRAGMENT,142,100,92,138,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Fragment graphics animation",IDC_STATIC,142,89,91,8
    EDITTEXT        IDC_DELAY,142,44,55,14,ES_AUTOHSCROLL
    LTEXT           "Delay (between explosions)",IDC_STATIC,142,33,87,8
    LTEXT           "Secondary projectile (projectl.ids-1)",IDC_STATIC,249,
                    61,110,8
    COMBOBOX        IDC_UNKNOWN14,249,72,154,162,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_COLOR,249,126,118,14,ES_AUTOHSCROLL
    LTEXT           "Set off animation colour",IDC_STATIC,249,115,75,8
    COMBOBOX        IDC_PROJECTILE,249,100,154,107,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Explosion projectile (projectl.ids)",IDC_STATIC,249,89,
                    100,8
    EDITTEXT        IDC_VVC,200,165,55,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "GemRB specific",IDC_UNKNOWN,322,146,81,14
    PUSHBUTTON      "Browse",IDC_BROWSE,260,165,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE2,375,126,28,14
END

IDD_GAMEEDIT DIALOGEX 0, 0, 410, 258
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit game:"
MENU IDR_GAME
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    COMBOBOX        IDC_NPCPICKER,11,13,145,230,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Add NPC",IDC_ADDNPC,232,13,56,14
    EDITTEXT        IDC_AREA,11,37,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,60,37,38,14
    EDITTEXT        IDC_XPOS,109,37,33,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS,150,37,33,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Remove NPC",IDC_DELNPC,232,37,56,14
    EDITTEXT        IDC_CRERES,11,63,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,60,63,38,14
    COMBOBOX        IDC_FACE,109,63,69,176,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_VARIABLEPICKER,11,91,145,148,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_VARNAME,11,110,143,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_VALUE,11,137,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Remove",IDC_REMOVEVAR,60,137,38,14
    PUSHBUTTON      "Add",IDC_ADDVAR,109,137,38,14
    COMBOBOX        IDC_VARIABLEPICKER2,11,164,145,89,CBS_DROPDOWN | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_VARNAME2,11,180,143,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_VALUE2,11,207,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Remove",IDC_REMOVEVAR2,60,207,38,14
    PUSHBUTTON      "Add",IDC_ADDVAR2,109,207,38,14
    COMBOBOX        IDC_FAMILIARPICKER,166,91,61,161,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_FAMILIAR,233,91,40,14,ES_UPPERCASE | ES_AUTOHSCROLL
    COMBOBOX        IDC_JOURNALPICKER,166,124,61,120,CBS_DROPDOWN | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_STRREF,242,124,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CHAPTER,166,148,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SECTION,205,148,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TIME,242,148,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,166,166,117,14,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Add entry",IDC_ADDJOURNAL,166,183,50,14
    PUSHBUTTON      "Remove entry",IDC_DELJOURNAL,233,183,50,14
    EDITTEXT        IDC_PARTYSIZE,297,13,48,14,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Clear Party",IDC_PARTY,360,13,38,14
    COMBOBOX        IDC_CREATURENUM,297,37,58,96,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Edit PC",IDC_EDIT,360,36,38,14
    PUSHBUTTON      "Clear Joinables",IDC_JOINABLE,346,128,56,14
    PUSHBUTTON      "Clear Variables",IDC_VARIABLES,346,151,56,14
    PUSHBUTTON      "Clear Deathvars",IDC_DVAR,346,174,56,14
    PUSHBUTTON      "Clear Journal",IDC_JOURNAL,346,203,56,14
    DEFPUSHBUTTON   "Load Game",IDC_LOAD,7,237,50,14
    PUSHBUTTON      "Load external game",IDC_LOADEX,70,237,76,14
    PUSHBUTTON      "Save Game As...",IDC_SAVEAS,159,237,66,14
    PUSHBUTTON      "New Game",IDC_NEW,238,237,46,14
    PUSHBUTTON      "Check Game",IDC_CHECK,297,237,46,14
    PUSHBUTTON      "E&xit",IDCANCEL,356,237,46,14
    GROUPBOX        "NPC",IDC_STATIC,7,3,284,82,BS_FLAT
    LTEXT           "Area",IDC_STATIC,11,27,16,8
    LTEXT           "Xpos",IDC_STATIC,109,27,17,8
    LTEXT           "Ypos",IDC_STATIC,150,27,17,8
    LTEXT           "Creature",IDC_STATIC,11,53,28,8
    GROUPBOX        "Familiars",IDC_STATIC,162,80,129,31,BS_FLAT
    GROUPBOX        "Variables",IDC_VARHEADER,7,80,155,78,BS_FLAT
    GROUPBOX        "Death variables",IDC_VARHEADER2,7,153,155,74,BS_FLAT
    LTEXT           "Value",IDC_STATIC,11,127,19,8
    LTEXT           "Value",IDC_STATIC,11,196,19,8
    GROUPBOX        "Journal",IDC_STATIC,162,106,129,94,BS_FLAT
    LTEXT           "Original",IDC_MODIFIED,164,13,50,11,0,WS_EX_STATICEDGE
    LTEXT           "Orientation",IDC_STATIC,109,53,35,8
    LTEXT           "Chapter",IDC_STATIC,166,139,26,8
    LTEXT           "Time",IDC_STATIC,242,139,16,8
    LTEXT           "Section",IDC_STATIC,205,139,25,8
    LTEXT           "Current party",IDC_STATIC,297,3,41,8
    LTEXT           "Game revision: ",IDC_REVISION,171,210,121,8
    PUSHBUTTON      "Stats",IDC_EDITLINK,360,59,38,14
    PUSHBUTTON      "Stats",IDC_EDITLINK2,232,62,56,14
    PUSHBUTTON      "Edit NPC",IDC_EDIT2,185,37,38,14
    LTEXT           "StrRef",IDC_STATIC,242,115,21,8
    PUSHBUTTON      "General Data",IDC_GENERAL,346,105,56,14
    PUSHBUTTON      "PC data",IDC_EDITBLOCK,360,82,38,14
    PUSHBUTTON      "NPC data",IDC_EDITBLOCK2,185,62,38,14
END

IDD_MAPEDIT DIALOG DISCARDABLE  0, 0, 410, 250
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit World Map:"
MENU IDR_WORLDMAP
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_MAPCOUNT,7,7,92,188,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_MOS,7,35,55,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,66,35,28,14
    EDITTEXT        IDC_STRREF,104,35,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,149,35,145,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAPICONS,7,65,55,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,66,65,28,14
    EDITTEXT        IDC_WIDTH,104,65,35,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HEIGHT,142,65,35,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAPNUMBER,180,65,35,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN18,218,65,35,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN1C,256,65,35,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_AREAPICKER,7,95,92,101,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_AREA,142,95,44,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,193,95,28,14
    EDITTEXT        IDC_NAME,227,95,44,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LONGNAME,279,95,65,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ICONIDX,7,123,40,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_ICONRES,"Static",SS_BITMAP | SS_SUNKEN,52,111,16,
                    14
    EDITTEXT        IDC_LOADSCREEN,142,124,44,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,193,124,28,14
    EDITTEXT        IDC_AREAFLAG,227,124,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_XPOS,279,124,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS,316,124,28,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Set position",IDC_SET,353,124,50,14
    EDITTEXT        IDC_CAPTION,7,169,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CAPTIONTEXT,50,169,93,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TOOLTIP,7,199,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TOOLTIPTEXT,50,199,93,14,ES_AUTOHSCROLL
    CONTROL         "Visible",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,145,169,36,10
    CONTROL         "Visible from adjacent",IDC_FLAG2,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,145,181,81,10
    CONTROL         "Reachable",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,145,193,51,10
    CONTROL         "Already visited",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,145,205,61,10
    CONTROL         "5",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,229,
                    169,20,10
    CONTROL         "6",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,229,
                    181,20,10
    CONTROL         "7",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,229,
                    193,20,10
    CONTROL         "8",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,229,
                    205,20,10
    PUSHBUTTON      "Add Map",IDC_ADDMAP,353,7,50,14
    PUSHBUTTON      "Remove Map",IDC_DELMAP,353,24,50,14
    PUSHBUTTON      "Add Area",IDC_ADDAREA,353,41,50,14
    PUSHBUTTON      "Remove Area",IDC_DELAREA,353,58,50,14
    PUSHBUTTON      "Edit Links",IDC_EDITLINK,324,196,50,14
    DEFPUSHBUTTON   "Load Map",IDC_LOAD,8,229,50,14
    PUSHBUTTON      "Load external Map",IDC_LOADEX,66,229,64,14
    PUSHBUTTON      "Save Map As...",IDC_SAVEAS,138,229,54,14
    PUSHBUTTON      "New Map",IDC_NEW,200,229,50,14
    PUSHBUTTON      "Check Map",IDC_CHECK,258,229,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,355,229,48,14
    LTEXT           "/ 0",IDC_MAXMAP,104,10,18,8
    LTEXT           "Mos (map graphics)",IDC_STATIC,7,23,62,8
    LTEXT           "Width",IDC_STATIC,104,53,20,8
    LTEXT           "Height",IDC_STATIC,142,53,22,8
    LTEXT           "Map name (strref && text)",IDC_STATIC,104,23,75,8
    LTEXT           "0x18",IDC_STATIC,218,53,16,8
    LTEXT           "0x1c",IDC_STATIC,259,53,16,8
    LTEXT           "Mapicons",IDC_STATIC,7,53,32,8
    LTEXT           "Area",IDC_STATIC,7,83,16,8
    LTEXT           "Map #",IDC_STATIC,180,53,22,8
    LTEXT           "Area",IDC_STATIC,142,83,16,8
    LTEXT           "Areaname",IDC_STATIC,227,83,33,8
    LTEXT           "Area flags",IDC_STATIC,227,112,32,8
    LTEXT           "Icon index",IDC_STATIC,7,111,34,8
    LTEXT           "Area position on map",IDC_STATIC,279,112,67,8
    LTEXT           "Caption",IDC_STATIC,7,157,25,8
    LTEXT           "Tooltip",IDC_STATIC,7,187,22,8
    LTEXT           "Loadscreen",IDC_STATIC,142,112,38,8
    LTEXT           "Long name",IDC_STATIC,279,83,36,8
    LTEXT           "North:",IDC_NORTH,305,165,48,8
    LTEXT           "South:",IDC_SOUTH,305,185,53,8
    LTEXT           "East:",IDC_EAST,334,176,38,8
    LTEXT           "West:",IDC_WEST,277,175,48,8
    GROUPBOX        "Area Links",IDC_STATIC,264,155,114,64,BS_FLAT
    LTEXT           "/ 0",IDC_MAXAREA,104,97,18,8
    LTEXT           "Total Links:",IDC_MAXLINK,266,198,54,8
END

IDD_MAPLINK DIALOG DISCARDABLE  0, 0, 258, 231
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Link of Area on Map"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Back",IDCANCEL,201,210,50,14
    LTEXT           "North (0)",IDC_MAXDIR,120,7,48,8
    COMBOBOX        IDC_LINKPICKER,71,20,176,106,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_DIRECTION,7,20,55,62,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Link direction",IDC_STATIC,7,7,43,8
    COMBOBOX        IDC_AREALINK,7,50,83,146,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Choose link to",IDC_STATIC,71,7,46,8
    LTEXT           "Area",IDC_STATIC,7,37,16,8
    COMBOBOX        IDC_ENTRANCE,101,50,147,146,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Entrance",IDC_STATIC,101,37,30,8
    EDITTEXT        IDC_DISTANCE,122,80,40,14,ES_AUTOHSCROLL
    LTEXT           "Distance scale",IDC_STATIC,122,67,48,8
    EDITTEXT        IDC_FLAGS,122,112,40,14,ES_AUTOHSCROLL
    LTEXT           "Flags (0 will crash)",IDC_STATIC,122,99,58,8
    EDITTEXT        IDC_U1,7,80,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "1. random encounter area",IDC_STATIC,7,67,82,8
    PUSHBUTTON      "Browse",IDC_BROWSE1,79,80,28,14
    EDITTEXT        IDC_U2,7,112,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "2. random encounter area",IDC_STATIC,7,99,82,8
    PUSHBUTTON      "Browse",IDC_BROWSE2,79,112,28,14
    EDITTEXT        IDC_U3,7,144,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "3. random encounter area",IDC_STATIC,7,131,82,8
    PUSHBUTTON      "Browse",IDC_BROWSE3,79,144,28,14
    EDITTEXT        IDC_U4,7,176,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "4. random encounter area",IDC_STATIC,7,163,82,8
    PUSHBUTTON      "Browse",IDC_BROWSE4,79,176,28,14
    EDITTEXT        IDC_U5,7,208,60,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "5. random encounter area",IDC_STATIC,7,195,82,8
    PUSHBUTTON      "Browse",IDC_BROWSE5,79,208,28,14
    EDITTEXT        IDC_CHANCE,183,80,40,14,ES_AUTOHSCROLL
    LTEXT           "Chance of encounter",IDC_STATIC,183,67,68,8
    PUSHBUTTON      "Add link",IDC_ADD,201,168,50,14
    PUSHBUTTON      "Remove link",IDC_REMOVE,201,189,50,14
    CONTROL         "North",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    122,136,33,10
    CONTROL         "East",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    122,153,30,10
    CONTROL         "South",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    122,170,35,10
    CONTROL         "West",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    122,187,33,10
END

IDD_CREATUREITEMS DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Items && spells"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_SLOTPICKER,9,18,242,163,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SELECTED,320,53,70,77,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_ITEMRES,9,46,54,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,66,47,30,14
    EDITTEXT        IDC_USE1,99,47,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_USE2,119,47,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_USE3,139,47,16,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_FLAGS,160,47,34,14,ES_AUTOHSCROLL
    CONTROL         "Identified",IDC_IDENTIFIED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,197,37,45,10
    CONTROL         "Can't steal",IDC_NOSTEAL,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,197,48,49,10
    CONTROL         "Stolen",IDC_STOLEN,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,197,59,36,10
    EDITTEXT        IDC_UNKNOWN,356,21,34,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_INVICON,"Static",SS_BITMAP | SS_SUNKEN | 
                    WS_BORDER,284,18,17,15
    PUSHBUTTON      "Clear Items",IDC_CLEARALL,343,178,50,14
    COMBOBOX        IDC_LEVELSLOT,9,90,87,90,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_MIN,121,90,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_MAX,173,90,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_LEVEL,121,119,26,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_SPELLTYPE,152,119,64,58,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_SPELLPICKER,9,139,181,59,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_SPELLRES,49,157,54,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,109,157,30,14
    CONTROL         "Memorised ?",IDC_MEMORISED,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,151,159,56,10
    EDITTEXT        IDC_SPELLNAME,50,176,138,14,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Add level slot",IDC_ADDSLOT,223,76,50,14
    PUSHBUTTON      "Remove slot",IDC_DELSLOT,223,94,50,14
    PUSHBUTTON      "Set limits",IDC_CLASS,223,112,50,14
    PUSHBUTTON      "New spell",IDC_MEMORISE,223,130,50,14
    PUSHBUTTON      "Forget spell",IDC_FORGET,223,148,50,14
    COMBOBOX        IDC_BOOKPICKER,283,82,102,59,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_SPELLRES2,283,112,54,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    COMBOBOX        IDC_SPELLTYPE2,284,141,64,79,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_LEVEL2,284,157,26,14,ES_AUTOHSCROLL | ES_NUMBER
    PUSHBUTTON      "Browse",IDC_BROWSE3,354,103,32,14
    PUSHBUTTON      "Add",IDC_ADD,354,121,32,14
    PUSHBUTTON      "Remove",IDC_REMOVE,354,139,32,14
    PUSHBUTTON      "Add All",IDC_BOOK,316,157,32,14
    PUSHBUTTON      "Drop all",IDC_BOOK2,354,157,32,14
    PUSHBUTTON      "Clear spells",IDC_CLEAR,284,178,50,14
    LTEXT           "Choose item slot",IDC_STATIC,9,8,52,8
    LTEXT           "/ 0",IDC_STATIC,260,19,24,8
    LTEXT           "Level slot",IDC_STATIC,9,79,31,8
    LTEXT           "Charges",IDC_STATIC,99,35,27,8
    LTEXT           "Item flags",IDC_STATIC,160,35,31,8
    LTEXT           "Expiration",IDC_STATIC,356,9,32,8
    LTEXT           "Itemname",IDC_STATIC,7,34,32,8
    LTEXT           "Spell level && type",IDC_STATIC1,121,107,54,8
    LTEXT           "Icon",IDC_STATIC,284,8,15,8
    LTEXT           "Number of memorisable spells",IDC_STATIC,121,79,94,8
    LTEXT           "Spellname",IDC_STATIC,9,177,34,8
    LTEXT           "Choose spell",IDC_STATIC,9,128,41,8
    GROUPBOX        "Known spells && innates",IDC_STATIC4,275,68,118,108,
                    BS_FLAT
    LTEXT           "/ 0",IDC_MAXSPELL,196,141,21,8
    LTEXT           "/ 0",IDC_MAXSLOT,98,91,21,8
    GROUPBOX        "Memorised spells && innates",IDC_STATIC,7,68,269,124,
                    BS_FLAT
    LTEXT           "Resource",IDC_STATIC,9,159,32,8
    LTEXT           "Resource",IDC_STATIC5,283,100,32,8
    LTEXT           "Spell level && type",IDC_STATIC6,283,130,54,8
    LTEXT           "Selected slot",IDC_STATIC,320,42,42,8
    CONTROL         "No drop",IDC_UNDROPPABLE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,248,48,41,10
    EDITTEXT        IDC_TOTAL,194,176,26,14,ES_AUTOHSCROLL
    LTEXT           "Count",IDC_STATIC2,194,166,20,8
    EDITTEXT        IDC_MEMORISED2,233,176,40,14,ES_AUTOHSCROLL
    LTEXT           "Memorised",IDC_STATIC3,233,166,35,8
END

IDD_MOSEDIT DIALOG DISCARDABLE  0, 0, 349, 149
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Tiled Image (MOS or TIS)"
MENU IDR_TILE
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Load Mos",IDC_LOAD,7,128,44,14
    PUSHBUTTON      "Load External Mos",IDC_LOADEX,72,128,65,14
    PUSHBUTTON      "Save Mos As",IDC_SAVEAS,158,128,53,14
    PUSHBUTTON      "New Mos",IDC_NEW,232,128,44,14
    PUSHBUTTON      "E&xit",IDCANCEL,297,128,44,14
    EDITTEXT        IDC_WIDTH,16,23,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HEIGHT,53,23,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PWIDTH,82,23,31,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_PHEIGHT,127,23,31,14,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Select Frame",IDC_VIEW,17,43,60,14
    PUSHBUTTON      "Edit Palette",IDC_PALETTE,17,66,60,14
    PUSHBUTTON      "Trim palettes",IDC_DROP,17,88,60,14
    COMBOBOX        IDC_FRAME,84,50,76,101,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_XSIZE,84,83,30,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_YSIZE,128,83,30,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_LIMIT,199,33,22,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_RED,231,33,22,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_GREEN,261,33,22,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_BLUE,293,33,22,14,ES_AUTOHSCROLL | ES_NUMBER
    PUSHBUTTON      "Make transparent",IDC_TRANSPARENT,257,55,60,14
    PUSHBUTTON      "Extract tiles",IDC_EXTRACT,185,81,60,14
    PUSHBUTTON      "Create minimap",IDC_MINIMAP,185,103,60,14
    CONTROL         "Compressed",IDC_COMPRESSED,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,267,81,55,10
    PUSHBUTTON      "Set overlay",IDOK,272,103,50,14
    LTEXT           "x",IDC_STATIC,43,25,8,8
    LTEXT           "x",IDC_STATIC,118,86,8,8
    LTEXT           "Frame",IDC_STATIC,84,39,20,8
    LTEXT           "Total Image Size",IDC_STATIC,82,9,54,8
    LTEXT           "Red",IDC_STATIC,231,20,14,8
    LTEXT           "Green",IDC_STATIC,261,20,20,8
    LTEXT           "Blue",IDC_STATIC,293,20,15,8
    GROUPBOX        "Transparency control",IDC_STATIC,185,7,137,69,BS_FLAT
    LTEXT           "Frame Size",IDC_STATIC,84,70,36,8
    LTEXT           "Treshold",IDC_STATIC,199,20,28,8
    LTEXT           "x",IDC_STATIC,118,25,8,8
    LTEXT           "Frame count",IDC_STATIC,16,9,40,8
END

IDD_2DAEDIT DIALOGEX 0, 0, 406, 228
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit 2da:"
MENU IDR_2DA
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_DEFAULT,11,19,43,14,ES_AUTOHSCROLL
    CONTROL         "Integers:",IDC_INT,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,11,38,43,10,WS_EX_RIGHT
    PUSHBUTTON      "Order by column",IDC_ORDER,71,7,56,14
    PUSHBUTTON      "Copy column",IDC_COPY2,131,7,50,14
    PUSHBUTTON      "Paste column",IDC_PASTE2,185,7,50,14
    PUSHBUTTON      "Delete column",IDC_REMOVE2,239,7,50,14
    PUSHBUTTON      "Add column",IDC_COLUMN,293,7,50,14
    PUSHBUTTON      "Insert column",IDC_COLUMN2,347,7,50,14
    PUSHBUTTON      "Copy row",IDC_COPY,131,31,50,14
    PUSHBUTTON      "Paste row",IDC_PASTE,185,31,50,14
    PUSHBUTTON      "Delete row",IDC_REMOVE,239,31,50,14
    PUSHBUTTON      "Add row",IDC_ROW,293,31,50,14
    PUSHBUTTON      "Insert row",IDC_ROW2,347,31,50,14
    DEFPUSHBUTTON   "Load 2DA",IDC_LOAD,7,207,50,14
    PUSHBUTTON      "Load external 2DA",IDC_LOADEX,82,207,76,14
    PUSHBUTTON      "Save 2DA As...",IDC_SAVEAS,183,207,66,14
    PUSHBUTTON      "New 2DA",IDC_NEW,274,207,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,349,207,50,14
    CONTROL         "List1",IDC_2DA,"SysListView32",LVS_REPORT | 
                    LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | 
                    LVS_AUTOARRANGE | LVS_EDITLABELS | WS_BORDER | 
                    WS_TABSTOP,7,54,392,148
    LTEXT           "Default value",IDC_STATIC,11,8,43,8
END

IDD_IDSEDIT DIALOG DISCARDABLE  0, 0, 301, 205
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit identifiers:"
MENU IDR_IDS
FONT 8, "MS Sans Serif"
BEGIN
    CHECKBOX        "Hexadecimal",IDC_INT,7,11,57,10
    CHECKBOX        "Four digits",IDC_FOUR,71,11,48,10
    PUSHBUTTON      "Remove value",IDC_REMOVE,129,9,50,14
    PUSHBUTTON      "Add value",IDC_ROW,186,9,50,14
    PUSHBUTTON      "Order by value",IDC_ORDER,243,9,50,14
    CONTROL         "List1",IDC_IDS,"SysListView32",LVS_REPORT | 
                    LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | 
                    LVS_AUTOARRANGE | LVS_EDITLABELS | LVS_NOSORTHEADER | 
                    WS_BORDER | WS_TABSTOP,7,28,287,148
    DEFPUSHBUTTON   "Load IDS",IDC_LOAD,7,184,35,14
    PUSHBUTTON      "Load external IDS",IDC_LOADEX,59,184,62,14
    PUSHBUTTON      "Save IDS As...",IDC_SAVEAS,138,184,52,14
    PUSHBUTTON      "New IDS",IDC_NEW,207,184,34,14
    PUSHBUTTON      "E&xit",IDCANCEL,260,184,34,14
END

IDD_EDIT DIALOG DISCARDABLE  0, 0, 288, 289
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Editor options"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Update dialog.tlk",IDC_TLKCHANGE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,7,69,10
    CONTROL         "Show names when possible",IDC_RESOLVE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,23,103,10
    CONTROL         "Large indent in script editor",IDC_INDENT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,39,101,10
    CONTROL         "Keep temporary script sources",IDC_REMBAF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,55,111,10
    CONTROL         "Decompress sav into override",IDC_DECOMPRESS,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,71,109,10
    CONTROL         "Continuous script checking",IDC_NOCHECK,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,87,101,10
    CONTROL         "Don't sort effects",IDC_SORTEFFECT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,103,69,10
    CONTROL         "Ignore spaces in dialog code",IDC_EATSPACE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,247,107,10
    CONTROL         "Allow IDU strings in script source",IDC_IDUSTR,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,135,119,10
    CONTROL         "Update 2da/IDS",IDC_2DACHANGE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,138,7,69,10
    CONTROL         "Show preview when possible",IDC_PREVIEW,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,23,107,10
    CONTROL         "Highlight bad line in script editor",IDC_SELECTION,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,138,39,115,10
    CONTROL         "Always start in default folder",IDC_CWDBAF,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,55,103,10
    CONTROL         "Decompress cbf into data folder",IDC_DATAFOLDER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,71,116,10
    CONTROL         "Accept ACM channel number",IDC_STEREO,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,87,109,10
    CONTROL         "Don't number effects",IDC_EFFNUMBER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,103,81,10
    CONTROL         "Reuse deleted TLK entries",IDC_RECYCLE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,119,100,10
    CONTROL         "Allow WeiDU strings in script source",IDC_WEIDUSTR,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,138,135,129,10
    DEFPUSHBUTTON   "Back",IDOK,7,268,50,14
    PUSHBUTTON      "Select All",IDC_ALLSET,81,268,50,14
    PUSHBUTTON      "Deselect All",IDC_ALLUNSET,155,268,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,229,268,50,14
    CONTROL         "Use  Octree reduction (vs. DL1)",IDC_OCTREE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,151,116,10
    CONTROL         "Dithering (in DL1)",IDC_DITHER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,138,151,71,10
    CONTROL         "Windows 98",IDC_W98,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,167,55,10
    CONTROL         "Check biff resource locator",IDC_WEIDU,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,167,101,10
    CONTROL         "Use IAP instead of ZIP",IDC_ZIP,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,183,88,10
    CONTROL         "Larger area window",IDC_WINDOWPICKER,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,183,78,10
    CONTROL         "Center on vertex",IDC_CENTER,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,199,68,10
    CONTROL         "Chitin unpacker won't ignore override",IDC_OVERRIDE,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,138,199,133,10
    CONTROL         "Check filesizes",IDC_SIZECHECK,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,215,63,10
    CONTROL         "Use game config for CDs",IDC_CD,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,215,95,10
    CONTROL         "Use internal decompiler",IDC_INTDECOMP,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,231,89,10
    CONTROL         "Use internal compiler",IDC_INTCOMP,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,231,81,10
    CONTROL         "Force new strref",IDC_FORCENEW,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,7,119,67,10
    CONTROL         "Reorder shadow palette entry",IDC_SHADOW,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,138,247,109,10
END

IDD_IAPDIALOG DIALOG DISCARDABLE  0, 0, 310, 181
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Create IAP file:"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_OTHER,7,25,122,114,CBS_SIMPLE | CBS_AUTOHSCROLL | 
                    CBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    DEFPUSHBUTTON   "&P",IDC_OPENOTHER,133,25,16,16,BS_BITMAP
    COMBOBOX        IDC_TBG,155,25,122,114,CBS_SIMPLE | CBS_AUTOHSCROLL | 
                    CBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    DEFPUSHBUTTON   "&P",IDC_OPENTBG,281,25,16,16,BS_BITMAP
    PUSHBUTTON      "New IAP",IDC_NEW,7,160,50,14
    PUSHBUTTON      "Save IAP as...",IDC_SAVEAS,173,160,50,14
    PUSHBUTTON      "Back",IDCANCEL,253,160,50,14
    LTEXT           "Other files",IDC_STATIC,7,13,32,8
    LTEXT           "TBG files",IDC_STATIC,155,13,30,8
    LTEXT           "0",IDC_OTHERMAX,93,13,27,8
    LTEXT           "0",IDC_TBGMAX,241,13,27,8
    CONTROL         "Display textfile",IDC_LAUNCH,"Button",BS_AUTOCHECKBOX | 
                    WS_DISABLED | WS_TABSTOP,7,142,121,10
    PUSHBUTTON      "Load IAP",IDC_LOAD,81,160,50,14
    CONTROL         "Add compiler to the pack",IDC_WEIDU,"Button",
                    BS_AUTOCHECKBOX | BS_PUSHLIKE | NOT WS_VISIBLE | 
                    WS_DISABLED | WS_TABSTOP,155,144,95,10
END

IDD_COLORPICKER DIALOG DISCARDABLE  0, 0, 154, 199
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Pick colour"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "List2",IDC_COLOR,"SysListView32",LVS_SMALLICON | 
                    LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | 
                    LVS_AUTOARRANGE | LVS_NOCOLUMNHEADER | LVS_NOSORTHEADER | 
                    WS_BORDER | WS_TABSTOP,7,7,140,160
    DEFPUSHBUTTON   "&OK",IDOK,7,178,50,14
    PUSHBUTTON      "&Cancel",IDCANCEL,97,178,50,14
END

IDD_AREAANIM DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Animations"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_ANIMPICKER,7,17,116,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POSX,7,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,42,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM,77,43,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,132,43,28,14
    CONTROL         "Visible",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,60,36,10
    CONTROL         "Blend colors",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,71,52,10
    CONTROL         "Illumination off",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,82,61,10
    CONTROL         "Partial animation",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,93,67,10
    CONTROL         "Synchronized draw",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,104,76,10
    CONTROL         "6",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,
                    115,20,10
    CONTROL         "Not covered by wall",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,13,126,79,10
    CONTROL         "Invisible in low mem.",IDC_FLAG8,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,13,137,80,10
    CONTROL         "Ground",IDC_FLAG9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    93,60,39,10
    CONTROL         "Draw all cycles",IDC_FLAG10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,93,71,63,10
    CONTROL         "Use palette BMP",IDC_FLAG11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,93,82,69,10
    CONTROL         "Mirrored",IDC_FLAG12,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,93,93,41,10
    CONTROL         "Don't remove in combat",IDC_FLAG13,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,93,104,91,10
    CONTROL         "14",IDC_FLAG14,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,93,
                    115,24,10
    CONTROL         "15",IDC_FLAG15,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,93,
                    126,24,10
    CONTROL         "16",IDC_FLAG16,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,93,
                    137,24,10
    PUSHBUTTON      "xxxxxxxxxxxxxxxxxxxxxxxx",IDC_SCHEDULE,7,161,83,14,
                    BS_FLAT
    PUSHBUTTON      "Play",IDC_PLAY,136,161,28,14
    EDITTEXT        IDC_FRAME,171,17,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CYCLE,205,17,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,239,17,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U36,273,17,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U38,307,17,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3C,260,43,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BMP,171,43,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,226,43,30,14
    EDITTEXT        IDC_SKIPEXT,371,43,20,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_BAMFRAME,"Static",SS_BITMAP | SS_SUNKEN,187,62,16,
                    14
    PUSHBUTTON      "Add animation",IDC_ADD,411,68,62,14
    PUSHBUTTON      "Remove animation",IDC_REMOVE,411,95,62,14
    PUSHBUTTON      "Copy animation",IDC_COPY,411,122,62,14
    PUSHBUTTON      "Paste animation",IDC_PASTE,411,149,62,14
    PUSHBUTTON      "Find place",IDC_FIT,411,176,62,14
    LTEXT           "Animation",IDC_STATIC,7,6,32,8
    LTEXT           "Position",IDC_STATIC,7,33,26,8
    LTEXT           "/ 0",IDC_MAXANIM,128,20,38,8
    LTEXT           "Schedule",IDC_STATIC,7,149,31,8
    LTEXT           "Static",IDC_TIMEOFDAY,94,163,38,8
    LTEXT           "BAM",IDC_STATIC,77,33,16,8
    LTEXT           "Frame",IDC_STATIC,171,6,20,8
    LTEXT           "Cycle",IDC_STATIC,205,6,18,8
    LTEXT           "0x36",IDC_STATIC,273,6,16,8
    LTEXT           "Flags",IDC_STATIC,239,6,18,8
    LTEXT           "Height",IDC_STATIC,307,7,22,8
    LTEXT           "Counter ?",IDC_STATIC,261,33,32,8
    LTEXT           "Skip cycles",IDC_STATIC,371,33,37,8
    LTEXT           "Palette BMP",IDC_STATIC,171,33,40,8
    LTEXT           "Transparency",IDC_STATIC,371,7,44,8
    EDITTEXT        IDC_TRANSPARENT,371,17,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CHANCE,307,43,20,14,ES_AUTOHSCROLL
    LTEXT           "Chance of progress",IDC_STATIC,307,33,62,8
END

IDD_SCRIPTEDIT DIALOGEX 0, 0, 463, 329
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit Script:"
MENU IDR_SCRIPT
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    CONTROL         "",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_AUTOVSCROLL | 
                    ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | 
                    ES_NUMBER | WS_BORDER | WS_VSCROLL | WS_HSCROLL | 
                    WS_GROUP | WS_TABSTOP,35,6,424,292
    DEFPUSHBUTTON   "Load Script",IDC_LOAD,9,308,42,14
    PUSHBUTTON      "Load external script",IDC_LOADEX,79,308,66,14
    PUSHBUTTON      "Save Script As...",IDC_SAVEAS,173,308,66,14
    PUSHBUTTON      "New script",IDC_NEW,267,308,42,14
    PUSHBUTTON      "Check script",IDC_CHECK,337,308,48,14
    PUSHBUTTON      "E&xit",IDCANCEL,413,308,42,14
    CONTROL         "",IDC_U1,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,8,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U2,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,17,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U3,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,27,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U4,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,36,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U5,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,46,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U6,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,55,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U7,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,64,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U8,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,73,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U9,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,83,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U10,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,92,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U11,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,101,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U12,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,110,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U13,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,119,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U14,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,128,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U15,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,137,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U16,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,146,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U17,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,155,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U18,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,164,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U19,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,174,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U20,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,183,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U21,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,193,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U22,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,202,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U23,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,211,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U24,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,220,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U25,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,229,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U26,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,238,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U27,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,248,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U28,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,257,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U29,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,267,30,8,WS_EX_RIGHT
    CONTROL         "",IDC_U30,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_DISABLED | WS_TABSTOP,4,276,30,8,WS_EX_RIGHT
END

IDD_SHOWLOG DIALOG DISCARDABLE  0, 0, 320, 209
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "WeIDU log"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Back",IDCANCEL,135,188,50,14
    EDITTEXT        IDC_LOG,7,7,306,177,ES_MULTILINE | ES_AUTOHSCROLL | 
                    ES_READONLY | ES_WANTRETURN | WS_VSCROLL
END

IDD_STRREFDLG DIALOG DISCARDABLE  0, 0, 252, 166
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit TLK"
MENU IDR_TLKMENU
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_STRREF,7,22,52,14,ES_AUTOHSCROLL
    CONTROL         "Spin1",IDC_SPIN,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,68,6,11,14
    EDITTEXT        IDC_TEXT,7,49,238,91,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    EDITTEXT        IDC_SOUND,110,6,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,162,6,28,14
    PUSHBUTTON      "Play sound",IDC_PLAY,195,6,50,14
    CONTROL         "Tagged",IDC_TAG,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 
                    WS_TABSTOP,93,25,41,10
    PUSHBUTTON      "Search",IDC_SEARCH,140,25,50,14
    PUSHBUTTON      "Find sound",IDC_FIND,195,25,50,14
    PUSHBUTTON      "Reload",IDC_RELOAD,7,145,50,14
    PUSHBUTTON      "Save",IDC_SAVE,104,145,50,14
    PUSHBUTTON      "Exit",IDCANCEL,195,145,50,14
    LTEXT           "String reference",IDC_STATIC,7,10,51,8
    LTEXT           "Sound",IDC_STATIC,82,10,22,8
    LTEXT           "Text",IDC_STATIC,7,38,15,8
    LTEXT           "/ 00000",IDC_MAX,61,25,32,8
END

IDD_SAVHANDLE DIALOG DISCARDABLE  0, 0, 199, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Search&extract from .SAV"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_FILEMASK,7,54,52,14,ES_UPPERCASE | ES_AUTOHSCROLL
    COMBOBOX        IDC_FILETYPE,76,55,35,121,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Overwrite files",IDC_OVERRIDE,"Button",BS_AUTOCHECKBOX | 
                    BS_MULTILINE | WS_TABSTOP,122,55,60,10
    DEFPUSHBUTTON   "Extract",IDOK,8,77,50,14
    PUSHBUTTON      "Back",IDCANCEL,142,77,50,14
    LTEXT           "Filemask",IDC_STATIC,7,41,28,8
    LTEXT           "Filetype",IDC_STATIC,76,41,25,8
    LTEXT           "Sav filepath",IDC_STATIC,7,6,38,8
    EDITTEXT        IDC_FILENAME,7,21,153,14,ES_AUTOHSCROLL
    DEFPUSHBUTTON   "&P",IDC_OPENFILE,171,20,16,16,BS_BITMAP
END

IDD_PANICBUTTON DIALOGEX 0, 0, 119, 31
STYLE DS_SYSMODAL | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION
EXSTYLE WS_EX_NOPARENTNOTIFY | WS_EX_TOOLWINDOW
CAPTION "Press Button To Abort Process"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    PUSHBUTTON      "Stop",IDCANCEL,7,7,105,17
END

IDD_MUSEDIT DIALOG DISCARDABLE  0, 0, 301, 205
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit musiclist:"
MENU IDR_MUSIC
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Play whole",IDC_PLAYWHOLE,51,9,50,14
    PUSHBUTTON      "Play part",IDC_PLAY,115,9,50,14
    PUSHBUTTON      "Remove row",IDC_REMOVE,179,9,50,14
    PUSHBUTTON      "Add row",IDC_ROW,243,9,50,14
    CONTROL         "List1",IDC_MUS,"SysListView32",LVS_REPORT | 
                    LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOLABELWRAP | 
                    LVS_AUTOARRANGE | LVS_EDITLABELS | LVS_NOSORTHEADER | 
                    WS_BORDER | WS_TABSTOP,7,28,287,148
    DEFPUSHBUTTON   "Load list",IDC_LOAD,7,184,35,14
    PUSHBUTTON      "Load external list",IDC_LOADEX,59,184,62,14
    PUSHBUTTON      "Save list As...",IDC_SAVEAS,138,184,52,14
    PUSHBUTTON      "New list",IDC_NEW,207,184,34,14
    PUSHBUTTON      "E&xit",IDCANCEL,260,184,34,14
END

IDD_CREATUREEFF DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Effects"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_SLOTPICKER,7,25,316,167,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_GROUP | WS_TABSTOP
    PUSHBUTTON      "Add effect",IDC_ADD,335,25,50,14
    PUSHBUTTON      "Remove effect",IDC_DELETE,335,46,50,14
    PUSHBUTTON      "Edit effect",IDC_EDIT,335,67,50,14
    PUSHBUTTON      "Paste effect",IDC_PASTE,335,109,50,14
    CONTROL         "V1.0",IDC_V10,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE | 
                    WS_GROUP | WS_TABSTOP,351,159,31,10
    CONTROL         "V2.0",IDC_V20,"Button",BS_AUTORADIOBUTTON | BS_PUSHLIKE | 
                    WS_TABSTOP,351,172,31,10
    GROUPBOX        "Effect block type",IDC_STATIC,331,144,62,48,BS_FLAT | 
                    WS_GROUP
    LTEXT           "Pick an effect:",IDC_STATIC,7,14,47,8
    PUSHBUTTON      "Copy effect",IDC_COPY,335,88,50,14
END

IDD_WEDEDIT DIALOG DISCARDABLE  0, 20, 430, 207
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit Wed"
MENU IDR_WEDMENU
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_OVERLAYPICKER,11,34,105,178,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_TILESET,144,34,54,14,ES_UPPERCASE | ES_AUTOHSCROLL | 
                    ES_READONLY
    EDITTEXT        IDC_WIDTH,264,34,26,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_HEIGHT,298,34,26,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_UNKNOWN0C,333,34,26,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_DOORPICKER,11,77,105,176,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_DOORID,144,76,54,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_CLOSED,205,76,40,14,ES_AUTOHSCROLL
    CONTROL         "Open",IDC_OPEN,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,19,109,88,13
    COMBOBOX        IDC_DOORPOLYPICKER,144,109,105,90,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Edit polygon",IDC_EDITDOORPOLY,367,106,50,14
    COMBOBOX        IDC_WALLGROUPPICKER,11,158,105,57,CBS_DROPDOWN | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Order all",IDC_ORDER,80,186,50,14
    PUSHBUTTON      "Edit polygon",IDC_EDITWALLPOLY,367,158,50,14
    PUSHBUTTON      "Cleanup",IDC_CLEANUP,11,186,50,14
    PUSHBUTTON      "Back",IDOK,367,186,50,14
    GROUPBOX        "Overlay",IDC_STATIC,7,3,416,53,BS_FLAT
    GROUPBOX        "Door",IDC_STATIC,7,51,416,77,BS_FLAT
    GROUPBOX        "Wallgroup",IDC_STATIC,7,123,416,55,BS_FLAT
    LTEXT           "Choose door",IDC_STATIC,11,64,41,8
    LTEXT           "Choose overlay",IDC_STATIC,11,20,50,8
    LTEXT           "/ 000",IDC_OVERLAYNUM,121,36,18,8
    LTEXT           "/ 000",IDC_DOORNUM,121,79,18,8
    LTEXT           "Doorname",IDC_STATIC,144,64,34,8
    LTEXT           "Tileset",IDC_STATIC,144,20,22,8
    LTEXT           "Width",IDC_STATIC,264,20,20,8
    LTEXT           "Height",IDC_STATIC,298,20,22,8
    LTEXT           "0x0c",IDC_STATIC,333,20,16,8
    LTEXT           "Closed?",IDC_STATIC,205,64,26,8
    LTEXT           "Choose wall polygon",IDC_STATIC,11,138,66,8
    LTEXT           "/ 00",IDC_WALLGROUPNUM,121,160,20,8
    LTEXT           "Choose <closed> polygon of door",IDC_POLYGONTYPE,144,96,
                    106,8
    LTEXT           "/ 00",IDC_DOORPOLYNUM,256,110,21,8
    LTEXT           "Choose door polygon group",IDC_STATIC,19,96,88,8
    LTEXT           "Static",IDC_PROBLEM,264,9,98,8
    PUSHBUTTON      "Extract",IDC_EDIT,205,14,50,14
    PUSHBUTTON      "Set overlay",IDC_NEW,205,33,50,14
    PUSHBUTTON      "Edit tiles",IDC_EDITTILE,367,14,50,14
    PUSHBUTTON      "Delete overlay",IDC_REMOVE,367,34,50,14
    CONTROL         "View whole",IDC_OVERLAY,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,144,9,52,10
    PUSHBUTTON      "Select polygon",IDC_SELECTION,367,85,50,14
    PUSHBUTTON      "Select polygon",IDC_SELECTION2,367,136,50,14
    PUSHBUTTON      "Add polygon",IDC_ADD2,310,136,50,14
    PUSHBUTTON      "Add polygon",IDC_ADD3,310,85,50,14
    PUSHBUTTON      "Drop polygon",IDC_REMOVE2,310,158,50,14
    PUSHBUTTON      "Drop polygon",IDC_REMOVE3,310,106,50,14
    PUSHBUTTON      "Copy polygon",IDC_COPY,310,64,50,14
    PUSHBUTTON      "Paste polygon",IDC_PASTE,367,64,50,14
    PUSHBUTTON      "Copy polygon",IDC_COPY2,253,136,50,14
    PUSHBUTTON      "Paste polygon",IDC_PASTE2,253,158,50,14
    PUSHBUTTON      "Make overlay",IDC_TRANSPARENT,193,136,50,14
    PUSHBUTTON      "Clear overlay",IDC_CLEAR,193,158,50,14
    PUSHBUTTON      "Edit tiles",IDC_EDITTILE2,253,64,50,14
    PUSHBUTTON      "Drop door",IDC_DROP,253,85,50,14
END

IDD_WEDPOLY DIALOG DISCARDABLE  0, 0, 228, 261
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit polygon"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Wall",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    14,18,30,10
    CONTROL         "Semi transparent",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,14,32,69,10
    CONTROL         "Hovering wall",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,14,46,59,10
    CONTROL         "Cover animations",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,14,60,70,10
    CONTROL         "5",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,87,
                    18,20,10
    CONTROL         "6",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,87,
                    32,20,10
    CONTROL         "7",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,87,
                    46,20,10
    CONTROL         "Door?",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    87,60,37,10
    EDITTEXT        IDC_FLAGS,165,28,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN,165,56,40,14,ES_AUTOHSCROLL
    LISTBOX         IDC_VERTEXPICKER,7,99,97,102,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_POSX,7,217,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,56,217,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MINX,115,101,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MINY,165,101,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXX,115,133,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXY,165,133,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Recalc Box",IDC_RECALCBOX,107,157,44,14
    PUSHBUTTON      "Reverse polygon",IDC_REVERSE,162,177,58,14
    PUSHBUTTON      "Order polygon",IDC_ORDER,162,197,58,14
    PUSHBUTTON      "Back",IDOK,162,238,58,14
    GROUPBOX        "Polygon flags",IDC_STATIC,7,7,210,74,BS_FLAT
    GROUPBOX        "Bounding box",IDC_STATIC,107,76,110,76,BS_FLAT
    LTEXT           "X",IDC_STATIC,7,206,8,8
    LTEXT           "Y",IDC_STATIC,56,206,8,8
    LTEXT           "Min X",IDC_STATIC,115,86,19,8
    LTEXT           "Min Y",IDC_STATIC,165,86,19,8
    LTEXT           "Max X",IDC_STATIC,115,121,21,8
    LTEXT           "Max Y",IDC_STATIC,165,121,21,8
    LTEXT           "Pick vertex to edit",IDC_STATIC,7,84,58,8
    LTEXT           "Unknown flags",IDC_STATIC,165,46,48,8
    LTEXT           "Flags",IDC_STATIC,165,18,18,8
    CONTROL         "Preview",IDC_PREVIEW,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,107,177,44,14
    CONTROL         "",IDC_OPEN,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,107,197,44,14
    CONTROL         "Insert",IDC_INSERT,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,107,217,44,14
    CONTROL         "Spin1",IDC_SHIFT,"msctls_updown32",UDS_WRAP | 
                    UDS_ARROWKEYS | UDS_HORZ,163,157,56,14
    CONTROL         "Move",IDC_MOVE,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,107,238,44,14
    PUSHBUTTON      "Save",IDC_SAVE,7,238,40,14
    PUSHBUTTON      "Load",IDC_LOAD,56,238,40,14
END

IDD_MASSCLEAR DIALOG DISCARDABLE  0, 0, 217, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Clearing an interval of entries"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_FROM,40,9,48,16,ES_AUTOHSCROLL
    CONTROL         "Spin1",IDC_FROMSP,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,87,7,11,19
    EDITTEXT        IDC_TO,130,9,48,16,ES_AUTOHSCROLL
    CONTROL         "Spin2",IDC_TOSP,"msctls_updown32",UDS_WRAP | 
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,181,8,10,17
    DEFPUSHBUTTON   "OK",IDOK,43,34,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,134,34,50,14
    LTEXT           "from",IDC_STATIC,20,11,14,8
    LTEXT           "to",IDC_STATIC,107,11,8,8
END

IDD_TISDIALOG DIALOG DISCARDABLE  0, 0, 260, 106
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Tileset extraction"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_POSX,9,20,40,14,ES_AUTOHSCROLL | ES_READONLY | NOT 
                    WS_TABSTOP
    EDITTEXT        IDC_POSY,58,20,40,14,ES_AUTOHSCROLL | ES_READONLY | NOT 
                    WS_TABSTOP
    EDITTEXT        IDC_MINX,9,42,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MINY,57,42,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXX,9,64,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXY,57,64,40,14,ES_AUTOHSCROLL
    DEFPUSHBUTTON   "Save as BMP",IDC_BMP,203,6,50,14
    PUSHBUTTON      "Select top left",IDC_TOP,131,26,64,14
    PUSHBUTTON      "Save as TIS",IDC_SAVETIS,203,26,50,14
    PUSHBUTTON      "Select bottom right",IDC_BOTTOM,131,46,64,14
    PUSHBUTTON      "Minimap",IDC_MINIMAP,203,46,50,14
    CONTROL         "",IDC_OPEN,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,131,66,64,14
    PUSHBUTTON      "Read overlap",IDC_LOAD,203,66,50,14
    PUSHBUTTON      "Clear selection",IDC_CLEARALL,131,86,64,14
    PUSHBUTTON      "Back",IDCANCEL,203,86,50,14
    LTEXT           "Tileset dimensions",IDC_STATIC,9,8,58,8
    CONTROL         "Preview selection",IDC_PREVIEW,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,131,6,64,14
END

IDD_KEYEDIT DIALOG DISCARDABLE  0, 0, 284, 245
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Keyfile editor (only browser)"
MENU IDR_CHITIN
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "&Confirm changes",IDOK,203,224,74,14
    PUSHBUTTON      "&Undo changes",IDCANCEL,7,224,74,14
    LISTBOX         IDC_BIFLIST,7,24,95,123,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Bif",IDC_STATIC,7,13,9,8
    LTEXT           "Files in bif",IDC_STATIC,108,13,32,8
    LTEXT           "x/y",IDC_BIFPOS,39,13,41,8
    LTEXT           "x/y",IDC_FILEPOS,162,13,100,8
    CONTROL         "List1",IDC_FILELIST,"SysListView32",LVS_REPORT | 
                    LVS_SHOWSELALWAYS | LVS_SORTASCENDING | WS_BORDER | 
                    WS_TABSTOP,108,24,169,123
    GROUPBOX        "Location of BIF",IDC_STATIC,7,151,114,67,BS_FLAT
    CONTROL         "HD0",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,15,162,31,10
    CONTROL         "Override?",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    BS_NOTIFY | WS_TABSTOP,15,176,49,10
    CONTROL         "CD 1",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,15,190,32,10
    CONTROL         "CD 2",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,15,204,32,10
    CONTROL         "CD 3",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,73,162,32,10
    CONTROL         "CD 4",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,73,176,32,10
    CONTROL         "CD 5",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,73,190,32,10
    CONTROL         "CD 6",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | BS_NOTIFY | 
                    WS_TABSTOP,73,204,32,10
    PUSHBUTTON      "Remove all duplicates",IDC_DELETEALL,203,178,74,14
    PUSHBUTTON      "Mark for removal",IDC_MARK,203,201,74,14
    PUSHBUTTON      "Remove whole BIF",IDC_REMOVEBIF,203,155,74,14
    PUSHBUTTON      "Readd BIF",IDC_READD,133,155,50,14
END

IDD_WEDTILE DIALOG DISCARDABLE  0, 0, 286, 199
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit tiles & overlays"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_BLOCKPICKER,7,18,210,91,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_FIRST,7,124,83,71,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_TILEIDX,114,124,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ALT,167,124,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAGS,7,158,47,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN,71,158,47,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Add alternate",IDC_ADDALT,221,38,58,14
    PUSHBUTTON      "Drop alternate",IDC_REMOVE,221,58,58,14
    PUSHBUTTON      "Fix overlays",IDC_FIXALTER,221,78,58,14
    PUSHBUTTON      "Fix green water",IDC_GREENWATER,221,118,58,14
    PUSHBUTTON      "Save tileset",IDC_SAVE,7,178,58,14
    PUSHBUTTON      "Back",IDOK,155,178,58,14
    LTEXT           "Select tile",IDC_STATIC,7,7,32,8
    LTEXT           "Unknown flags",IDC_STATIC,71,146,48,8
    LTEXT           "Overlay bits",IDC_STATIC,7,146,38,8
    LTEXT           "Select tile",IDC_STATIC,7,113,32,8
    LTEXT           "Alternate tile",IDC_STATIC,167,113,40,8
    LTEXT           "Tile index",IDC_STATIC,114,113,31,8
    LTEXT           "/ 0",IDC_NUM,96,126,10,8
    PUSHBUTTON      "Replace tiles",IDC_LOAD,221,138,58,14
    PUSHBUTTON      "Replace alt. tiles",IDC_LOAD2,221,158,58,14
    CONTROL         "Draw open",IDC_OPEN,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,76,178,58,14
    CONTROL         "Preview",IDC_PREVIEW,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,155,158,58,14
    CONTROL         "Overlaid tiles",IDC_OVERLAY,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,221,18,58,14
    PUSHBUTTON      "Unused overlays",IDC_DROP,221,98,58,14
    PUSHBUTTON      "External tiles",IDC_LOAD3,221,178,58,14,NOT WS_VISIBLE
END

IDD_SPELLTOOL DIALOG DISCARDABLE  0, 0, 400, 199
STYLE WS_CHILD | WS_CAPTION
CAPTION "Tools"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_LEVEL,7,19,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LEVELINC,104,19,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Refresh levels",IDC_DOLEVELS,329,19,64,14
    EDITTEXT        IDC_RANGE,7,52,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RANGEINC,104,52,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Refresh ranges",IDC_DORANGES,329,52,64,14
    EDITTEXT        IDC_DURATION,7,85,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DURATIONINC,104,85,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Refresh durations",IDC_DODURATIONS,329,85,64,14
    CONTROL         "Use header count",IDC_FLAG1,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,15,159,73,10
    CONTROL         "Use level",IDC_FLAG2,"Button",BS_AUTORADIOBUTTON,15,171,
                    45,10
    GROUPBOX        "For multiplier",IDC_STATIC,7,144,91,48,BS_FLAT | 
                    WS_GROUP
    LTEXT           "Range multiplier",IDC_STATIC,7,40,51,8
    LTEXT           "Range increment",IDC_STATIC,104,40,55,8
    LTEXT           "Duration multiplier",IDC_STATIC,7,73,56,8
    LTEXT           "Duration increment",IDC_STATIC,104,73,60,8
    LTEXT           "Level increment (keep first header on 1)",IDC_STATIC,
                    104,7,126,8
    LTEXT           "Level/header",IDC_STATIC,7,7,44,8
    EDITTEXT        IDC_DAMAGE,7,116,40,14,ES_AUTOHSCROLL
    LTEXT           "Damage modifier",IDC_STATIC,7,105,54,8
    LTEXT           "Damage increment",IDC_STATIC,104,105,60,8
    EDITTEXT        IDC_DAMAGEINC,104,116,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Refresh damages",IDC_DODAMAGES,329,116,64,14
    CONTROL         "Has half damage",IDC_HALF,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,187,116,69,10
END

IDD_CHUIEDIT DIALOG DISCARDABLE  0, 0, 400, 239
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit User Interface:"
MENU IDR_CHUI
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_WINDOWPICKER,7,21,50,215,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_ID,88,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_XPOS,137,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS,186,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_WIDTH,235,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HEIGHT,284,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MOS,7,49,63,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,76,49,32,14
    CONTROL         "Has background",IDC_BACKGROUND,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,112,41,69,10
    EDITTEXT        IDC_FLAGS,186,49,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U1,235,49,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_OTHER,284,49,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_CONTROLPICKER,7,77,55,154,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_ID2,88,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_XPOS2,137,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS2,186,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_WIDTH2,235,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HEIGHT2,284,77,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_TYPE,7,105,75,97,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_LENGTH,7,133,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TEXT,238,133,149,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,7,161,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Select control",IDC_PREVIEW,7,192,50,14
    EDITTEXT        IDC_BAM,90,133,63,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,159,133,32,14
    EDITTEXT        IDC_CYCLE,193,133,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM2,238,133,63,14,ES_AUTOHSCROLL
    LTEXT           "RGB1                                          RGB2",
                    IDC_TEXTAREA2,90,177,124,8
    PUSHBUTTON      "Browse",IDC_BROWSE3,308,133,32,14
    EDITTEXT        IDC_BAMFRAME1,90,161,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAMFRAME2,138,161,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAMFRAME3,193,161,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAMFRAME4,238,161,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Add window",IDC_ADDWIN,333,21,60,14
    PUSHBUTTON      "Remove window",IDC_DELWIN,333,44,60,14
    PUSHBUTTON      "Add control",IDC_ADDCTRL,333,67,60,14
    PUSHBUTTON      "Remove control",IDC_DELCTRL,333,90,60,14
    DEFPUSHBUTTON   "Load UI",IDC_LOAD,8,218,50,14
    PUSHBUTTON      "Load external UI",IDC_LOADEX,71,218,64,14
    PUSHBUTTON      "Save UI As...",IDC_SAVEAS,148,218,54,14
    PUSHBUTTON      "New UI",IDC_NEW,215,218,50,14
    PUSHBUTTON      "Check UI",IDC_CHECK,278,218,50,14
    PUSHBUTTON      "Exit",IDCANCEL,341,218,50,14
    LTEXT           "/ 0",IDC_WINCNT,60,21,25,8
    LTEXT           "Select window",IDC_STATIC,7,10,47,8
    LTEXT           "Position",IDC_STATIC,137,10,26,8
    LTEXT           "Dimensions",IDC_STATIC,235,10,37,8
    LTEXT           "ID",IDC_STATIC,88,10,8,8
    LTEXT           "Background image",IDC_STATIC,7,38,60,8
    LTEXT           "Flags",IDC_STATIC,186,38,18,8
    LTEXT           "0x02",IDC_STATIC,235,38,16,8
    LTEXT           "Other flags",IDC_STATIC,284,38,35,8
    LTEXT           "Select control",IDC_STATIC,7,67,44,8
    LTEXT           "/ 0",IDC_CTRLCNT,66,80,18,8
    LTEXT           "ID",IDC_STATIC,88,66,8,8
    LTEXT           "ID flags (disable control)",IDC_STATIC,7,122,76,8
    LTEXT           "Position",IDC_STATIC,137,67,26,8
    LTEXT           "Dimensions",IDC_STATIC,235,67,37,8
    GROUPBOX        "Control specific attributes",IDC_EXTENSION,86,105,306,
                    107,BS_FLAT
    LTEXT           "Select type",IDC_STATIC,7,94,36,8
    LTEXT           "0x0d",IDC_STATIC,7,150,16,8
    LTEXT           "Button BAM",IDC_BUTTONBAM,90,122,39,8
    LTEXT           "Cycle",IDC_BUTTONCYCLE,193,122,18,8
    LTEXT           "Unpressed",IDC_BUTTONFRAME1,90,150,35,8
    LTEXT           "Pressed",IDC_BUTTONFRAME2,140,150,26,8
    LTEXT           "Disabled",IDC_BUTTONFRAME4,238,150,28,8
    LTEXT           "Selected",IDC_BUTTONFRAME3,193,150,29,8
    LTEXT           "Slider background",IDC_SLIDERMOS,90,122,58,8
    LTEXT           "Slider knob",IDC_SLIDERBAM,240,122,36,8
    LTEXT           "Knob cycle",IDC_SLIDERCYCLE,193,122,36,8
    LTEXT           "Released",IDC_SLIDERFRAME1,90,150,31,8
    LTEXT           "Grabbed",IDC_SLIDERFRAME2,140,150,28,8
    EDITTEXT        IDC_UNKNOWN1,90,189,26,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN2,125,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN3,159,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN4,193,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN5,227,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN6,261,189,25,14,ES_AUTOHSCROLL
    LTEXT           "Knob position              Jump width && count   Top          Bottom      Left            Right",
                    IDC_UNKNOWN,89,178,258,8
    EDITTEXT        IDC_UNKNOWN7,295,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_UNKNOWN8,329,189,25,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM3,90,161,63,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,159,161,32,14
    PUSHBUTTON      "Browse",IDC_BROWSE5,308,161,32,14
    EDITTEXT        IDC_BAM4,238,161,63,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM5,90,189,63,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,159,189,32,14
    LTEXT           "Mos1                                                                  Mos2",
                    IDC_EDITMOS1,90,122,168,8
    LTEXT           "Mos3                                                                  Cursor",
                    IDC_EDITMOS2,90,150,170,8
    LTEXT           "Font bam                                       Length    Position",
                    IDC_EDITMOS3,90,178,163,8
    LTEXT           "Font BAM                                                          Initials font BAM",
                    IDC_TEXTAREA1,90,122,199,8
    EDITTEXT        IDC_UNKNOWN9,363,189,25,14,ES_AUTOHSCROLL
    LTEXT           "Scrollbar ID",IDC_TEXTAREA3,193,122,38,8
    LTEXT           "Label strref && text",IDC_LABEL1,193,122,55,8
    LTEXT           "Font BAM",IDC_LABEL2,90,122,32,8
    LTEXT           "RGB3",IDC_TEXTAREA4,295,177,20,8
    LTEXT           "Justification",IDC_LABEL3,90,150,38,8
    LTEXT           "Up unpressed   Pressed              Down unpr.    Pressed            Trough                  Slider",
                    IDC_SCROLL1,90,150,274,8
    EDITTEXT        IDC_BAMFRAME5,289,161,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAMFRAME6,347,161,40,14,ES_AUTOHSCROLL
    LTEXT           "Textarea control ID",IDC_SCROLL2,240,122,62,8
    LTEXT           "Scrollbar BAM",IDC_SCROLL3,90,122,46,8
    CONTROL         "Use RGB",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,90,161,46,10
    CONTROL         "2",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,140,
                    161,20,10
    CONTROL         "Center",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    164,161,37,10
    CONTROL         "Left",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    296,178,28,10
    CONTROL         "Right",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    328,178,33,10
    CONTROL         "Top",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    296,192,29,10
    CONTROL         "7",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,296,
                    161,51,10
    CONTROL         "Bottom",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    328,192,38,10
    CONTROL         "Lowercase",IDC_FLAG9,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,296,161,51,10
    LTEXT           "Text justification",IDC_BUTTONFLAG,240,122,52,8
    LTEXT           "Steps",IDC_STEPS,193,150,19,8
    CONTROL         "Disable shadow",IDC_SHADOW,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,112,52,66,10
END

IDD_SRCEDIT DIALOGEX 0, 0, 416, 221
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit String resource:"
MENU IDR_SRC
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_BUDDY,57,6,40,14,ES_AUTOHSCROLL | NOT WS_VISIBLE
    COMBOBOX        IDC_SLOTPICKER,7,22,363,170,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Spin1",IDC_SLOTSPIN,"msctls_updown32",UDS_SETBUDDYINT | 
                    UDS_AUTOBUDDY | UDS_ARROWKEYS,398,22,11,12
    EDITTEXT        IDC_REF,125,42,53,14,ES_AUTOHSCROLL
    CONTROL         "Tagged text",IDC_TAGGED,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,184,45,54,10
    EDITTEXT        IDC_SOUNDREF,282,42,53,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Play Sound",IDC_PLAY,359,42,50,14
    EDITTEXT        IDC_TEXT,7,61,402,131,ES_MULTILINE | ES_WANTRETURN | 
                    WS_VSCROLL
    LTEXT           "Tlk entry",IDC_STATIC,7,45,28,8
    LTEXT           "Sound ref.:",IDC_STATIC,245,45,36,8
    LTEXT           "Choose entry",IDC_STATIC,7,8,42,8
    LTEXT           "String reference",IDC_STATIC,68,45,51,8
    PUSHBUTTON      "Add reference",IDC_ADD,157,6,64,14
    PUSHBUTTON      "Remove reference",IDC_REMOVE,251,6,64,14
    DEFPUSHBUTTON   "Load SRC",IDC_LOAD,10,200,50,14
    PUSHBUTTON      "Load external SRC",IDC_LOADEX,77,200,66,14
    PUSHBUTTON      "Save SRC As...",IDC_SAVEAS,160,200,57,14
    PUSHBUTTON      "New SRC",IDC_NEW,234,200,50,14
    PUSHBUTTON      "Check SRC",IDC_CHECK,301,200,50,14
    PUSHBUTTON      "E&xit",IDCANCEL,368,200,38,14
    LTEXT           "/ 0",IDC_CNT,374,25,22,8
END

IDD_AREAMAP DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Maps"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Height map",IDC_HEIGHTMAP,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,361,15,54,10
    CONTROL         "Light map",IDC_LIGHTMAP,"Button",BS_AUTORADIOBUTTON,361,
                    26,54,10
    CONTROL         "Night light map",IDC_NIGHTMAP,"Button",
                    BS_AUTORADIOBUTTON,361,37,63,10
    CONTROL         "Search map",IDC_SEARCHMAP,"Button",BS_AUTORADIOBUTTON,
                    361,48,54,10
    CONTROL         "8 bits",IDC_HEIGHTMAP2,"Button",BS_AUTORADIOBUTTON,421,
                    15,33,10
    EDITTEXT        IDC_WIDTH,400,77,20,14,ES_AUTOHSCROLL | ES_READONLY | 
                    WS_GROUP
    EDITTEXT        IDC_HEIGHT,434,77,20,14,ES_AUTOHSCROLL | ES_READONLY
    PUSHBUTTON      "Set to",IDC_SET,355,96,35,14,WS_GROUP
    COMBOBOX        IDC_VALUE,394,96,76,112,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Clear",IDC_CLEAR,355,120,35,14,WS_GROUP
    PUSHBUTTON      "Special",IDC_SPECIAL,397,120,76,14
    PUSHBUTTON      "Create palette",IDC_INIT,355,146,52,14
    PUSHBUTTON      "Edit palette",IDC_PALETTE,421,146,52,14
    PUSHBUTTON      "Edit map",IDC_EDIT,355,172,52,14
    PUSHBUTTON      "Undo floodfill",IDC_UNDO,421,172,52,14
    GROUPBOX        "Choose map type",IDC_STATIC,356,1,114,61
    CONTROL         "",IDC_MAP,"Static",SS_BITMAP | SS_NOTIFY,7,1,15,13
    LTEXT           "Map dimensions",IDC_STATIC,400,64,52,8
    LTEXT           "x",IDC_STATIC,426,80,8,8
END

IDD_STOREDRINKS DIALOG DISCARDABLE  0, 0, 360, 199
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Cures and drinks"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_SPELLS,7,17,178,156,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Remove all",IDC_REMALLSPELL,193,17,47,14
    PUSHBUTTON      "Remove Spell",IDC_REMOVESPELL,250,17,47,14
    PUSHBUTTON      "Add Spell",IDC_ADDSPELL,305,17,47,14
    COMBOBOX        IDC_SPELLRESREF,7,43,52,117,CBS_DROPDOWN | CBS_SORT | 
                    CBS_UPPERCASE | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_CUREDESCREF,61,43,42,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CURENAME,105,43,192,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CUREPRICE,305,43,42,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_DRINKS,7,97,188,137,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "Remove all",IDC_REMALLDRINK,202,97,47,14
    PUSHBUTTON      "Remove Drink",IDC_REMOVEDRINK,253,97,47,14
    PUSHBUTTON      "Add Drink",IDC_ADDDRINK,304,97,47,14
    EDITTEXT        IDC_DRINKRESREF,7,123,42,14,ES_UPPERCASE | 
                    ES_AUTOHSCROLL
    EDITTEXT        IDC_DRINKNAMEREF,59,123,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DRINKNAME,105,123,147,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_DRINKPRICE,259,123,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_DRINKSTRENGTH,316,123,34,14,ES_AUTOHSCROLL
    LTEXT           "Available Spells",IDC_STATIC,7,7,50,8
    LTEXT           "Available Drinks",IDC_STATIC,7,87,52,8
    LTEXT           "Resource ?",IDC_STATIC,7,113,38,8
    LTEXT           "Rumor %",IDC_STATIC,316,113,29,8
    LTEXT           "Price",IDC_STATIC,259,113,17,8
    LTEXT           "Drink name (reference && tlk entry)",IDC_STATIC,59,113,
                    106,8
    LTEXT           "Spell",IDC_STATIC,7,33,16,8
    LTEXT           "Price",IDC_STATIC,305,33,17,8
    LTEXT           "Cure name (reference && tlk entry)",IDC_STATIC,61,33,
                    104,8
END

IDD_POLYGON DIALOG DISCARDABLE  0, 0, 228, 185
STYLE DS_ABSALIGN | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit polygon"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_VERTEXPICKER,7,25,97,102,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    EDITTEXT        IDC_POSX,7,143,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,56,143,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MINX,115,27,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MINY,165,27,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXX,115,59,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MAXY,165,59,40,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Shift polygon",IDC_SHIFT,162,83,58,14
    PUSHBUTTON      "Recalc Box",IDC_RECALCBOX,107,83,44,14
    PUSHBUTTON      "Reverse polygon",IDC_REVERSE,162,103,58,14
    PUSHBUTTON      "Order polygon",IDC_ORDER,162,123,58,14
    PUSHBUTTON      "Back",IDOK,162,163,58,14
    GROUPBOX        "Bounding box",IDC_STATIC,107,2,110,76,BS_FLAT
    LTEXT           "X",IDC_STATIC,7,132,8,8
    LTEXT           "Y",IDC_STATIC,56,132,8,8
    LTEXT           "Min X",IDC_STATIC,115,12,19,8
    LTEXT           "Min Y",IDC_STATIC,165,12,19,8
    LTEXT           "Max X",IDC_STATIC,115,47,21,8
    LTEXT           "Max Y",IDC_STATIC,165,47,21,8
    LTEXT           "Pick vertex to edit",IDC_STATIC,7,10,58,8
    CONTROL         "Preview",IDC_PREVIEW,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,107,103,44,14
    CONTROL         "",IDC_OPEN,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,107,123,44,14
    CONTROL         "Insert",IDC_INSERT,"Button",BS_AUTOCHECKBOX | 
                    BS_PUSHLIKE | WS_TABSTOP,107,143,44,14
    CONTROL         "Move",IDC_MOVE,"Button",BS_AUTOCHECKBOX | BS_PUSHLIKE | 
                    WS_TABSTOP,107,163,44,14
    PUSHBUTTON      "Save",IDC_SAVE,7,163,40,14
    PUSHBUTTON      "Load",IDC_LOAD,56,163,40,14
END

IDD_TEXTVIEW DIALOGEX 0, 0, 463, 325
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "View text"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    CONTROL         "",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_AUTOVSCROLL | 
                    ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | ES_NUMBER | 
                    WS_BORDER | WS_VSCROLL | WS_GROUP | WS_TABSTOP,4,6,455,
                    292
    PUSHBUTTON      "Back",IDCANCEL,211,304,42,14
END

IDD_CREATUREPST DIALOG DISCARDABLE  0, 0, 459, 233
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Torment specific"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_DIALOG,7,21,40,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_FEETCIRCLE,58,21,40,14,ES_AUTOHSCROLL | ES_NUMBER
    COMBOBOX        IDC_IDSSPECIES,114,21,93,161,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_DEATH,217,21,96,134,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Back",IDCANCEL,138,212,50,14
    LTEXT           "Dialog radius",IDC_STATIC,7,7,42,8
    LTEXT           "Feet circle size",IDC_STATIC,58,7,48,8
    LTEXT           "Beast name",IDC_STATIC,217,7,38,8
    LTEXT           "Species",IDC_STATIC,114,7,26,8
    COMBOBOX        IDC_ATTR1,7,85,75,139,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR2,7,103,75,121,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR3,7,121,75,103,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR4,7,139,75,85,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR5,7,157,75,67,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR6,7,175,75,49,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_ATTR7,7,193,75,30,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Starting palette entry",IDC_STATIC,7,71,66,8
    EDITTEXT        IDC_CMETAL,91,85,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,185,85,28,14
    EDITTEXT        IDC_CMINOR,91,103,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,185,103,28,14
    EDITTEXT        IDC_CMAJOR,91,121,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE3,185,121,28,14
    EDITTEXT        IDC_CSKIN,91,139,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE4,185,139,28,14
    EDITTEXT        IDC_CLEATHER,91,157,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE5,185,157,28,14
    EDITTEXT        IDC_CARMOR,91,175,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,185,175,28,14
    EDITTEXT        IDC_CHAIR,91,193,87,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE7,185,193,28,14
    EDITTEXT        IDC_COLOR,7,53,40,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "# of colors",IDC_STATIC,7,41,34,8
    LTEXT           "Color gradient",IDC_STATIC,91,71,44,8
    EDITTEXT        IDC_XPOS,58,53,78,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "XP Mage",IDC_STATIC,58,41,30,8
    EDITTEXT        IDC_XPOS2,147,53,78,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "XP Thief",IDC_STATIC,152,41,28,8
    PUSHBUTTON      "Edit overlays",IDC_OVERLAY,7,212,50,14
    EDITTEXT        IDC_FLAGS,235,53,57,14,ES_AUTOHSCROLL
    LTEXT           "Appearance flags",IDC_STATIC,235,39,56,8
    EDITTEXT        IDC_GOOD,297,53,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LAWFUL,336,53,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_LADY,375,53,28,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MURDER,414,53,28,14,ES_AUTOHSCROLL
    LTEXT           "Good",IDC_STATIC,297,41,18,8
    LTEXT           "Lawful",IDC_STATIC,336,41,22,8
    LTEXT           "Lady",IDC_STATIC,375,41,16,8
    LTEXT           "Murder",IDC_STATIC,414,41,23,8
    CONTROL         "Unknown",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,85,47,10
    CONTROL         "Transparent",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,103,54,10
    CONTROL         "Unknown",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,121,47,10
    CONTROL         "Unknown",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,139,47,10
    CONTROL         "Scriptname",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,157,51,10
    CONTROL         "Character type",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,175,62,10
    CONTROL         "Unknown",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,193,47,10
    CONTROL         "Faction",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,236,211,39,10
    CONTROL         "Team",IDC_FLAG9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    297,85,34,10
    CONTROL         "Invulnerable",IDC_FLAG10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,103,55,10
    CONTROL         "Good count",IDC_FLAG11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,121,53,10
    CONTROL         "Law count",IDC_FLAG12,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,139,49,10
    CONTROL         "Lady count",IDC_FLAG13,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,157,51,10
    CONTROL         "Murder count",IDC_FLAG14,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,175,58,10
    CONTROL         "Don't face",IDC_FLAG15,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,193,49,10
    CONTROL         "Auto buddy",IDC_FLAG16,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,297,211,52,10
    LTEXT           "Faction",IDC_STATIC,389,7,24,8
    COMBOBOX        IDC_FACTION,389,21,63,205,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_TEAM,318,21,63,205,CBS_DROPDOWN | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Team",IDC_STATIC,318,7,19,8
END

IDD_GAMESTATS DIALOG DISCARDABLE  0, 0, 227, 199
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit statistics"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "&Back",IDCANCEL,170,178,50,14
    EDITTEXT        IDC_TALKNUM,10,18,40,14,ES_AUTOHSCROLL
    LTEXT           "Talk count",IDC_STATIC,10,6,35,8
    EDITTEXT        IDC_MPVXP,103,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_MPVNAME,103,95,117,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_STRREF,162,77,40,14,ES_AUTOHSCROLL
    LTEXT           "Most powerful killed (XP and name)",IDC_STATIC,103,65,
                    112,8
    EDITTEXT        IDC_KILLXP,103,125,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KILLNUM,162,125,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KILLXP2,103,155,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_KILLNUM2,162,155,40,14,ES_AUTOHSCROLL
    LTEXT           "Total killed (XP and count)",IDC_STATIC,103,113,84,8
    LTEXT           "Last chapter (XP and count)",IDC_STATIC,103,143,90,8
    EDITTEXT        IDC_NAME,103,47,117,14,ES_AUTOHSCROLL
    LTEXT           "Name",IDC_STATIC,103,35,20,8
    COMBOBOX        IDC_WEAPON,10,47,83,61,CBS_DROPDOWNLIST | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Favourite weapon",IDC_STATIC,10,35,58,8
    LTEXT           "Soundset",IDC_STATIC,59,6,31,8
    EDITTEXT        IDC_SOUNDREF,59,18,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_SPELLPICKER,10,125,83,75,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Favourite spell",IDC_STATIC,10,113,46,8
    EDITTEXT        IDC_VOICESET,103,18,117,14,ES_AUTOHSCROLL
    LTEXT           "Sound folder (IWD)",IDC_STATIC,103,6,62,8
    EDITTEXT        IDC_ITEM,10,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_COUNT,57,77,40,14,ES_AUTOHSCROLL
    LTEXT           "Item",IDC_STATIC,10,65,14,8
    LTEXT           "Count",IDC_STATIC,57,65,20,8
    EDITTEXT        IDC_SPELL,10,155,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_COUNT2,57,155,40,14,ES_AUTOHSCROLL
    LTEXT           "Spell",IDC_STATIC,10,143,16,8
    LTEXT           "Count",IDC_STATIC,57,143,20,8
    PUSHBUTTON      "Browse",IDC_BROWSE,10,95,50,14
    PUSHBUTTON      "Browse",IDC_BROWSE2,10,177,50,14
END

IDD_GAMEGENERAL DIALOGEX 0, 0, 248, 182
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
CAPTION "Edit general game data"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    EDITTEXT        IDC_STARTAREA,7,19,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_GAMETIME,115,19,48,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_GOLD,185,19,48,14,ES_AUTOHSCROLL | ES_NUMBER
    PUSHBUTTON      "&Back",IDCANCEL,195,161,46,14
    LTEXT           "Start area",IDC_STATIC,7,4,32,8
    LTEXT           "Gametime",IDC_STATIC,115,4,32,8
    LTEXT           "Party gold",IDC_STATIC,185,4,32,8
    CONTROL         "Rain",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    103,31,10
    CONTROL         "Snow",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    120,34,10
    CONTROL         "3",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    137,20,10
    CONTROL         "4",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
                    154,20,10
    CONTROL         "5",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,61,
                    103,20,10
    CONTROL         "6",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,61,
                    120,20,10
    CONTROL         "7",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,61,
                    137,20,10
    CONTROL         "8",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,61,
                    154,20,10
    EDITTEXT        IDC_WEATHER,7,82,32,14,ES_AUTOHSCROLL
    LTEXT           "Weather",IDC_STATIC,7,67,28,8
    EDITTEXT        IDC_UNKNOWN1C,61,82,32,14,ES_AUTOHSCROLL
    LTEXT           "NPC # in party",IDC_STATIC,61,67,47,8
    EDITTEXT        IDC_UNKNOWN48,185,48,48,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "0x48",IDC_STATIC,185,37,16,8
    PUSHBUTTON      "Browse",IDC_BROWSE,61,19,50,14
    EDITTEXT        IDC_SCREEN,115,82,48,14,ES_AUTOHSCROLL
    LTEXT           "Controls on screen",IDC_STATIC,115,67,60,8
    EDITTEXT        IDC_REPUTATION,115,154,48,14,ES_AUTOHSCROLL
    LTEXT           "Reputation",IDC_STATIC,115,141,36,8
    EDITTEXT        IDC_U1,115,124,22,14,ES_AUTOHSCROLL
    LTEXT           "Formations",IDC_STATIC,115,100,35,8
    EDITTEXT        IDC_U2,141,124,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,167,124,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,193,124,22,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,219,124,22,14,ES_AUTOHSCROLL
    CONTROL         "Slider1",IDC_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | 
                    WS_TABSTOP,126,108,105,10
    PUSHBUTTON      "Browse",IDC_BROWSE2,61,48,50,14
    EDITTEXT        IDC_AREA,7,48,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Master area",IDC_STATIC,7,37,38,8
    EDITTEXT        IDC_REALTIME,115,48,48,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "Realtime",IDC_STATIC,115,37,28,8
    EDITTEXT        IDC_UNKNOWN64,185,82,48,14,ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "Version",IDC_STATIC,185,67,24,8
END

IDD_GAMEPCINFO DIALOG DISCARDABLE  0, 0, 313, 259
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Edit PC info"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "&Back",IDCANCEL,131,238,50,14
    EDITTEXT        IDC_AREA,11,20,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE1,65,20,38,14
    EDITTEXT        IDC_XPOS,112,20,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_YPOS,166,20,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CRERES,11,50,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE2,65,50,38,14
    COMBOBOX        IDC_FACE,213,20,90,176,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    LTEXT           "Area",IDC_STATIC,11,8,16,8
    LTEXT           "Xpos",IDC_STATIC,112,8,17,8
    LTEXT           "Ypos",IDC_STATIC,166,8,17,8
    LTEXT           "Creature",IDC_STATIC,11,38,28,8
    LTEXT           "Orientation",IDC_STATIC,213,8,35,8
    EDITTEXT        IDC_HAPPINESS,112,50,40,14,ES_AUTOHSCROLL
    LTEXT           "Happiness",IDC_STATIC,112,38,34,8
    LTEXT           "Modal state",IDC_STATIC,166,38,38,8
    EDITTEXT        IDC_ACTION,166,50,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL1,11,80,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL2,112,80,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL3,213,80,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Quick spells",IDC_STATIC,11,68,39,8
    PUSHBUTTON      "Browse",IDC_BROWSE3,65,80,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE4,166,80,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE5,267,80,38,14
    EDITTEXT        IDC_SELECTED,213,50,40,14,ES_AUTOHSCROLL
    LTEXT           "Selected?",IDC_STATIC,213,38,33,8
    LTEXT           "Quick slots",IDC_STATIC,11,200,36,8
    EDITTEXT        IDC_U1,11,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,44,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,77,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,110,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,143,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,176,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,209,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U8,242,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U9,275,212,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG1,44,149,27,14,ES_AUTOHSCROLL
    LTEXT           "Quick\nweapons",IDC_STATIC,11,142,30,18
    EDITTEXT        IDC_FLAG2,77,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG3,110,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG4,143,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG5,176,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG6,209,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG7,242,149,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FLAG8,275,149,27,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_FLAG11,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,44,
                    138,16,8
    CONTROL         "",IDC_FLAG12,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,77,
                    138,16,8
    CONTROL         "",IDC_FLAG13,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,110,
                    138,16,8
    CONTROL         "",IDC_FLAG14,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,143,
                    138,16,8
    CONTROL         "",IDC_FLAG15,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,176,
                    138,16,8
    CONTROL         "",IDC_FLAG16,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,209,
                    138,16,8
    CONTROL         "",IDC_FLAG17,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,242,
                    138,16,8
    CONTROL         "",IDC_FLAG18,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,275,
                    138,16,8
    EDITTEXT        IDC_SPELL4,11,97,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL5,112,97,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL6,213,97,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE6,65,97,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE7,166,97,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE8,267,97,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE9,65,114,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE10,166,114,38,14
    PUSHBUTTON      "Browse",IDC_BROWSE11,267,114,38,14
    EDITTEXT        IDC_SPELL7,11,114,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL8,112,114,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_SPELL9,213,114,45,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,44,177,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,77,177,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,110,177,27,14,ES_AUTOHSCROLL
    LTEXT           "Quick\nitems",IDC_STATIC,11,174,30,18
    CONTROL         "",IDC_U16,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,44,167,
                    16,8
    CONTROL         "",IDC_U17,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,77,167,
                    16,8
    CONTROL         "",IDC_U18,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,110,167,
                    16,8
    EDITTEXT        IDC_U14,143,177,27,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U15,176,177,27,14,ES_AUTOHSCROLL
    CONTROL         "",IDC_U19,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,143,167,
                    16,8
    CONTROL         "",IDC_U20,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,176,167,
                    16,8
END

IDD_CREATUREIWD DIALOG DISCARDABLE  0, 0, 227, 231
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Icewind Dale specific"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Back",IDCANCEL,88,210,50,14
    EDITTEXT        IDC_SCRIPTNAME,11,21,123,14,ES_AUTOHSCROLL
    LTEXT           "Secondary scripting name",IDC_STATIC,11,10,82,8
    EDITTEXT        IDC_U1,11,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,11,94,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,11,111,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,11,128,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,11,145,40,14,ES_AUTOHSCROLL
    LTEXT           "Internals",IDC_STATIC,11,66,28,8
    EDITTEXT        IDC_SCRIPTNAME2,11,49,123,14,ES_AUTOHSCROLL
    LTEXT           "Tertiary scripting name",IDC_STATIC,11,38,72,8
    CONTROL         "Hidden",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    56,77,39,10
    CONTROL         "Set death var",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,56,94,59,10
    CONTROL         "Killvar count",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,56,111,55,10
    CONTROL         "Unknown",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,56,128,47,10
END

IDD_AREATRIGGERSTRINGS DIALOG DISCARDABLE  0, 0, 370, 110
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Trigger string references"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_STRREF,7,30,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_INFOSTR,53,30,310,14,ES_AUTOHSCROLL
    LTEXT           "Info string reference && text",IDC_STATIC,7,17,83,8
    EDITTEXT        IDC_STRREF2,7,66,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_INFOSTR2,53,66,310,14,ES_AUTOHSCROLL
    LTEXT           "Dialog string reference && text",IDC_STATIC,7,55,91,8
    PUSHBUTTON      "Back",IDCANCEL,169,89,50,14
END

IDD_CREATUREIWD2 DIALOG DISCARDABLE  0, 0, 304, 214
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Icewind Dale II specific"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_SCRIPTNAME,11,21,123,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_XPLIST,146,21,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SUBRACE,208,21,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCRIPTNAME2,11,49,123,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_SKILLPICKER,146,49,88,114,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_SKILL,241,49,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U1,11,77,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,11,94,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,11,111,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,11,128,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,11,145,40,14,ES_AUTOHSCROLL
    COMBOBOX        IDC_DAMAGE,58,77,76,115,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    COMBOBOX        IDC_FEATURE,146,77,88,114,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    CONTROL         "Has feat",IDC_VALUE,"Button",BS_AUTOCHECKBOX | 
                    BS_LEFTTEXT | WS_TABSTOP,241,66,43,10
    EDITTEXT        IDC_U10,123,110,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,123,127,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,123,144,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U13,123,161,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U14,210,110,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U15,210,127,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U16,210,144,76,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U17,210,161,76,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Back",IDCANCEL,118,193,50,14
    LTEXT           "Secondary scripting name",IDC_STATIC,11,10,82,8
    LTEXT           "Internals",IDC_STATIC,11,66,28,8
    LTEXT           "Tertiary scripting name",IDC_STATIC,11,38,72,8
    LTEXT           "Challenge rating",IDC_STATIC,146,10,52,8
    LTEXT           "Favoured enemies",IDC_STATIC,123,98,59,8
    LTEXT           "Subrace",IDC_STATIC,208,10,28,8
    LTEXT           "Skill value",IDC_STATIC,241,38,33,8
    LTEXT           "Skills",IDC_STATIC,146,38,17,8
    LTEXT           "Feats",IDC_STATIC,146,66,18,8
    LTEXT           "0 points",IDC_COUNT,177,66,57,8
    LTEXT           "Damage resistance",IDC_STATIC,58,65,62,8
    EDITTEXT        IDC_VALUE2,241,89,40,14,ES_AUTOHSCROLL
    LTEXT           "Feat value",IDC_STATIC,241,77,34,8
    LTEXT           "0 points",IDC_COUNT2,177,38,57,8
    CONTROL         "Hidden",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    58,94,39,10
    CONTROL         "Set death var",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,58,111,59,10
    CONTROL         "Killvar count",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,58,128,55,10
    CONTROL         "Unknown",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,58,145,47,10
    EDITTEXT        IDC_UNKNOWN,11,175,40,14,ES_AUTOHSCROLL
    LTEXT           "0x264",IDC_STATIC,11,161,20,8
END

IDD_CREATUREOVR DIALOG DISCARDABLE  0, 0, 200, 137
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "PST creature overlays"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_OVERLAYPICKER,7,22,186,114,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_BAM,7,56,63,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,79,56,43,14
    EDITTEXT        IDC_TIMING,52,92,38,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TYPE,7,92,38,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Clear",IDC_CLEAR,139,56,43,14
    LTEXT           "Type",IDC_STATIC,7,80,17,8
    LTEXT           "Timing",IDC_STATIC,52,80,22,8
    LTEXT           "Select overlay",IDC_STATIC,7,7,46,8
    LTEXT           "Animation",IDC_STATIC,7,44,32,8
    PUSHBUTTON      "Back",IDCANCEL,75,116,50,14
    EDITTEXT        IDC_DURATION,96,92,38,14,ES_AUTOHSCROLL
    LTEXT           "Duration",IDC_STATIC,96,80,28,8
END

IDD_CREATURELEVELS DIALOG DISCARDABLE  0, 0, 183, 190
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Icewind Dale II levels"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Back",IDCANCEL,126,169,50,14
    EDITTEXT        IDC_U1,18,16,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U2,18,46,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U3,18,76,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U4,18,106,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U5,18,136,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U6,18,166,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U7,78,16,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U8,78,46,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U9,78,76,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U10,78,106,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U11,78,136,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_U12,78,166,40,14,ES_AUTOHSCROLL
    LTEXT           "Bard",IDC_STATIC,18,64,16,8
    LTEXT           "Barbarian",IDC_STATIC,18,34,31,8
    LTEXT           "Cleric",IDC_STATIC,18,94,18,8
    LTEXT           "Druid",IDC_STATIC,18,124,18,8
    LTEXT           "Total",IDC_STATIC,18,4,17,8
    LTEXT           "Fighter",IDC_STATIC,18,154,22,8
    LTEXT           "Monk",IDC_STATIC,78,4,19,8
    LTEXT           "Paladin",IDC_STATIC,78,34,24,8
    LTEXT           "Ranger",IDC_STATIC,78,64,24,8
    LTEXT           "Rogue",IDC_STATIC,78,94,22,8
    LTEXT           "Sorcerer",IDC_STATIC,78,124,28,8
    LTEXT           "Wizard",IDC_STATIC,78,154,23,8
END

IDD_AREAPROJ DIALOG DISCARDABLE  0, 0, 480, 198
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
CAPTION "Projectiles"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_PROJPICKER,7,17,116,167,CBS_DROPDOWN | WS_VSCROLL | 
                    WS_TABSTOP
    EDITTEXT        IDC_POSX,7,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSY,42,43,24,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM,77,43,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    PUSHBUTTON      "Browse",IDC_BROWSE,132,43,28,14
    PUSHBUTTON      "Add projectile",IDC_ADD,411,17,62,14
    PUSHBUTTON      "Remove projectile",IDC_REMOVE,411,43,62,14
    LTEXT           "Projectile",IDC_STATIC,7,6,30,8
    LTEXT           "Position",IDC_STATIC,7,33,26,8
    LTEXT           "/ 0",IDC_MAX,128,20,38,8
    LTEXT           "Projectile reference",IDC_STATIC,77,33,62,8
    EDITTEXT        IDC_UNKNOWN10,171,43,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PROJECTILE,171,17,40,14,ES_AUTOHSCROLL
    LTEXT           "Effects",IDC_STATIC,7,70,23,8
    LTEXT           "Projectile ID",IDC_STATIC,171,6,39,8
    LTEXT           "Unknown 10",IDC_STATIC,171,33,42,8
    EDITTEXT        IDC_UNKNOWN18,226,43,40,14,ES_AUTOHSCROLL
    LTEXT           "Unknown 18",IDC_STATIC,226,33,42,8
    EDITTEXT        IDC_UNKNOWN1A,280,43,40,14,ES_AUTOHSCROLL
    LTEXT           "Unknown 1a",IDC_STATIC,280,33,42,8
    LISTBOX         IDC_EQUIPNUM,7,83,340,107,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "Remove effect",IDC_REMOVE2,411,119,62,14
    PUSHBUTTON      "Add effect",IDC_ADD2,411,90,62,14
END

IDD_PROJGEMRB DIALOG DISCARDABLE  0, 0, 347, 274
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "GemRB specific data"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_FLAGS,9,19,48,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_RGB,86,19,50,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Pick color",IDC_COLOR,142,19,36,14
    EDITTEXT        IDC_SPEED,190,19,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SCREEN,260,19,40,14,ES_AUTOHSCROLL
    CONTROL         "Bounce from walls",IDC_FLAG1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,37,73,10
    CONTROL         "Continue after hit",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,51,69,10
    CONTROL         "Freeze on hit",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,65,57,10
    CONTROL         "No travel path",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,79,61,10
    CONTROL         "Oriented trail",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,93,55,10
    CONTROL         "Curved path",IDC_FLAG6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,107,55,10
    CONTROL         "Random frame",IDC_FLAG7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,121,62,10
    CONTROL         "Pillar",IDC_FLAG8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    9,135,31,10
    CONTROL         "Translucent",IDC_FLAG9,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,86,37,53,10
    CONTROL         "Tinted by gradient",IDC_FLAG10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,86,51,73,10
    CONTROL         "Create iteration",IDC_FLAG11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,86,65,63,10
    CONTROL         "Tiled area of effect",IDC_FLAG12,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,86,79,75,10
    CONTROL         "Falling path",IDC_FLAG13,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,86,93,52,10
    CONTROL         "Incoming path",IDC_FLAG14,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,86,107,61,10
    CONTROL         "Line area of effect",IDC_FLAG15,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,86,121,73,10
    CONTROL         "Wall area of effect",IDC_FLAG16,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,86,135,74,10
    CONTROL         "Draw behind target",IDC_FLAG17,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,37,76,10
    CONTROL         "Pop in and out",IDC_FLAG18,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,51,62,10
    CONTROL         "Pop out phase",IDC_FLAG19,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,65,62,10
    CONTROL         "Fade after explode",IDC_FLAG20,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,79,75,10
    CONTROL         "Display string",IDC_FLAG21,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,93,57,10
    CONTROL         "Random movement",IDC_FLAG22,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,107,77,10
    CONTROL         "Random cycle",IDC_FLAG23,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,121,61,10
    CONTROL         "RGB color on hit",IDC_FLAG24,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,178,135,68,10
    EDITTEXT        IDC_STRREF,7,161,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_STRING,52,161,280,14,ES_AUTOHSCROLL
    PUSHBUTTON      "Back",IDOK,290,253,50,14
    LTEXT           "Additional flags",IDC_STATIC,9,7,48,8
    LTEXT           "Text displayed",IDC_STATIC,11,150,46,8
    LTEXT           "RGB color on hit",IDC_STATIC,86,7,53,8
    LTEXT           "Screenshake on hit",IDC_STATIC,260,7,62,8
    LTEXT           "RGB speed",IDC_STATIC,190,7,38,8
    EDITTEXT        IDC_SPELL,8,193,69,14,ES_AUTOHSCROLL
    LTEXT           "Failure spell",IDC_STATIC,8,181,38,8
    EDITTEXT        IDC_IDS,8,229,62,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_VALUE,95,229,62,14,ES_AUTOHSCROLL
    LTEXT           "IDS target type and value",IDC_STATIC,8,216,82,8
    LTEXT           "Secondary IDS target type and value",IDC_STATIC,182,216,
                    118,8
    PUSHBUTTON      "Browse",IDC_BROWSE,82,193,39,14
    EDITTEXT        IDC_SPELL2,156,193,69,14,ES_AUTOHSCROLL
    LTEXT           "Success spell",IDC_STATIC,156,181,44,8
    PUSHBUTTON      "Browse",IDC_BROWSE2,230,193,39,14
    EDITTEXT        IDC_IDS2,182,229,62,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_VALUE2,269,229,62,14,ES_AUTOHSCROLL
    CONTROL         "Touch",IDC_FLAG25,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    260,37,37,10
    CONTROL         "Negate IDS",IDC_FLAG26,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,51,53,10
    CONTROL         "Negate second IDS",IDC_FLAG27,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,65,79,10
    CONTROL         "Both tests must pass",IDC_FLAG28,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,260,79,81,10
    CONTROL         "Delay payload",IDC_FLAG29,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,260,93,61,10
END

IDD_PROJAREAGEMRB DIALOG DISCARDABLE  0, 0, 252, 233
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "GemRB specific area data"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Back",IDOK,195,212,50,14
    EDITTEXT        IDC_UNKNOWN26,65,19,48,14,ES_AUTOHSCROLL
    LTEXT           "0x26",IDC_STATIC,65,7,16,8
    CONTROL         "Use explosion color for tint",IDC_FLAG1,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,9,37,99,10
    CONTROL         "Fill entire area",IDC_FLAG2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,51,59,10
    CONTROL         "Start scattered",IDC_FLAG3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,65,62,10
    CONTROL         "Paletted center",IDC_FLAG4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,79,64,10
    CONTROL         "Repeated scatter",IDC_FLAG5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,93,71,10
    CONTROL         "Paletted spread animation",IDC_FLAG6,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,9,107,97,10
    CONTROL         "Use recoil field for spread",IDC_FLAG7,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,9,121,95,10
    CONTROL         "Double child projectiles",IDC_FLAG8,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,9,135,89,10
    EDITTEXT        IDC_FLAGS,9,19,48,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_SOUND1,122,19,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    EDITTEXT        IDC_BAM1,7,162,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Area sound",IDC_STATIC,122,7,37,8
    EDITTEXT        IDC_BAM2,122,162,48,14,ES_UPPERCASE | ES_AUTOHSCROLL
    LTEXT           "Flags",IDC_STATIC,11,7,18,8
    LTEXT           "Spread animation",IDC_STATIC,7,150,56,8
    LTEXT           "Recoil animation",IDC_STATIC,122,150,53,8
    PUSHBUTTON      "Browse",IDC_BROWSE1,177,19,28,14
    PUSHBUTTON      "Browse",IDC_BROWSE2,65,161,50,14
    PUSHBUTTON      "Browse",IDC_BROWSE3,177,162,50,14
    PUSHBUTTON      "Play",IDC_PLAY1,212,19,28,14
    CONTROL         "Apply spell on caster if failed",IDC_FLAG9,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,125,37,105,10
    CONTROL         "Multiple directions (cone)",IDC_FLAG10,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,125,51,94,10
    EDITTEXT        IDC_COUNT,7,195,23,14,ES_AUTOHSCROLL
    LTEXT           "Target count (or HD)",IDC_STATIC,7,182,66,8
    LTEXT           "d",IDC_STATIC,32,198,8,8
    EDITTEXT        IDC_COUNT2,42,195,23,14,ES_AUTOHSCROLL
    CONTROL         "Use hit die instead of count",IDC_FLAG11,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,125,65,102,10
    CONTROL         "Reverse EA targeting",IDC_FLAG12,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,125,79,83,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO MOVEABLE PURE 
BEGIN
    IDD_WEIDU, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 310
        TOPMARGIN, 7
        BOTTOMMARGIN, 219
    END

    IDD_IMAGEVIEW, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 115
        TOPMARGIN, 7
        BOTTOMMARGIN, 75
    END

    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 64
    END

    IDD_CHITEM_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 312
        TOPMARGIN, 7
        BOTTOMMARGIN, 267
    END

    IDD_CHECK, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 281
        TOPMARGIN, 7
        BOTTOMMARGIN, 279
    END

    IDD_PROGRESS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 19
    END

    IDD_FINDITEM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 303
        TOPMARGIN, 10
        BOTTOMMARGIN, 203
    END

    IDD_ITEMEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_ITEMGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 6
        BOTTOMMARGIN, 191
    END

    IDD_ITEMICONS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_ITEMEQUIP, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_ITEMEFFECT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_ITEMPICKER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 153
        TOPMARGIN, 7
        BOTTOMMARGIN, 210
    END

    IDD_EXTRACT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 177
        TOPMARGIN, 6
        BOTTOMMARGIN, 91
    END

    IDD_VVCEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 232
    END

    IDD_CFB, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 317
        TOPMARGIN, 7
        BOTTOMMARGIN, 229
    END

    IDD_STOREEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 363
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_STOREGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 353
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_STOREITEMS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 353
        TOPMARGIN, 6
        BOTTOMMARGIN, 192
    END

    IDD_EFFEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 315
    END

    IDD_VARIABLES, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 213
        TOPMARGIN, 7
        BOTTOMMARGIN, 103
    END

    IDD_STORERENTAL, DIALOG
    BEGIN
        LEFTMARGIN, 6
        RIGHTMARGIN, 353
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_COMPAT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 315
        TOPMARGIN, 7
        BOTTOMMARGIN, 262
    END

    IDD_ITEMEXTRA, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_STOREEXTRA, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 353
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_BAMEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 413
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_PALETTE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 311
        TOPMARGIN, 7
        BOTTOMMARGIN, 205
    END

    IDD_SPELLGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 6
        BOTTOMMARGIN, 191
    END

    IDD_ITEMDESC, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_ITEMUSE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_SPELLEQUIP, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_SPELLEXTRA, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_SPELLDESC, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_SPELLEFFECT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_SPELLEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_EXTRACT2, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 64
    END

    IDD_AREAGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREAEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 493
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_AREAACTOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_SCHEDULE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 220
        TOPMARGIN, 7
        BOTTOMMARGIN, 157
    END

    IDD_PROJEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 259
    END

    IDD_AREAENTRANCE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREATRIGGER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREASPAWN, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_CREATUREEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_CREATUREGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_CREATUREICONS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_CREATURESKILLS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_CREATURERES, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_CREATURESTRINGS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 6
        BOTTOMMARGIN, 192
    END

    IDD_CREATUREUNKNOWN, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_AREASONGS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 251
        TOPMARGIN, 7
        BOTTOMMARGIN, 239
    END

    IDD_AREAAMBIENT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREAINT, DIALOG
    BEGIN
        LEFTMARGIN, 5
        RIGHTMARGIN, 333
        TOPMARGIN, 7
        BOTTOMMARGIN, 199
    END

    IDD_AREACONTAINER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREADOOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_AREAVARIABLE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_DIALOGEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 457
        TOPMARGIN, 7
        BOTTOMMARGIN, 279
    END

    IDD_SEARCHNODE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 203
        TOPMARGIN, 6
        BOTTOMMARGIN, 110
    END

    IDD_ADDLINK, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 120
        TOPMARGIN, 7
        BOTTOMMARGIN, 88
    END

    IDD_PROJEXT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 184
    END

    IDD_GAMEEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 3
        BOTTOMMARGIN, 251
    END

    IDD_MAPEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 403
        TOPMARGIN, 7
        BOTTOMMARGIN, 243
    END

    IDD_MAPLINK, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 251
        TOPMARGIN, 7
        BOTTOMMARGIN, 224
    END

    IDD_CREATUREITEMS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_MOSEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 342
        TOPMARGIN, 7
        BOTTOMMARGIN, 142
    END

    IDD_2DAEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 399
        TOPMARGIN, 7
        BOTTOMMARGIN, 221
    END

    IDD_IDSEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 294
        TOPMARGIN, 7
        BOTTOMMARGIN, 198
    END

    IDD_EDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 281
        TOPMARGIN, 7
        BOTTOMMARGIN, 282
    END

    IDD_IAPDIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 303
        TOPMARGIN, 7
        BOTTOMMARGIN, 174
    END

    IDD_COLORPICKER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 147
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_AREAANIM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_SCRIPTEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 4
        RIGHTMARGIN, 456
        TOPMARGIN, 7
        BOTTOMMARGIN, 322
    END

    IDD_SHOWLOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 313
        TOPMARGIN, 7
        BOTTOMMARGIN, 202
    END

    IDD_STRREFDLG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 245
        TOPMARGIN, 6
        BOTTOMMARGIN, 159
    END

    IDD_SAVHANDLE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 192
        TOPMARGIN, 7
        BOTTOMMARGIN, 91
    END

    IDD_PANICBUTTON, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 112
        TOPMARGIN, 7
        BOTTOMMARGIN, 24
    END

    IDD_MUSEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 294
        TOPMARGIN, 7
        BOTTOMMARGIN, 198
    END

    IDD_CREATUREEFF, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_WEDEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 423
        TOPMARGIN, 7
        BOTTOMMARGIN, 200
    END

    IDD_WEDPOLY, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 221
        TOPMARGIN, 7
        BOTTOMMARGIN, 254
    END

    IDD_MASSCLEAR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 210
        TOPMARGIN, 7
        BOTTOMMARGIN, 48
    END

    IDD_TISDIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 253
        TOPMARGIN, 7
        BOTTOMMARGIN, 99
    END

    IDD_KEYEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 277
        TOPMARGIN, 7
        BOTTOMMARGIN, 238
    END

    IDD_WEDTILE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 279
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_SPELLTOOL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_CHUIEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 393
        TOPMARGIN, 7
        BOTTOMMARGIN, 232
    END

    IDD_SRCEDIT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 409
        TOPMARGIN, 6
        BOTTOMMARGIN, 214
    END

    IDD_AREAMAP, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 1
        BOTTOMMARGIN, 191
    END

    IDD_STOREDRINKS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 353
        TOPMARGIN, 6
        BOTTOMMARGIN, 192
    END

    IDD_POLYGON, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 221
        TOPMARGIN, 7
        BOTTOMMARGIN, 178
    END

    IDD_TEXTVIEW, DIALOG
    BEGIN
        LEFTMARGIN, 4
        RIGHTMARGIN, 456
        TOPMARGIN, 7
        BOTTOMMARGIN, 318
    END

    IDD_CREATUREPST, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 452
        TOPMARGIN, 7
        BOTTOMMARGIN, 226
    END

    IDD_GAMESTATS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 220
        TOPMARGIN, 7
        BOTTOMMARGIN, 192
    END

    IDD_GAMEGENERAL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 241
        TOPMARGIN, 3
        BOTTOMMARGIN, 175
    END

    IDD_GAMEPCINFO, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 306
        TOPMARGIN, 7
        BOTTOMMARGIN, 252
    END

    IDD_CREATUREIWD, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 220
        TOPMARGIN, 7
        BOTTOMMARGIN, 224
    END

    IDD_AREATRIGGERSTRINGS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 363
        TOPMARGIN, 7
        BOTTOMMARGIN, 103
    END

    IDD_CREATUREIWD2, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 297
        TOPMARGIN, 7
        BOTTOMMARGIN, 207
    END

    IDD_CREATUREOVR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 193
        TOPMARGIN, 7
        BOTTOMMARGIN, 130
    END

    IDD_CREATURELEVELS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 176
        TOPMARGIN, 7
        BOTTOMMARGIN, 183
    END

    IDD_AREAPROJ, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 473
        TOPMARGIN, 7
        BOTTOMMARGIN, 191
    END

    IDD_PROJGEMRB, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 340
        TOPMARGIN, 7
        BOTTOMMARGIN, 267
    END

    IDD_PROJAREAGEMRB, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 245
        TOPMARGIN, 7
        BOTTOMMARGIN, 226
    END
END
#endif    // APSTUDIO_INVOKED


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\chitem.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 7,2,0,4
 PRODUCTVERSION 7,2,0,4
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "Comments", "forums.gibberlings3.net\0"
            VALUE "CompanyName", "GemRB Project (gemrb.sourceforge.net)\0"
            VALUE "FileDescription", "DragonLance Total Conversion Editor Pro\0"
            VALUE "FileVersion", "7, 2, 0, 4\0"
            VALUE "InternalName", "dltcep\0"
            VALUE "LegalCopyright", "Copyright (C) 2002-2011 Avenger\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "chitem.EXE\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "DLTC Editor Pro 7.2d\0"
            VALUE "ProductVersion", "7, 2, 0, 4\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\chitem.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_GETFILES            BITMAP  MOVEABLE PURE   "res\\getfiles.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MENUBAR MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "Reload &chitin",              ID_RESCAN
        MENUITEM "Reload &2da",                 ID_RESCAN2
        MENUITEM "Reload &dialog",              ID_RESCAN5
        MENUITEM "Reload &variables",           ID_RESCAN3
        MENUITEM "Reload &effects",             ID_RESCAN4
        MENUITEM SEPARATOR
        MENUITEM "Import .&D/.BAF",             ID_FILE_IMPORTD
        MENUITEM "Import &TBG/IAP",             ID_FILE_IMPORTTBG
        MENUITEM "Create &IAP",                 ID_FILE_EXPORTTBG
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "Animation (&BAM)",            ID_EDIT_ANIMATION
        MENUITEM "&Area (ARE, WED)",            ID_EDIT_AREA
        MENUITEM "Chitin (&KEY)",               ID_EDIT_KEY
        MENUITEM "&Creature (CRE)",             ID_EDIT_CREATURE
        MENUITEM "&Dialog (DLG)",               ID_EDIT_DIALOG
        MENUITEM "&Effect (EFF)",               ID_EDIT_EFFECT
        MENUITEM "&Game (GAM)",                 ID_EDIT_GAMES
        MENUITEM "Ide&ntifiers (IDS)",          ID_EDIT_IDS
        MENUITEM "&Item (ITM)",                 ID_EDIT_ITEM
        MENUITEM "Image (M&OS)",                ID_EDIT_GRAPHICS
        MENUITEM "&Musiclist (MUS)",            ID_EDIT_MUSICLIST
        MENUITEM "&Projectile (PRO)",           ID_EDIT_PROJECTILE
        MENUITEM "Sc&ript (BCS)",               ID_EDIT_SCRIPT
        MENUITEM "&Spell (SPL)",                ID_EDIT_SPELL
        MENUITEM "S&tore (STO)",                ID_EDIT_STORE
        MENUITEM "Strings (SRC)",               ID_EDIT_STRINGSSRC
        MENUITEM "Tables (&2DA)",               ID_EDIT_2DA
        MENUITEM "Ti&leset (TIS)",              ID_EDIT_TILESET
        MENUITEM "&UI (CHU)",                   ID_EDIT_CHUI
        MENUITEM "Variables (VAR)",             ID_EDIT_VARIABLES
        MENUITEM "&Videocell (VVC)",            ID_EDIT_VVC
        MENUITEM "&Worldmap (WMP)",             ID_EDIT_WORLDMAP
    END
    POPUP "&Search"
    BEGIN
        MENUITEM "&Area",                       ID_SEARCH_AREA
        MENUITEM "&BAM",                        ID_SEARCH_BAM
        MENUITEM "B&MP",                        ID_SEARCH_BMP
        MENUITEM "&Creature",                   ID_SEARCH_CREATURE
        MENUITEM "&Dialog",                     ID_SEARCH_DIALOG
        MENUITEM "&Effect",                     ID_SEARCH_EFFECT
        MENUITEM "&Item",                       ID_SEARCH_ITEM
        MENUITEM "&Projectile",                 ID_SEARCH_PROJECTILE
        MENUITEM "Sc&ript",                     ID_SEARCH_SCRIPT
        MENUITEM "&Spell",                      ID_SEARCH_SPELL
        MENUITEM "S&tore",                      ID_SEARCH_STORE
        MENUITEM "Table (&2DA)",                ID_SEARCH_2DA
        MENUITEM "&UI",                         ID_SEARCH_UI
        MENUITEM "&VVC",                        ID_SEARCH_VVC
    END
    POPUP "&Check"
    BEGIN
        MENUITEM "&Area",                       ID_CHECK_AREA
        MENUITEM "&BAM",                        ID_CHECK_ANIMATION
        MENUITEM "&Creature",                   ID_CHECK_CREATURE
        MENUITEM "&Dialog",                     ID_CHECK_DIALOG
        MENUITEM "&Effect",                     ID_CHECK_EFFECT
        MENUITEM "&Game",                       ID_CHECK_GAME
        MENUITEM "&Item",                       ID_CHECK_ITEM
        MENUITEM "&Projectile",                 ID_CHECK_PROJECTILE
        MENUITEM "Sc&ript",                     ID_CHECK_SCRIPT
        MENUITEM "Spaw&n (INI)",                ID_CHECK_SPAWNINI
        MENUITEM "&Spell",                      ID_CHECK_SPELL
        MENUITEM "S&tore",                      ID_CHECK_STORE
        MENUITEM "Table (&2DA)",                ID_CHECK_2DA
        MENUITEM "&UI",                         ID_CHECK_UI
        MENUITEM "&VVC",                        ID_CHECK_VVC
        MENUITEM "&Worldmap",                   ID_CHECK_WORLDMAP
        MENUITEM SEPARATOR
        MENUITEM "Avatar.&2da",                 ID_CHECK_AVATAR2DA
    END
    POPUP "E&xtraction"
    BEGIN
        MENUITEM "&Extract from BIF",           ID_FILE_EXTRACT
        MENUITEM "&Search in BIF",              ID_FILE_SEARCH
        MENUITEM SEPARATOR
        MENUITEM "&Uncompress BIF",             ID_UNCOMPRESSBIF
        MENUITEM "U&ncompress SAV",             ID_UNCOMPRESSSAV
        MENUITEM "Uncompress &CBF",             ID_UNCOMPRESSCBF
        MENUITEM SEPARATOR
        MENUITEM "Skim SAV",                    ID_SKIMSAV
        MENUITEM "Recompress SAV",              ID_EXTRACTION_RECOMPRESSSAV
    END
    POPUP "&Bif"
    BEGIN
        MENUITEM "&Build BIF",                  ID_FILE_BUILDBIF, GRAYED
        MENUITEM "&Reorder BIF",                ID_REORDERBIF
        MENUITEM "&Make BIFC",                  ID_COMPRESSBIF
        MENUITEM "Make &CBF",                   ID_COMPRESSCBF
    END
    POPUP "S&ound"
    BEGIN
        MENUITEM "&WAVC to WAV",                ID_WAVCTOWAV
        MENUITEM "ext. WAVC to WAV",            ID_WAVCTOWAV2
        MENUITEM "WAV to WAVC",                 ID_WAVTOWAVC
        MENUITEM "&ACM to WAV",                 ID_ACMTOWAV
        MENUITEM "ext. ACM to WAV",             ID_ACMTOWAV2
        MENUITEM "WAV to ACM",                  ID_WAVTOACM
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Add CFB to spells",          ID_ADDCFBTOSPELLS
        MENUITEM "&Clear CFB from spells",      ID_CLEARCFBFROMSPELLS
        MENUITEM "&Decompile all dialogs",      ID_TOOLS_DECOMPILE
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
        MENUITEM "&Generate avatars.2da",       ID_AVATARS
        MENUITEM "&Scan variables",             ID_SCANVARIABLES
        MENUITEM "Scan &journal entries",       ID_TOOLS_SCANJOURNALENTRIES
        MENUITEM "Compress &tilesets",          ID_TISPACK
    END
    POPUP "Setti&ngs"
    BEGIN
        POPUP "&Logging"
        BEGIN
            MENUITEM "&None",                       ID_LOGGING_NONE
            MENUITEM "&Screen",                     ID_LOGGING_SCREEN
            , CHECKED
            MENUITEM "&File",                       ID_LOGGING_FILE
        END
        MENUITEM "&Progressbar",                ID_PROGRESS, CHECKED
        MENUITEM "&Read only",                  ID_READONLY
        MENUITEM "Use DialogF",                 ID_USEDIALOGF
        MENUITEM SEPARATOR
        MENUITEM "&Change settings",            ID_COMPAT
        MENUITEM SEPARATOR
        MENUITEM "&Save settings",              ID_SAVESETTINGS
    END
    POPUP "&Help   "
    BEGIN
        MENUITEM "&About",                      IDM_ABOUTBOX, HELP
        MENUITEM "&Tooltips",                   ID_TOOLTIPS, CHECKED
        MENUITEM "&Readme",                     ID_HELP_README
    END
END

IDR_BAMMENU MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New BAM",                    ID_FILE_NEW
        MENUITEM "&Load BAM",                   ID_FILE_LOADBAM
        MENUITEM "Load B&MP",                   ID_FILE_LOADBMP
        MENUITEM "Load &External BAM",          ID_FILE_LOADEXTERNALBAM
        MENUITEM "Load External BM&P",          ID_FILE_LOADEXTERNALBMP
        MENUITEM "Save &BAM",                   ID_FILE_SAVEBAM
        MENUITEM "&Save BAM as...",             ID_FILE_SAVEBAMAS
        MENUITEM SEPARATOR
        MENUITEM "&Merge BAM",                  ID_FILE_MERGEBAM
        MENUITEM "Merge External BAM",          ID_FILE_MERGEEXTERNALBAM
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "F&rame"
    BEGIN
        MENUITEM "&Import frame",               ID_EDIT_IMPORTFRAME
        MENUITEM "&Drop frame",                 ID_EDIT_DROPFRAME
        MENUITEM "&Center frame",               ID_FRAME_CENTERFRAME
        MENUITEM "&Flip frame",                 ID_FLIPFRAME
        MENUITEM "&Minimize frame",             ID_FRAME_MINIMIZEFRAME
    END
    POPUP "&Cycle"
    BEGIN
        MENUITEM "&Drop cycle",                 ID_CYCLE_REMOVECYCLE
        MENUITEM "&Add cycle",                  ID_CYCLE_ADDCYCLE
        MENUITEM "&Insert cycle",               ID_CYCLE_INSERTCYCLE
        MENUITEM "&Copy cycle",                 ID_CYCLE_COPYCYCLE
        MENUITEM "&Paste cycle",                ID_CYCLE_PASTECYCLE
        MENUITEM SEPARATOR
        MENUITEM "&Drop frame",                 ID_CYCLE_DROPFRAME
        MENUITEM "Drop &10 frames",             ID_CYCLE_DROPFRAME10
        MENUITEM "&Set frame",                  ID_CYCLE_SETCYCLE
        MENUITEM "&Add frame",                  ID_EDIT_ADDFRAME
        MENUITEM SEPARATOR
        MENUITEM "&Reverse cycle",              ID_REVERSECYCLE
        MENUITEM "Shift cycle &forward",        ID_SHIFT_FORWARD
        MENUITEM "Shift cycle &backward",       ID_SHIFT_BACKWARD
        MENUITEM "&Flip frames in cycle",       ID_FLIPCYCLE
        MENUITEM "A&lign frames",               ID_CYCLE_ALIGNFRAMES
    END
    POPUP "&Palette"
    BEGIN
        MENUITEM "&Load Palette",               ID_LOADPALETTE
        MENUITEM "&Save Palette",               ID_SAVEPALETTE
        MENUITEM "&Edit Palette",               ID_EDITPALETTE
        MENUITEM "&Force Palette",              ID_FORCEPALETTE
        MENUITEM "&Order Palette",              ID_ORDERPALETTE
        MENUITEM "&Trim Palette",               ID_TRIMPALETTE
        MENUITEM "&Color scale",                ID_COLORSCALE
        MENUITEM "Color scale &+",              ID_COLORSCALE2
    END
    POPUP "&Animate"
    BEGIN
        MENUITEM "&Play cycle",                 ID_ANIMATECYCLE
        MENUITEM "&Continuous play",            ID_CONTINUOUSPLAY
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Drop unused frames",         ID_CLEANUP
        MENUITEM "&Center frames",              ID_TOOLS_CENTERFRAMES
        MENUITEM "&Import frames",              ID_TOOLS_IMPORTFRAMES
        MENUITEM "&Import cycles",              ID_TOOLS_IMPORTCYCLES
        MENUITEM "Comp&ress all",               ID_TOOLS_COMPRESSALLFRAMES
        MENUITEM "&Uncompress all",             ID_TOOLS_DECOMPRESSALLFRAMES
        MENUITEM "&Align all",                  ID_TOOLS_ALIGNALL
        MENUITEM SEPARATOR
        MENUITEM "Create &mirror frames",       ID_CREATEMIRROR
        MENUITEM "Drop all &but last",          ID_TOOLS_DROPALLBUTLAST
        MENUITEM "&Reduce orientation",         ID_REDUCEORIENTATION
        MENUITEM "&Merge bam to cycles",        ID_MERGEBAM
        MENUITEM "Minimalize &frames",          ID_TOOLS_MINIMALFRAME
        MENUITEM "Split frames",                ID_TOOLS_SPLITFRAMES
    END
END

IDR_TREEMENU MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New",                        ID_FILE_NEW
        MENUITEM "&Load",                       ID_FILE_LOAD
        MENUITEM "&Save",                       ID_FILE_SAVE
        MENUITEM "Save &As...",                 ID_FILE_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM "&Export WeiDU",               ID_EXPORT_WEIDU
        MENUITEM "Export TBG",                  ID_EXPORT_TBG
        MENUITEM "Export Shorthand",            ID_FILE_EXPORTUSINGSHORTHAND
        , GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Import WeiDU",               ID_IMPORT_WEIDU
        MENUITEM "Import Shorthand",            ID_FILE_IMPORTSHORTHAND
        , GRAYED
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Tree"
    BEGIN
        MENUITEM "&Expand tree",                ID_EXPAND
        MENUITEM "&Collapse tree",              ID_COLLAPSE
        MENUITEM "&Refresh",                    ID_REFRESH
        MENUITEM SEPARATOR
        MENUITEM "&Follow link",                ID_FOLLOWLINK
        MENUITEM "&Modify link",                ID_CONVERT
        MENUITEM SEPARATOR
        MENUITEM "&Search node",                ID_SEARCHNODE
        MENUITEM "Remove &node",                ID_REMOVE
        MENUITEM "&Add node",                   ID_ADDNODE
        MENUITEM "Add &top level node",         ID_ADDTOP
        MENUITEM "S&wap nodes",                 ID_SWAPNODES
        MENUITEM "&Increase weight",            ID_INCREASEWEIGHT
    END
    MENUITEM "&Check",                      IDC_CHECK
    POPUP "T&ools"
    BEGIN
        MENUITEM "Order &weights (by states)",  ID_TOOLSORDER
        MENUITEM "Order &states (by weights)",  ID_TOOLSORDER2
        MENUITEM "&Quote actor text",           ID_TOOLSPST
        MENUITEM "&IDS Browser",                ID_TOOLS_IDSBROWSER
    END
    POPUP "Options", GRAYED
    BEGIN
        MENUITEM "&Shorthand",                  ID_OPTIONS_SWITCHTOSHORTHAND
        MENUITEM "&Tree edit",                  ID_OPTIONS_TREEEDIT, CHECKED
    END
END

IDR_ITEM MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New item",                   ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load item",                  ID_FILE_LOAD
        MENUITEM "Load &external item",         ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save item",                  ID_FILE_SAVE
        MENUITEM "Save item &As ...",           ID_FILE_SAVEAS
        MENUITEM "Export &TBG item file",       ID_FILE_TBG
        MENUITEM "Export TP&2 item file",       ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
    END
END

IDR_SPELL MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New spell",                  ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load spell",                 ID_FILE_LOAD
        MENUITEM "Load &external spell",        ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save spell",                 ID_FILE_SAVE
        MENUITEM "Save spell &As ...",          ID_FILE_SAVEAS
        MENUITEM "Export &TBG spell file",      ID_FILE_TBG
        MENUITEM "Export TP&2 spell file",      ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
        MENUITEM SEPARATOR
        MENUITEM "&Add CFB",                    ID_ADDCFB
        MENUITEM "&Remove CFB",                 ID_REMOVECFB
        MENUITEM "&Save CFB",                   ID_SAVECFB
    END
END

IDR_STORE MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New store",                  ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load store",                 ID_FILE_LOAD
        MENUITEM "Load &external store",        ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save store",                 ID_FILE_SAVE
        MENUITEM "Save store &As ...",          ID_FILE_SAVEAS
        MENUITEM "Export &TBG store file",      ID_FILE_TBG
        MENUITEM "Export TP&2 store file",      ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
END

IDR_EFFECT MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New effect",                 ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load effect",                ID_FILE_LOAD
        MENUITEM "Load &external effect",       ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save effect",                ID_FILE_SAVE
        MENUITEM "Save effect &As ...",         ID_FILE_SAVEAS
        MENUITEM "Export &TBG effect file",     ID_FILE_TBG
        MENUITEM "Export TP&2 effect file",     ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "Set default &duration",       ID_TOOLS_DURATION
        MENUITEM "&IDS browser",                ID_TOOLS_IDSBROWSER
    END
END

IDR_AREA MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New area",                   ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load area",                  ID_FILE_LOAD
        MENUITEM "Load &external area",         ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save area",                  ID_FILE_SAVE
        MENUITEM "Save area &As ...",           ID_FILE_SAVEAS
        MENUITEM "Export &TBG area file",       ID_FILE_TBG
        MENUITEM "Export TP&2 area file",       ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
        MENUITEM "&Mirror area vertically",     ID_TOOLS_MIRRORAREAVERTICALLY

        MENUITEM "&Repair wed",                 ID_REPAIRWED
        MENUITEM "Repair &night wed",           ID_REPAIRWED2
    END
END

IDR_CREATURE MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New creature",               ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load creature",              ID_FILE_LOAD
        MENUITEM "Load &external creature",     ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save creature",              ID_FILE_SAVE
        MENUITEM "Save creature &As ...",       ID_FILE_SAVEAS
        MENUITEM "Export &TBG creature file",   ID_FILE_TBG
        MENUITEM "Export TP&2 creature file",   ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "Ex&port Soundset",            ID_EXPORTSOUNDSET
        MENUITEM "&Import Soundset",            ID_IMPORTSOUNDSET
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "Edit strings",                ID_TOOLS_LOOKUPSTRREF
        MENUITEM "&IDS browser",                ID_TOOLS_IDSBROWSER
    END
END

IDR_WORLDMAP MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New worldmap",               ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load worldmap",              ID_FILE_LOAD
        MENUITEM "Load &external worldmap",     ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save worldmap",              ID_FILE_SAVE
        MENUITEM "Save worldmap &As ...",       ID_FILE_SAVEAS
        MENUITEM "Export &TBG worldmap file",   ID_FILE_TBG
        MENUITEM "Export TP&2 worldmap file",   ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Remove unused links",        ID_UNUSEDLINKS
    END
END

IDR_GAME MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New game",                   ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load game",                  ID_FILE_LOAD
        MENUITEM "Load &external game",         ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save game",                  ID_FILE_SAVE
        MENUITEM "Save game &As ...",           ID_FILE_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    MENUITEM "&Fix",                        ID_FIX
END

IDR_TLKMENU MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "Re&load",                     IDC_RELOAD
        MENUITEM "&Save",                       ID_FILE_SAVE
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Search"
    BEGIN
        MENUITEM "&Search Text",                IDC_SEARCH
        MENUITEM "&Find Sound",                 IDC_FIND
    END
    POPUP "&Check"
    BEGIN
        MENUITEM "&Tags",                       ID_CHECKTAG
        MENUITEM "&Soundrefs",                  ID_CHECKSOUND
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Mass clear",                 ID_CLEAR
        MENUITEM "&Trim at current strref #",   ID_TRIM
        MENUITEM "Synchronise TLKs",            ID_TOOLS_SYNCHRONISETLKS
    END
END

IDR_SCRIPT MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New script",                 ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load script",                ID_FILE_LOAD
        MENUITEM "Load &external script",       ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save && compile script",     ID_FILE_SAVECOMPILESCRIPT
        MENUITEM "Save &As ...",                ID_FILE_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM "Load script source",          ID_FILE_LOADSOURCE
        MENUITEM "Save script source",          ID_FILE_SAVESCRIPT
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "&Undo\tCtrl+Z",               ID_EDIT_UNDO
        MENUITEM SEPARATOR
        MENUITEM "Cu&t\tCtrl+X",                ID_EDIT_CUT
        MENUITEM "&Copy\tCtrl+C",               ID_EDIT_COPY
        MENUITEM "&Paste\tCtrl+V",              ID_EDIT_PASTE
        MENUITEM "&Delete\tDel",                ID_EDIT_DELETE
        MENUITEM SEPARATOR
        MENUITEM "Select &all\tCtrl+A",         ID_EDIT_SELECTALL
    END
    MENUITEM "&Search",                     ID_SEARCH
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Options"
    BEGIN
        MENUITEM "&Auto check",                 ID_OPTIONS_AUTOCHECK
        MENUITEM "&Large indent",               ID_OPTIONS_LARGEINDENT
        MENUITEM "Use internal &decompiler",    ID_OPTIONS_USEINTERNALDECOMPILER

        MENUITEM "Use internal &compiler",      ID_OPTIONS_USEINTERNALCOMPILER

        MENUITEM "&Show compiler log",          ID_OPTIONS_LOGGING
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
        MENUITEM "&IDS Browser",                ID_TOOLS_IDSBROWSER
    END
END

IDR_VVC MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New VVC",                    ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load VVC",                   ID_FILE_LOAD
        MENUITEM "Load &external VVC",          ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save VVC",                   ID_FILE_SAVE
        MENUITEM "Save VVC &As ...",            ID_FILE_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
END

IDR_PROJECT MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New projectile",             ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load projectile",            ID_FILE_LOAD
        MENUITEM "Load &external projectile",   ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save projectile",            ID_FILE_SAVE
        MENUITEM "Save projectile &As ...",     ID_FILE_SAVEAS
        MENUITEM "Export &TBG missile file",    ID_FILE_TBG
        MENUITEM "Export TP&2 missile file",    ID_FILE_TP2
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
END

IDR_2DA MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New table",                  ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load table",                 ID_FILE_LOAD
        MENUITEM "Load &external table",        ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save table",                 ID_FILE_SAVE
        MENUITEM "Save table &As ...",          ID_FILE_SAVEAS
        MENUITEM "Export &TBG 2da file",        ID_FILE_TBG, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Add spark data",             ID_TOOLS_ADDSPARKDATA
        MENUITEM "&Capitalize entries",         ID_TOOLS_CAPITALIZEENTRIES
        MENUITEM "&Edit strings",               ID_TOOLS_LOOKUPSTRREF
        MENUITEM "&Play sound",                 ID_TOOLS_PLAYSOUND
    END
END

IDR_IDS MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New ids",                    ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load ids",                   ID_FILE_LOAD
        MENUITEM "Load &external ids",          ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save ids",                   ID_FILE_SAVE
        MENUITEM "Save ids &As ...",            ID_FILE_SAVEAS
        MENUITEM "Export &TBG ids file",        ID_FILE_TBG, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "&Add ID",                     ID_ADD
        MENUITEM "&Delete ID",                  ID_REMOVE
        MENUITEM "&Find ID",                    ID_EDIT_FINDID
        MENUITEM "Order IDS",                   ID_ORDER
        MENUITEM SEPARATOR
        MENUITEM "&Hexadecimal",                ID_INT
        MENUITEM "&Four letters",               ID_FOUR
    END
    MENUITEM "&Check",                      ID_CHECK, GRAYED
END

IDR_MUSIC MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New list",                   ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load list",                  ID_FILE_LOAD
        MENUITEM "Load &external list",         ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save list",                  ID_FILE_SAVE
        MENUITEM "Save list &As ...",           ID_FILE_SAVEAS
        MENUITEM "Export &TBG list file",       ID_FILE_TBG, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "Add row",                     ID_ADD
        MENUITEM "Remove row",                  ID_REMOVE
    END
    MENUITEM "&Check",                      ID_CHECK, GRAYED
    POPUP "&Play"
    BEGIN
        MENUITEM "Play &whole",                 ID_PLAY_PLAYWHOLE
        MENUITEM "Play &part",                  ID_PLAY_PLAYPART
    END
END

IDR_TILE MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New MOS",                    ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load MOS",                   ID_FILE_LOAD
        MENUITEM "Load bitmap",                 ID_FILE_LOADBMP
        MENUITEM "Load &external image",        ID_FILE_LOADEXTERNALSCRIPT
        MENUITEM "&Save MOS",                   ID_FILE_SAVE
        MENUITEM "Save MOS &As ...",            ID_FILE_SAVEAS
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Palette"
    BEGIN
        MENUITEM "&Edit palette",               ID_PALETTE_EDIT
        MENUITEM "&Trim palette",               ID_PALETTE_TRIM
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Extract tiles",              ID_TOOLS_EXTRACTTILES
        MENUITEM "&Guess dimensions",           ID_TOOLS_GUESSDIMENSIONS
    END
END

IDR_CHUI MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New interface",              ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load interface",             ID_FILE_LOAD
        MENUITEM "Load &external interface",    ID_FILE_LOADEXTERNAL
        MENUITEM "&Save interface",             ID_FILE_SAVE
        MENUITEM "Save interface &As ...",      ID_FILE_SAVEAS
        MENUITEM "Export &TBG interface file",  ID_FILE_TBG
        MENUITEM "Export TP&2 interface file",  ID_FILE_TBG
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
END

IDR_SRC MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New strings",                ID_FILE_NEW
        MENUITEM SEPARATOR
        MENUITEM "&Load strings",               ID_FILE_LOAD
        MENUITEM "Load &external strings",      ID_FILE_LOADEXTERNAL
        MENUITEM "&Save strings",               ID_FILE_SAVE
        MENUITEM "Save strings &As ...",        ID_FILE_SAVEAS
        MENUITEM "Export &TBG string file",     ID_FILE_TBG
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
END

IDR_WEDMENU MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Clean up",                   IDC_CLEAR
        MENUITEM "&Order all",                  IDC_ORDER
        MENUITEM SEPARATOR
        MENUITEM "&Back",                       IDOK
    END
    POPUP "&Overlay"
    BEGIN
        MENUITEM "&Extract",                    IDC_EDIT
        MENUITEM "&Set",                        IDC_NEW
        MENUITEM "Edit &tiles",                 IDC_EDITTILE
        MENUITEM "&Drop",                       IDC_REMOVE
    END
    POPUP "&Door"
    BEGIN
        MENUITEM "&Copy",                       IDC_COPY
        MENUITEM "&Paste",                      IDC_PASTE
        MENUITEM "&Add",                        IDC_ADD
        MENUITEM "&Drop",                       IDC_REMOVE3
        MENUITEM "&Edit",                       IDC_EDITDOORPOLY
        MENUITEM "&Select",                     IDC_SELECTION
    END
    POPUP "&Wall"
    BEGIN
        MENUITEM "&Make overlay",               IDC_TRANSPARENT
        MENUITEM "&Copy",                       IDC_COPY2
        MENUITEM "&Paste",                      IDC_PASTE2
        MENUITEM "&Add",                        IDC_ADD2
        MENUITEM "&Drop",                       IDC_REMOVE2
        MENUITEM "&Edit",                       IDC_EDITWALLPOLY
        MENUITEM "&Select",                     IDC_SELECTION2
    END
END

IDR_CHITIN MENU DISCARDABLE 
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Reload chitin",              ID_RELOAD
        MENUITEM "&Save chitin",                IDOK
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDCANCEL
    END
    MENUITEM "&Check",                      ID_CHECK
    POPUP "&Tools"
    BEGIN
        MENUITEM "&Explode chitin",             ID_TOOLS_EXPLODE
        MENUITEM "&Implode chitin",             ID_TOOLS_IMPLODE
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//

IDD_COMPAT DLGINIT
BEGIN
    IDC_GAMETYPE, 0x403, 16, 0
0x6142, 0x646c, 0x7275, 0x7327, 0x4720, 0x7461, 0x2065, 0x0049, 
    IDC_GAMETYPE, 0x403, 22, 0
0x6142, 0x646c, 0x7275, 0x7327, 0x4720, 0x7461, 0x2065, 0x2f49, 0x6f54, 
0x5374, 0x0043, 
    IDC_GAMETYPE, 0x403, 17, 0
0x6142, 0x646c, 0x7275, 0x7327, 0x4720, 0x7461, 0x2065, 0x4949, "\000" 
    IDC_GAMETYPE, 0x403, 21, 0
0x6142, 0x646c, 0x7275, 0x7327, 0x4720, 0x7461, 0x2065, 0x4949, 0x542f, 
0x426f, "\000" 
    IDC_GAMETYPE, 0x403, 26, 0
0x6142, 0x646c, 0x7275, 0x7327, 0x4720, 0x7461, 0x2065, 0x4949, 0x542f, 
0x426f, 0x442b, 0x544c, 0x0043, 
    IDC_GAMETYPE, 0x403, 15, 0
0x6349, 0x7765, 0x6e69, 0x2064, 0x6144, 0x656c, 0x4920, "\000" 
    IDC_GAMETYPE, 0x403, 19, 0
0x6349, 0x7765, 0x6e69, 0x2064, 0x6144, 0x656c, 0x4920, 0x482f, 0x576f, 
"\000" 
    IDC_GAMETYPE, 0x403, 16, 0
0x6349, 0x7765, 0x6e69, 0x2064, 0x6144, 0x656c, 0x4920, 0x0049, 
    IDC_GAMETYPE, 0x403, 19, 0
0x6c50, 0x6e61, 0x7365, 0x6163, 0x6570, 0x542f, 0x726f, 0x656d, 0x746e, 
"\000" 
    IDC_LOGTYPE, 0x403, 5, 0
0x6f4e, 0x656e, "\000" 
    IDC_LOGTYPE, 0x403, 8, 0
0x6944, 0x7073, 0x616c, 0x0079, 
    IDC_LOGTYPE, 0x403, 5, 0
0x6946, 0x656c, "\000" 
    0
END

IDD_SPELLGENERAL DLGINIT
BEGIN
    IDC_PRIESTTYPE, 0x403, 15, 0
0x7830, 0x3030, 0x3030, 0x472d, 0x6e65, 0x7265, 0x6c61, "\000" 
    IDC_PRIESTTYPE, 0x403, 20, 0
0x7830, 0x3034, 0x3030, 0x442d, 0x7572, 0x6469, 0x522f, 0x6e61, 0x6567, 
0x0072, 
    IDC_PRIESTTYPE, 0x403, 22, 0
0x7830, 0x3038, 0x3030, 0x432d, 0x656c, 0x6972, 0x2f63, 0x6150, 0x616c, 
0x6964, 0x006e, 
    IDC_PRIESTTYPE, 0x403, 16, 0
0x7830, 0x3065, 0x6637, 0x502d, 0x5453, 0x4d20, 0x6761, 0x0065, 
    IDC_SELECTION, 0x403, 14, 0
0x3030, 0x5320, 0x6863, 0x6f6f, 0x6c6c, 0x7365, 0x0073, 
    IDC_SELECTION, 0x403, 14, 0
0x3930, 0x4e20, 0x6365, 0x6f72, 0x616d, 0x636e, 0x0079, 
    IDC_SELECTION, 0x403, 14, 0
0x3031, 0x4120, 0x746c, 0x7265, 0x7461, 0x6f69, 0x006e, 
    IDC_SELECTION, 0x403, 15, 0
0x3131, 0x4520, 0x636e, 0x6168, 0x746e, 0x656d, 0x746e, "\000" 
    IDC_SELECTION, 0x403, 14, 0
0x3231, 0x4120, 0x6a62, 0x7275, 0x7461, 0x6f69, 0x006e, 
    IDC_SELECTION, 0x403, 12, 0
0x3331, 0x4920, 0x6c6c, 0x7375, 0x6f69, 0x006e, 
    IDC_SELECTION, 0x403, 15, 0
0x3431, 0x4320, 0x6e6f, 0x756a, 0x6172, 0x6974, 0x6e6f, "\000" 
    IDC_SELECTION, 0x403, 14, 0
0x3531, 0x4920, 0x766e, 0x636f, 0x7461, 0x6f69, 0x006e, 
    IDC_SELECTION, 0x403, 14, 0
0x3631, 0x4420, 0x7669, 0x6e69, 0x7461, 0x6f69, 0x006e, 
    IDC_SELECTION, 0x403, 16, 0
0x3831, 0x4220, 0x616c, 0x6b63, 0x7320, 0x6170, 0x6b72, 0x0073, 
    IDC_SELECTION, 0x403, 9, 0
0x3432, 0x5720, 0x6968, 0x6c72, "\000" 
    IDC_SELECTION, 0x403, 9, 0
0x3632, 0x5720, 0x6968, 0x6c72, "\000" 
    IDC_SELECTION, 0x403, 9, 0
0x3233, 0x5720, 0x6968, 0x6c72, "\000" 
    IDC_SELECTION, 0x403, 9, 0
0x3433, 0x5720, 0x6968, 0x6c72, "\000" 
    0
END

IDD_PALETTE DLGINIT
BEGIN
    IDC_FUNCTION, 0x403, 13, 0
0x6552, 0x2064, 0x6f74, 0x4720, 0x6572, 0x6e65, "\000" 
    IDC_FUNCTION, 0x403, 12, 0
0x6552, 0x2064, 0x6f74, 0x4220, 0x756c, 0x0065, 
    IDC_FUNCTION, 0x403, 13, 0
0x7247, 0x6565, 0x206e, 0x6f74, 0x5220, 0x6465, "\000" 
    IDC_FUNCTION, 0x403, 14, 0
0x7247, 0x6565, 0x206e, 0x6f74, 0x4220, 0x756c, 0x0065, 
    IDC_FUNCTION, 0x403, 12, 0
0x6c42, 0x6575, 0x7420, 0x206f, 0x6552, 0x0064, 
    IDC_FUNCTION, 0x403, 14, 0
0x6c42, 0x6575, 0x7420, 0x206f, 0x7247, 0x6565, 0x006e, 
    IDC_FUNCTION, 0x403, 14, 0
0x6552, 0x2064, 0x2d3c, 0x203e, 0x7247, 0x6565, 0x006e, 
    IDC_FUNCTION, 0x403, 15, 0
0x7247, 0x6565, 0x206e, 0x2d3c, 0x203e, 0x6c42, 0x6575, "\000" 
    IDC_FUNCTION, 0x403, 13, 0
0x6c42, 0x6575, 0x3c20, 0x3e2d, 0x5220, 0x6465, "\000" 
    IDC_FUNCTION, 0x403, 10, 0
0x6148, 0x766c, 0x2065, 0x6552, 0x0064, 
    IDC_FUNCTION, 0x403, 12, 0
0x6148, 0x766c, 0x2065, 0x7247, 0x6565, 0x006e, 
    IDC_FUNCTION, 0x403, 11, 0
0x6148, 0x766c, 0x2065, 0x6c42, 0x6575, "\000" 
    IDC_FUNCTION, 0x403, 11, 0
0x6f44, 0x6275, 0x656c, 0x5220, 0x6465, "\000" 
    IDC_FUNCTION, 0x403, 13, 0
0x6f44, 0x6275, 0x656c, 0x4720, 0x6572, 0x6e65, "\000" 
    IDC_FUNCTION, 0x403, 12, 0
0x6f44, 0x6275, 0x656c, 0x4220, 0x756c, 0x0065, 
    IDC_FUNCTION, 0x403, 19, 0
0x6552, 0x2064, 0x2d3c, 0x203e, 0x6c42, 0x6575, 0x7320, 0x616d, 0x7472, 
"\000" 
    IDC_FUNCTION, 0x403, 20, 0
0x7247, 0x6565, 0x206e, 0x2d3c, 0x203e, 0x6552, 0x2064, 0x6d73, 0x7261, 
0x0074, 
    IDC_FUNCTION, 0x403, 21, 0
0x6c42, 0x6575, 0x3c20, 0x3e2d, 0x4720, 0x6572, 0x6e65, 0x7320, 0x616d, 
0x7472, "\000" 
    IDC_FUNCTION, 0x403, 15, 0
0x6441, 0x2064, 0x6461, 0x756a, 0x7473, 0x656d, 0x746e, "\000" 
    IDC_FUNCTION, 0x403, 20, 0
0x7553, 0x7462, 0x6172, 0x7463, 0x6120, 0x6a64, 0x7375, 0x6d74, 0x6e65, 
0x0074, 
    IDC_FUNCTION, 0x403, 9, 0
0x6552, 0x7364, 0x6968, 0x7466, "\000" 
    IDC_FUNCTION, 0x403, 7, 0
0x6144, 0x6b72, 0x6e65, "\000" 
    IDC_FUNCTION, 0x403, 9, 0
0x6f43, 0x746e, 0x6172, 0x7473, "\000" 
    IDC_FUNCTION, 0x403, 7, 0
0x6353, 0x6972, 0x7470, "\000" 
    0
END

IDD_CREATUREGENERAL DLGINIT
BEGIN
    IDC_DUALFLAGS, 0x403, 14, 0
0x7830, 0x3030, 0x3030, 0x4e20, 0x726f, 0x616d, 0x006c, 
    IDC_DUALFLAGS, 0x403, 21, 0
0x7830, 0x3030, 0x3130, 0x4320, 0x6e6f, 0x6563, 0x746e, 0x6172, 0x6974, 
0x6e6f, "\000" 
    IDC_DUALFLAGS, 0x403, 17, 0
0x7830, 0x3030, 0x3230, 0x4e20, 0x206f, 0x6f63, 0x7072, 0x6573, "\000" 
    IDC_DUALFLAGS, 0x403, 19, 0
0x7830, 0x3030, 0x3430, 0x4b20, 0x6565, 0x2070, 0x6f63, 0x7072, 0x6573, 
"\000" 
    IDC_DUALFLAGS, 0x403, 19, 0
0x7830, 0x3030, 0x3830, 0x5720, 0x7361, 0x4620, 0x6769, 0x7468, 0x7265, 
"\000" 
    IDC_DUALFLAGS, 0x403, 16, 0
0x7830, 0x3030, 0x3031, 0x5720, 0x7361, 0x4d20, 0x6761, 0x0065, 
    IDC_DUALFLAGS, 0x403, 18, 0
0x7830, 0x3030, 0x3032, 0x5720, 0x7361, 0x4320, 0x656c, 0x6972, 0x0063, 

    IDC_DUALFLAGS, 0x403, 17, 0
0x7830, 0x3030, 0x3034, 0x5720, 0x7361, 0x5420, 0x6968, 0x6665, "\000" 
    IDC_DUALFLAGS, 0x403, 17, 0
0x7830, 0x3030, 0x3038, 0x5720, 0x7361, 0x4420, 0x7572, 0x6469, "\000" 
    IDC_DUALFLAGS, 0x403, 18, 0
0x7830, 0x3130, 0x3030, 0x5720, 0x7361, 0x5220, 0x6e61, 0x6567, 0x0072, 

    IDC_DUALFLAGS, 0x403, 22, 0
0x7830, 0x3230, 0x3030, 0x4620, 0x6c61, 0x656c, 0x206e, 0x6150, 0x616c, 
0x6964, 0x006e, 
    IDC_DUALFLAGS, 0x403, 21, 0
0x7830, 0x3430, 0x3030, 0x4620, 0x6c61, 0x656c, 0x206e, 0x6152, 0x676e, 
0x7265, "\000" 
    IDC_DUALFLAGS, 0x403, 18, 0
0x7830, 0x3830, 0x3030, 0x4520, 0x7078, 0x726f, 0x6174, 0x6c62, 0x0065, 

    IDC_DUALFLAGS, 0x403, 14, 0
0x7830, 0x3031, 0x3030, 0x5520, 0x756e, 0x6573, 0x0064, 
    IDC_DUALFLAGS, 0x403, 28, 0
0x7830, 0x3032, 0x3030, 0x4320, 0x6972, 0x6974, 0x6163, 0x206c, 0x6170, 
0x6874, 0x2820, 0x5749, 0x3244, 0x0029, 
    IDC_DUALFLAGS, 0x403, 28, 0
0x7830, 0x3034, 0x3030, 0x4320, 0x6e61, 0x7520, 0x6573, 0x6520, 0x6978, 
0x7374, 0x2820, 0x5749, 0x3244, 0x0029, 
    IDC_DUALFLAGS, 0x403, 35, 0
0x7830, 0x3038, 0x3030, 0x5720, 0x7361, 0x6920, 0x206e, 0x6150, 0x7472, 
0x2f79, 0x6e45, 0x6261, 0x656c, 0x2064, 0x4928, 0x4457, 0x2932, "\000" 
    IDC_DUALFLAGS, 0x403, 26, 0
0x7830, 0x3031, 0x3030, 0x2030, 0x6553, 0x6e65, 0x7020, 0x7261, 0x7974, 
0x2820, 0x5749, 0x3244, 0x0029, 
    IDC_DUALFLAGS, 0x403, 28, 0
0x7830, 0x3032, 0x3030, 0x2030, 0x6e49, 0x7576, 0x6e6c, 0x7265, 0x6261, 
0x656c, 0x2820, 0x5749, 0x3244, 0x0029, 
    IDC_DUALFLAGS, 0x403, 31, 0
0x7830, 0x3034, 0x3030, 0x2030, 0x6f4e, 0x2d6e, 0x6874, 0x6572, 0x7461, 
0x6e65, 0x6e69, 0x2067, 0x4928, 0x4457, 0x2932, "\000" 
    IDC_DUALFLAGS, 0x403, 23, 0
0x7830, 0x3038, 0x3030, 0x2030, 0x6f4e, 0x7420, 0x6c61, 0x206b, 0x4928, 
0x4457, 0x2932, "\000" 
    IDC_DUALFLAGS, 0x403, 26, 0
0x7830, 0x3031, 0x3030, 0x3030, 0x4e20, 0x206f, 0x6572, 0x7574, 0x6e72, 
0x2820, 0x5749, 0x3244, 0x0029, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0030, 
    IDC_NUMATTACKS, 0x403, 4, 0
0x2f31, 0x0032, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0031, 
    IDC_NUMATTACKS, 0x403, 4, 0
0x2f33, 0x0032, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0032, 
    IDC_NUMATTACKS, 0x403, 4, 0
0x2f35, 0x0032, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0033, 
    IDC_NUMATTACKS, 0x403, 4, 0
0x2f37, 0x0032, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0034, 
    IDC_NUMATTACKS, 0x403, 4, 0
0x2f39, 0x0032, 
    IDC_NUMATTACKS, 0x403, 2, 0
0x0035, 
    0
END

IDD_AREACONTAINER DLGINIT
BEGIN
    IDC_TYPE, 0x403, 8, 0
0x2030, 0x6e3c, 0x612f, 0x003e, 
    IDC_TYPE, 0x403, 6, 0
0x2031, 0x4142, 0x0047, 
    IDC_TYPE, 0x403, 8, 0
0x2032, 0x4843, 0x5345, 0x0054, 
    IDC_TYPE, 0x403, 9, 0
0x2033, 0x5244, 0x5741, 0x5245, "\000" 
    IDC_TYPE, 0x403, 7, 0
0x2034, 0x4950, 0x454c, "\000" 
    IDC_TYPE, 0x403, 8, 0
0x2035, 0x4154, 0x4c42, 0x0045, 
    IDC_TYPE, 0x403, 8, 0
0x2036, 0x4853, 0x4c45, 0x0046, 
    IDC_TYPE, 0x403, 8, 0
0x2037, 0x4c41, 0x4154, 0x0052, 
    IDC_TYPE, 0x403, 13, 0
0x2038, 0x4f4e, 0x564e, 0x5349, 0x4249, 0x454c, "\000" 
    IDC_TYPE, 0x403, 12, 0
0x2039, 0x5053, 0x4c45, 0x424c, 0x4f4f, 0x004b, 
    IDC_TYPE, 0x403, 8, 0
0x3031, 0x4220, 0x444f, 0x0059, 
    IDC_TYPE, 0x403, 10, 0
0x3131, 0x4220, 0x5241, 0x4552, 0x004c, 
    IDC_TYPE, 0x403, 9, 0
0x3231, 0x4320, 0x4152, 0x4554, "\000" 
    0
END

IDD_DIALOGEDIT DLGINIT
BEGIN
    IDC_JOURTYPE, 0x403, 14, 0
0x6f4a, 0x7275, 0x616e, 0x206c, 0x6e65, 0x7274, 0x0079, 
    IDC_JOURTYPE, 0x403, 6, 0
0x7551, 0x7365, 0x0074, 
    IDC_JOURTYPE, 0x403, 13, 0
0x6f53, 0x766c, 0x6465, 0x7120, 0x6575, 0x7473, "\000" 
    IDC_JOURTYPE, 0x403, 5, 0
0x7355, 0x7265, "\000" 
    0
END

IDD_PROJEDIT DLGINIT
BEGIN
    IDC_TYPE, 0x403, 15, 0
0x7830, 0x2032, 0x6e4f, 0x2065, 0x6174, 0x6772, 0x7465, "\000" 
    IDC_TYPE, 0x403, 16, 0
0x7830, 0x2033, 0x7241, 0x6165, 0x6520, 0x6666, 0x6365, 0x0074, 
    IDC_AIM, 0x403, 23, 0
0x3130, 0x442d, 0x656f, 0x6e73, 0x7427, 0x6620, 0x6361, 0x2065, 0x6174, 
0x6772, 0x7465, "\000" 
    IDC_AIM, 0x403, 16, 0
0x3530, 0x462d, 0x6361, 0x7365, 0x7420, 0x7261, 0x6567, 0x0074, 
    IDC_AIM, 0x403, 17, 0
0x3930, 0x442d, 0x6172, 0x6f67, 0x206e, 0x7262, 0x6165, 0x6874, "\000" 
    0
END

IDD_CREATUREITEMS DLGINIT
BEGIN
    IDC_SPELLTYPE, 0x403, 7, 0
0x7250, 0x6569, 0x7473, "\000" 
    IDC_SPELLTYPE, 0x403, 7, 0
0x6957, 0x617a, 0x6472, "\000" 
    IDC_SPELLTYPE, 0x403, 7, 0
0x6e49, 0x616e, 0x6574, "\000" 
    IDC_SPELLTYPE2, 0x403, 7, 0
0x7250, 0x6569, 0x7473, "\000" 
    IDC_SPELLTYPE2, 0x403, 7, 0
0x6957, 0x617a, 0x6472, "\000" 
    IDC_SPELLTYPE2, 0x403, 7, 0
0x6e49, 0x616e, 0x6574, "\000" 
    0
END

IDD_MAPLINK DLGINIT
BEGIN
    IDC_DIRECTION, 0x403, 1, 0
"\000" 
    0
END

IDD_AREAVARIABLE DLGINIT
BEGIN
    IDC_COLOR, 0x403, 19, 0
0x2030, 0x202d, 0x7247, 0x7961, 0x2820, 0x6564, 0x6166, 0x6c75, 0x2974, 
"\000" 
    IDC_COLOR, 0x403, 11, 0
0x2031, 0x202d, 0x6956, 0x6c6f, 0x7465, "\000" 
    IDC_COLOR, 0x403, 10, 0
0x2032, 0x202d, 0x7247, 0x6565, 0x006e, 
    IDC_COLOR, 0x403, 11, 0
0x2033, 0x202d, 0x724f, 0x6e61, 0x6567, "\000" 
    IDC_COLOR, 0x403, 8, 0
0x2034, 0x202d, 0x6552, 0x0064, 
    IDC_COLOR, 0x403, 9, 0
0x2035, 0x202d, 0x6c42, 0x6575, "\000" 
    IDC_COLOR, 0x403, 14, 0
0x2036, 0x202d, 0x6144, 0x6b72, 0x4220, 0x756c, 0x0065, 
    IDC_COLOR, 0x403, 17, 0
0x2037, 0x202d, 0x694c, 0x6867, 0x2074, 0x7247, 0x7961, 0x2020, "\000" 
    0
END

IDD_CREATUREIWD2 DLGINIT
BEGIN
    IDC_DAMAGE, 0x403, 4, 0
0x2f30, 0x0030, 
    IDC_DAMAGE, 0x403, 5, 0
0x2f35, 0x312b, "\000" 
    IDC_DAMAGE, 0x403, 6, 0
0x3031, 0x2b2f, 0x0032, 
    IDC_DAMAGE, 0x403, 6, 0
0x3531, 0x2b2f, 0x0033, 
    IDC_DAMAGE, 0x403, 6, 0
0x3032, 0x2b2f, 0x0034, 
    IDC_DAMAGE, 0x403, 6, 0
0x3532, 0x2b2f, 0x0035, 
    0
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_SHORTCUT ACCELERATORS MOVEABLE PURE 
BEGIN
    VK_DELETE,      ID_REMOVE,              VIRTKEY, NOINVERT
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About DLTCEP..."
    IDS_FILENAME            "This is the full path of chitin.key, all other locations are relative to it."
    IDS_OPENFILE            "Click here to set the path of chitin.key."
    IDS_RESCAN              "Click here to reload the information from chitin.key and override folder."
    IDS_RESCAN2             "Click here to reload 2DA, IDS and other extra information."
    IDS_OPTIONS             "Click here to change check options."
    IDS_RUN                 "Click here to check all items."
    IDS_EXIT                "Click here to leave the program."
    IDS_EVENT               "Here you can see the warnings and errors about inconsistent items."
    IDS_RUN2                "Click here to check all stores."
    IDS_RUN3                "Click here to check all spells."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_RUN4                "Click here to check all areas."
    IDS_FIND1               "Click here to search specific creatures."
    IDS_FIND2               "Click here to search specific items."
    IDS_FIND3               "Click here to search specific spells."
    IDS_FIND4               "Click here to search specific external effects."
    IDS_CFBHELP             "If the resource field  is set to ******** then it will be reset to the spell name. If the parameter #1 field is set to ---- it will be reset to -level, if it is ++++ then it will be reset to level."
    IDS_CFBOPEN             "Click here to open a casting feature block file."
    IDS_GAMEOPT             "Click here to set your game preferences."
    IDS_FINDSTOR            "Click here to search specific stores."
    IDS_FINDSCRIPT          "Click here to search specific scripts."
    IDS_FINDDLG             "Click here to search specific dialogs."
    IDS_FINDPROJ            "Click here to search specific areas."
    IDS_CHECKCRE            "Click here to check all creatures."
    IDS_CHECKSCRIPT         "Click here to check all scripts."
    IDS_CHECKDLG            "Click here to check all dialogs."
    IDS_CHECKEFF            "Click here to check all external effects."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_CANCEL              "Click here to go back to the main menu."
    IDS_LOAD                "Click here to load an in-game %s."
    IDS_ANIMATION           "animation"
    IDS_LOADEX              "Click here to load an external %s."
    IDS_SAVE                "Click here to save the %s."
    IDS_INVBAM              "Display as a description BAM or normal BAM."
    IDS_SAVEORDER           "Displays the save order of the animation."
    IDS_XPOS                "The horizontal position of the BAM."
    IDS_YPOS                "The vertical position of the BAM."
    IDS_COMPRESSED          "Is the whole BAM compressed by ZIP?"
    IDS_RLE                 "Is the frame compressed by RLE?"
    IDS_XSIZE               "The width of the frame."
    IDS_YSIZE               "The height of the frame."
    IDS_FRAME               "The actual frame."
    IDS_CYCLE               "The actual cycle."
    IDS_FINC                "Frames in this cycle."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_DSIZE               "Raw data size for this frame."
    IDS_PLAY                "Animate this cycle of frames."
    IDS_ITEM                "item"
    IDS_SPELL               "spell"
    IDS_CREATURE            "creature"
    IDS_STORE               "store"
    IDS_AREA                "area"
    IDS_VVC                 "videocell"
    IDS_BITMAP              "bitmap"
    IDS_PRO                 "projectile"
    IDS_RESCAN3             "Click here to reload variables."
    IDS_RESCAN4             "Click here to reload IEEP effect descriptions."
    IDS_DBLCLICKLEAF        "Double click on this node to follow the link."
    IDS_RESCAN5             "Click here to reload the information from dialog.tlk"
    IDS_NEW                 "Click here to start a new %s."
    IDS_EFFECT              "external effect"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ORDER               "Order vertices of polygons."
    IDS_WMP                 "worldmap"
    IDS_MOS                 "tiled image"
    IDS_2DA                 "table"
    IDS_IDS                 "identifiers"
    IDS_DIALOG              "dialog"
    IDS_GAME                "game"
    IDS_CHECK               "Click here to check the %s."
    IDS_MUS                 "musiclist"
    IDS_SCRIPT              "script"
    IDS_MUSIC               "music"
    IDS_WED                 "wedfile"
    IDS_CHU                 "user interface"
    IDS_WAV                 "sound"
    IDS_TILESET             "tileset"
    IDS_UNKNOWN             "unknown"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_MOVIE               "movie"
    IDS_WFX                 "wfx whatever is it"
    IDS_SRC                 "string resource"
    IDS_IAP                 "Infinity Addon Patch"
    IDS_CFBFOLDER           "Set the output folder of this operation."
    IDS_SAVEBACK            "Click here to save the configuration and go back to the main menu."
    IDS_WEIDU               "Click here to change WeiDU specific options."
    IDS_EDIT                "Click here to change editor options."
    IDS_ADDSETUP            "Click here to add a new game setup."
    IDS_REMOVESETUP         "Click here to drop a game setup from this editor."
    IDS_OPENEFFECT          "Click here to assign an IEEP compatible effect description list to this game setup."
    IDS_OPENCHITIN          "Click here to assign a game to this setup."
    IDS_RIGHT               "Click on the folder icon in the right side to change this field."
    IDS_GAMETYPE            "Choose a game type. It will automatically set the checkboxes for your engine version."
    IDS_DIALOGF             "Use DialogF.tlk instead of Dialog.tlk"
    IDS_PSTVAR              "Use var.var for variables. This option also handles PST specific quirks."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_DLG30               "The engine lacks the dialog flags. (Practically all, except BG2)."
    IDS_BG1AREA             "The areas are connected via internal fields. This is BG1 specific."
    IDS_IWD2                "IWD2 specific structures. This option handles most of the IWD2 specific quirks."
    IDS_UNLIMIT             "This option disables the itemtype limit of BG1/BG2. Affects PST/IWD1/IWD2."
    IDS_NOZIP               "This option turns off BAM compression options. PST/IWD1 specific."
    IDS_WEAPON              "No weapon proficiency in items. (Practically all, except BG2)."
    IDS_XPLIST              "XPVAR.2DA file is used instead of XPLIST.2DA (IWD1/IWD2)"
    IDS_DLTC                "Weapon proficiency assignment is different for DLTC."
    IDS_LOGTYPE             "Log to file, display or don't log at all."
    IDS_TOOLTIP             "Turn off these annoying tooltips. (Or turn on those useful tooltips.)"
    IDS_PROGRESS            "These progressbars make the system apparently faster, in fact they make it slightly slower."
    IDS_READONLY            "Turn this on if you don't want to screw your game."
    IDS_SETUPNAME           "Type in your new setup, or pick your old one."
    IDS_SAVEBACK2           "Click here to save the changes and go back to the main menu."
    IDS_BIFLIST             "This is the list of bifs referenced in the chitin.key"
    IDS_FILELIST            "This is the list of files stored in the selected bif."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_PLT                 "paperdoll"
    IDS_BIF                 "Specify the bif you want to search in. This field is optional."
    IDS_FILEMASK            "This could be a fragment of the resource name."
    IDS_FILEEXT             "Choose the filetype, this field is optional just like the others."
    IDS_OVERRIDE            "This will enable overwriting files already in the /override folder."
    IDS_EXTRACT             "Click here to start the extraction of the specified file(s)."
    IDS_SEARCH              "Click here to start searching for the specified file(s)."
    IDS_DROPFRAME           "Removes a frame, also removes all references to it."
    IDS_NEWFRAME            "Imports a single BMP frame."
    IDS_MULTIFRAME          "Imports a complete animation cycle."
    IDS_DROPCYCLE           "Removes a complete cycle."
    IDS_NEWCYCLE            "Adds a new cycle."
    IDS_PAPERDOLL           "Display as a paperdoll BAM or normal BAM."
    IDS_CENTER              "Centers all bam frames."
    IDS_CLEANUP             "Removes all unreferenced data to make the file more compact."
    IDS_TRANSPARENT         "The transparent color index, change it only when the frame is uncompressed."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_FRAME2              "Type the frame index to be added here."
    IDS_ADDFRAME            "Adds a frame index to this animation cycle."
    IDS_SETFRAME            "Change a frame index in the cycle."
    IDS_DELFRAME            "Remove a frame index from this animation cycle."
    IDS_CENTERFRAME         "Adjust position to make this frame centered."
    IDS_BAM                 "A BAM resource reference, preferably same as the VVC name."
    IDS_FRAME15             "Usually set to 15."
    IDS_VVCFLAG             "Various low level display flags."
    IDS_SEQFLAG             "Various VVC sequencing flags."
    IDS_MINIMAP             "Creates a MOS minimap from the TIS."
    IDS_TISEXTRACT          "Click here if you want to extract parts of a TIS."
    IDS_OVERLAY             "Adds a new overlay (also the main overlay)."
    IDS_VEF                 "visual effect"
    IDS_INI                 "parameters"
    IDS_FEATURE             "Click here to choose the opcode (feature)."
    IDS_DESC                "The descriptions are stored in the IEEP compatible *Effects.dat files."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_TARGET              "Choose the target of this effect. It is ignored in external effects."
    IDS_DURATION            "The duration of this effect."
    IDS_TIMING              "Pick a timing method."
    IDS_TEXT                "Displayed text, based on param #1"
    IDS_TEXT2               "Displayed text, based on opcode."
    IDS_PDAMAGE             "Resolve damage type"
    IDS_PIDS                "Resolve IDS targeting"
    IDS_PCOLOR              "Resolve gradients"
    IDS_UNDEFINED           "Use explode/implode to see the parameters in a different format."
    IDS_PAR3                "Parameter 3 and 4 are rarely used."
    IDS_VARNAME             "Local variable names are stored here. Used in #187."
    IDS_SOURCE              "The spell or item which have set this effect. Only in embedded effects."
    IDS_SECTYPE             "The secondary type of the spell. Could be targeted by dispelling effects."
    IDS_SCHOOL              "The spell school of the spell. Could be targeted by dispelling effects."
    IDS_RESOURCE            "A resource type parameter, its type is determined by the effect."
    IDS_RESOURCE2           "A resource type parameter, usually a VVC. Determined by the effect."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_RESOURCE3           "This resource is used only in contingencies/sequencers."
    IDS_RESIST              "Resistance and dispellability."
    IDS_STHROW              "The saving throw type. (Different for IWD2)."
    IDS_SBONUS              "Bonus (or penalty) applied to saving throw."
    IDS_POWER               "The spell power, targeted in dispelling effects."
    IDS_DIE                 "The lowest affected level. (Or die size)."
    IDS_ROLL                "The highest affected level. (Or die count)."
    IDS_PARAM1              "Parameter 1 for the effect, its meaning is dependent on the opcode."
    IDS_PARAM2              "Parameter 2 for the effect, its meaning is dependent on the opcode. Usually determines an opcode subtype."
    IDS_PROB1               "The lowest probability of the effect. In GemRB, if it is 100 then the probability depends on a stat."
    IDS_PROB2               "The highest probability of the effect."
    IDS_TOB                 "Tob engine specific features."
    IDS_DELOVER             "Removes the selected overlay."
    IDS_TILES               "Manage tiles of this overlay."
    IDS_2C                  "Marks local variables."
    IDS_VISIBLE             "Set it to -1 to make the creature visible."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_FIELDS              "1-creature isn't embedded\n8-creature's scripting name overridden"
    IDS_LABEL               "To edit this field, remove the number from the beginning."
    IDS_EXPIRATION          "This field exists in bg2, the item will expire after x hours."
    IDS_AVISIBLE            "Set it to make the animation visible."
    IDS_ABLEND              "Per pixel transparency. The darker the pixel, the more transparent it is."
    IDS_ANOLIGHT            "The animation will be affected by darkness effects (weather, time of day)"
    IDS_APARTIAL            "The animation will stop after the last frame, it won't restart."
    IDS_ASYNC               "The animation will start synchronised with other similarly flagged animations. Otherwise its beginning is random."
    IDS_ANOWALL             "The animation will be always drawn over wall covers."
    IDS_AFOG                "???"
    IDS_ATRANSP             "Per surface transparency, 255=invisible. Cannot use with blending."
    IDS_AALL                "Used for very large animations where a single BAM contains multiple cycles."
    IDS_APALETTE            "Uses a separate BMP palette, see the palette field."
    IDS_AMIRROR             "Mirror the animation on the X-axis."
    IDS_ACOMBAT             "Don't remove the animation in combat, on low settings."
    IDS_CHANCE              "The chance of drawing the animation. (default:100)"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_GROUND              "The animation is covered by actors."
    IDS_ATTR7_IWD2          "Simplified duration"
    IDS_ATTR7_BG2           "No failure"
    IDS_MAKEOVERLAY         "Merge this polygon into an overlay. (The polygon will be removed)."
    IDS_REMOVEOVERLAY       "Remove this polygon from an overlay. (The polygon will be removed.)"
    IDS_COPYPOLY            "Copy this polygon."
    IDS_PASTEPOLY           "Paste in a previously copied polygon."
    IDS_REMOVEPOLY          "Remove the selected polygon."
    IDS_ADDPOLY             "Add a new polygon."
    IDS_SELECTPOLY          "Select a polygon interactively from the area."
    IDS_EDITPOLY            "Edit the selected polygon."
    IDS_EDITTILE            "Edit tiles and overlays of the selected door."
    IDS_REMOVEDOOR          "Delete the selected door."
    IDS_OPEN                "Select between open and closed door polygons."
    IDS_PROB2B              "The probability depends on a stat:"
    IDS_DOOROPEN            "Set when the door is open."
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_DOORCLOSED          "Set when the door is closed."
    IDS_DOORLOCKED          "Set when the door is locked."
    IDS_DOORRESET           "The trap isn't disabled after it was triggered."
    IDS_DOORDETECT          "The secret door is detectable."
    IDS_DOORBROKEN          "The door was opened by force."
    IDS_DOORNOTCLOSED       "The door won't be closed as time passes."
    IDS_DOORLINKED          "The door is linked to a travel region."
    IDS_DOORSECRET          "This is a secret door."
    IDS_DOORFOUND           "The secret door was found."
    IDS_DOORTRANS           "The door doesn't block visibility."
    IDS_DOORKEY             "The key will be destructed when the door is unlocked."
    IDS_DOORSLIDE           "The impeded block is ignored."
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\chitem.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

