OBD:WMDD: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
---- | |||
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | |||
---- | |||
=[http://ycybesav.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]= | |||
---- | |||
=[http://ycybesav.co.cc CLICK HERE]= | |||
---- | |||
</div> | |||
{{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}} | {{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}} | ||
Line 43: | Line 51: | ||
{{OBDtr| 0x100 | int16 |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec): | {{OBDtr| 0x100 | int16 |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec): | ||
:1 - desktop (not used in dialogs) | :1 - desktop (not used in dialogs) | ||
:3 - box ( | :3 - box (<nowiki>=</nowiki> groupbox) | ||
:4 - button | :4 - button | ||
:5 - checkbox | :5 - checkbox | ||
Line 52: | Line 60: | ||
:10 - menu (not used in dialogs) | :10 - menu (not used in dialogs) | ||
:11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]]) | :11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]]) | ||
:12 - popup menu ( | :12 - popup menu (<nowiki>=</nowiki> pulldown menu <nowiki>=</nowiki> drop-down menu) ([[OBD:WMM_|WMM_]]) | ||
:13 - progress bar | :13 - progress bar | ||
:14 - radio button | :14 - radio button | ||
Line 73: | Line 81: | ||
:0x00 00 '''01''' 00 - draw button | :0x00 00 '''01''' 00 - draw button | ||
:0x00 00 '''02''' 00 - draw button text | :0x00 00 '''02''' 00 - draw button text | ||
:0x00 00 '''08''' 00 - toggle button (like the ones used | :0x00 00 '''08''' 00 - toggle button (like the ones used "in game" for help, diary etc.) | ||
:0x00 00 '''10''' 00 - default button (the button that coresponds to the Enter key) | :0x00 00 '''10''' 00 - default button (the button that coresponds to the Enter key) | ||
Line 89: | Line 97: | ||
:0x00 00 '''02''' 00 - alphabetical order | :0x00 00 '''02''' 00 - alphabetical order | ||
:0x00 00 '''04''' 00 - unselectable | :0x00 00 '''04''' 00 - unselectable | ||
:0x00 00 '''08''' 00 - contains text (without this it contains only | :0x00 00 '''08''' 00 - contains text (without this it contains only "custom" data) | ||
:0x00 00 '''10''' 00 - owner draw (the owner window will draw the list items) | :0x00 00 '''10''' 00 - owner draw (the owner window will draw the list items) | ||
:0x00 00 '''20''' 00 - draw file/folder icons | :0x00 00 '''20''' 00 - draw file/folder icons | ||
Line 101: | Line 109: | ||
if text field: | if text field: | ||
:0x00 00 '''02''' 00 - horizontal text align | :0x00 00 '''02''' 00 - horizontal text align <nowiki>=</nowiki> center | ||
:0x00 00 '''04''' 00 - horizontal text align | :0x00 00 '''04''' 00 - horizontal text align <nowiki>=</nowiki> right | ||
:0x00 00 '''10''' 00 - vertical text align | :0x00 00 '''10''' 00 - vertical text align <nowiki>=</nowiki> center | ||
:0x00 00 '''80''' 00 - owner draw (hides text) | :0x00 00 '''80''' 00 - owner draw (hides text) | ||
Line 128: | Line 136: | ||
;Visible flag (0x10C) | ;Visible flag (0x10C) | ||
:A hidden/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 ^^). | :A hidden/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 | :With "-noswitch", you can switch to other applications whenever the mouse pointer is visible in Oni. | ||
;Item IDs (for this example) | ;Item IDs (for this example) | ||
:64 - | :64 - "new game" window | ||
:65 - | :65 - "load game" window | ||
:66 - | :66 - "options" window | ||
:67 - | :67 - "quit" window | ||
:68 - | :68 - "resume" window | ||
Revision as of 08:16, 24 November 2010
|
The image below shows the beginning of the file with the settings of the main window.
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x000 | res_id | 01 CE 09 00 | 1541 | 01541-dialog_mainmenu.WMDD |
0x004 | lev_id | 01 00 00 00 | 0 | level 0 |
0x008 | char[256] | Main Menu | title | |
0x108 | int16 | 96 00 | 150 | ID (looked up from code) |
0x10A | int16 | 00 00 | 0 | not used; always 0 |
0x10C | int32 | 01 00 00 00 | 0x01 | state; the following values are used:
|
0x110 | int32 | 00 00 01 00 | 0x00010000 | style; the following values are used:
|
0x114 | int16 | 00 00 | 0 | x coordinate of the window |
0x116 | int16 | 00 00 | 0 | y coordinate of the window |
0x118 | int16 | 80 02 | 640 | width of the window |
0x11A | int16 | E0 01 | 480 | height of the window |
0x11C | int32 | 06 00 00 00 | 6 | array size |
First element (black outline) | ||||
0x000 | char[256] | New Game | text or:
| |
0x100 | int16 | 04 00 | 4 | {{{6}}} |
0x102 | int16 | 64 00 | 100 | ID (looked up from code) |
0x104 | int32 | 01 00 00 00 | 0x01 | state; the following values are used:
|
0x108 | int32 | 00 00 03 00 | 0x030000 | {{{6}}} |
0x10C | int16 | 5E 01 | 350 | x coordinate (relative to the top left corner of the window) |
0x10E | int16 | E6 00 | 230 | y coordinate (relative to the top left corner of the window) |
0x110 | int16 | B4 00 | 180 | width |
0x112 | int16 | 28 00 | 40 | height |
0x114 | link32 | 01 02 00 00 | 2 | link to 00002-Tahoma.TSFF |
0x118 | int32 | 01 00 00 00 | 1 | font option; the following options are possible:
|
0x11C | color32 | 00 7F FF FF | 0, 127, 255; 255 | font color (blue, green, red); transparency |
0x120 | int8 | 01 | 1 | ignored |
0x121 | int8 | 00 | 0 | ignored |
0x122 | int16 | 0A 00 | 10 | font size (height) |
- Dialog ID
- Since Oni looks dialogs up by ID, changing them arbitrarily is not recommended.
- Visible flag (0x10C)
- A hidden/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 (for this example)
- 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 |