OBD:WMDD: Difference between revisions
Jump to navigation
Jump to search
m (oops etc ^^) |
(will finish it tomorrow) |
||
Line 2: | Line 2: | ||
The image below shows the beginning of the file with the settings of the main window. | The image below shows the beginning of the file with the settings of the main window. | ||
[[image:wmdd_all.gif]] | |||
Line 13: | Line 12: | ||
{{OBD_Table_Header}} | {{OBD_Table_Header}} | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
|0x00 | {{OBDtr| 0x00 | res_id |FF0000| 01 CE 09 00 | 1541 | 01541-dialog_mainmenu.WMDD }} | ||
| 1541 | {{OBDtr| 0x04 | lev_id |FFFF00| 01 00 00 00 | 0 | level 0 }} | ||
{{OBDtr2| 0x08| char[256]|00FF00| Main Menu | title of the dialog }} | |||
|- | {{OBDtr| 0x00 | int32 |00FFFF| 96 00 00 00 | 150 | dialog ID (looked up by engine) }} | ||
|0x04 | {{OBDtr| 0x00 | int32 |FF00FF| 01 00 00 00 | 1 | window status flag; the following flags are possible (values in dec): | ||
| 0 | : | ||
{| border="0" | |||
|- | |||
|0x08 | | 0 - || hide the window (if you use that, you'll get a black screen and the orange mouse cursor; that means you can't quit Oni, so you have to reset your computer) | ||
|- | |||
| | | 1 - || show the window | ||
| | |- | ||
| 150 | | 2 - || grey title (normaly it's black) + window fixed (you can't move the window) | ||
|- | |||
| | | 4 - || window fixed (you can't move the window) | ||
| | |} }} | ||
| 1 | {{OBDtr| 0x00 | int32 |FF8000| 00 00 | 0 | }} | ||
{{OBDtr| 0x00 | int32 |FF0080| 01 00 | 1 | }} | |||
{{OBDtr| 0x00 | int32 |804080| 00 00 00 00 | 0 | }} | |||
| | {{OBDtr| 0x00 | int32 |804040| 80 02 | 640 | }} | ||
| | {{OBDtr| 0x00 | int32 |804040| E0 01 | 480 | height of the window }} | ||
| | {{OBDtr| 0x00 | int32 |408080| 06 00 00 00 | 6 | array size }} | ||
{{OBDtrBK}} | |||
{{OBDtr| 0x00 | int32 || | | }} | |||
| | {{OBDtr| 0x00 | int32 || | | }} | ||
{{OBDtr| 0x00 | int32 || | | }} | |||
|- | {{OBDtr| 0x00 | int32 || | | }} | ||
| | {{OBDtr| 0x00 | int32 || | | }} | ||
| | |||
|- | |||
| | |||
| | |||
|- | |||
|- | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|} | |||
| | |||
| | |||
| 0 | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|} | |} | ||
: | : | ||
{{Table}} | {{Table}} |
Revision as of 21:25, 2 September 2007
|
The image below shows the beginning of the file with the settings of the main window.
- Example
- 01541-dialog_mainmenu.WMDD
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x00 | res_id | 01 CE 09 00 | 1541 | 01541-dialog_mainmenu.WMDD |
0x04 | lev_id | 01 00 00 00 | 0 | level 0 |
0x08 | char[256] | Main Menu | title of the dialog | |
0x00 | int32 | 96 00 00 00 | 150 | dialog ID (looked up by engine) |
0x00 | int32 | 01 00 00 00 | 1 | window status flag; the following flags are possible (values in dec):
{ |
0x00 | int32 | 00 00 | 0 | |
0x00 | int32 | 01 00 | 1 | |
0x00 | int32 | 00 00 00 00 | 0 | |
0x00 | int32 | 80 02 | 640 | |
0x00 | int32 | E0 01 | 480 | height of the window |
0x00 | int32 | 06 00 00 00 | 6 | array size |
First element (black outline) | ||||
0x00 | int32 | |||
0x00 | int32 | |||
0x00 | int32 | |||
0x00 | int32 | |||
0x00 | int32 |
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x00 | char[256] | New Game | item text (or TXMB/TXMP name if class is 11) | |
0x100 | int16 | 04 00 | 4 | item class/type |
0x102 | int16 | 64 00 | 100 | item ID (see below) |
0x104 | bool32 | 01 00 00 00 | 1 | item status flags: 1 - visible |
0x108 | bool32 | 00 00 03 00 | 0x00030000 2^16 + 2^17 |
item style flags (same as above + 0x00020000 : show text) |
0x10C | int16 | 5E 01 | 350 | x-position of the button (from the upper left corner of the window) |
0x10E | int16 | E6 00 | 230 | y-position of the button (from the upper left corner of the window) |
0x110 | int16 | B4 00 | 180 | x-dimension of the button (width) |
0x112 | int16 | 28 00 | 40 | y-dimension of the button (height) |
0x114 | TSFF link | 01 02 00 00 | 2 | TSFF (00002-Tahoma.TSFF |
0x118 | int32 | 01 00 00 00 | 1 | font option; the following options are possible:
00 - normal font |
0x11C | ARGB | 00 7F FF FF | #FF7F00, opaque | font color |
0x120 | int16 | 00 00 | 0 | font x-size (unused by Oni?) |
0x124 | int16 | 0A 00 | 10 | font y-size (read by DCrText_SetFontInfo) |
- Dialog ID
- Since Oni looks dialogs up by ID, changing them arbitrarily is not recommended.
- Show/hide flag (0x10C)
- A hidded/disabled window can't be activated from Oni, so if you hide the main menu, you'll have to shut down Oni from the Task Manager (or make it Blam ^^).
- With "-noswitch", you can switch to other applications whenever the mouse pointer is visible in Oni.
- Item IDs
- 64 - "new game" window
- 65 - "load game" window
- 66 - "options" window
- 67 - "quit" window
- 68 - "resume" window
ONI BINARY DATA |
---|
WMCL << Other file types >> WMM_ |
WMDD : WM (Window Menu) Dialog Data |
Global file |