Main Page >> Oni Binary Data >> File Types >> WMDD File
<== WMDD File ==>
WM (Window Menu) Dialog Data - Level 0 File
| Hex
 | 
Translation
 | 
Meaning
 | 
| 01 05 06 00
 | 
1541
 | 
01541-dialog_mainmenu.WMDD
 | 
| 01 00 00 00
 | 
0
 | 
level 0
 | 
| Main Menu
 | 
title of the window
 | 
| 96 00 00 00
 | 
150
 | 
identification number, that this is the main menu dialog; do not change it
 | 
| 01 00 00 00
 | 
1
 | 
window status; the following types are possible:
| 00 -
 | 
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)
 |  
| 01 -
 | 
show the window
 |   
 | 
| 00 00
 | 
0
 | 
window design; the design is stored as bits, so  the following bits are possible:
| 00 00 -
 | 
all design stuff invisible
 |  
| 01 00 -
 | 
thin light blue coloured border around the window
 |  
| 02 00 -
 | 
thick light lila coloured border around the window
 |  
| 03 00 -
 | 
thin light blue + thick light lila coloured border around the window (but you can see only the light lila border)
 |  
| 04 00 -
 | 
light lila coloured title bar
 |  
| 05 00 -
 | 
thin light blue coloured border around the window + light lila coloured title bar
 |  
| 06 00 -
 | 
thick light lila coloured border around the window + light lila coloured title bar
 |  
| 07 00 -
 | 
thin light blue + thick light lila coloured border around the window (but you can see only the light lila border) + light lila coloured title bar
 |  
  after that,  the small block above runs in a loop; only the title bar changes:  
 |  
| 0C 00 -
 | 
light lila coloured title bar + title
 |  
| 14 00 -
 | 
light lila coloured title bar + disabled "close the window" box
 |  
| 1C 00 -
 | 
light lila coloured title bar + title + disabled "close the window" box
 |  
| 24 00 -
 | 
light lila coloured title bar + disabled "restore the window" box
 |  
| 2C 00 -
 | 
light lila coloured title bar + title + disabled "restore the window" box
 |  
| 34 00 -
 | 
light lila coloured title bar + disabled "restore the window" box + disabled "close the window" box
 |  
| 3C 00 -
 | 
light lila coloured title bar + title + disabled "restore the window" box + disabled "close the window" box
 |  
| 44 00 -
 | 
light lila coloured title bar + disabled "minimize the window" box
 |  
| 4C 00 -
 | 
light lila coloured title bar + title + disabled "minimize the window" box
 |  
| 54 00 -
 | 
light lila coloured title bar + disabled "minimize the window" box + disabled "close the window" box
 |  
| 5C 00 -
 | 
light lila coloured title bar + title + enabled "minimize the window" box + disabled "close the window" box
 |  
| 64 00 -
 | 
light lila coloured title bar + disabled "restore the window" box + disabled "minimize the window" box
 |  
| 6C 00 -
 | 
light lila coloured title bar + title + disabled "restore the window" box + disabled "minimize the window" box
 |  
| 74 00 -
 | 
light lila coloured title bar + disabled "restore the window" box + disabled "minimize the window" box + disabled "close the window" box
 |  
| 7C 00 -
 | 
light lila coloured title bar + title + disabled "restore the window" box + enabled "minimize the window" box + disabled "close the window" box
 |   
that's it; now the big block above (including the small block) runs in a loop too; so it doesn't make any difference if you write for example 0C 00 or  8C 00 or 0C 55 or 8C B3; you will always get a light lila coloured title bar + title
 
 | 
| 01 00
 | 
1
 | 
window position; the following positions are possible:
 00 - the window is located in the upper left corner of the screen 01 - the window is located in the center of the screen
 
 | 
| 00 00 00 00
 | 
0
 | 
unknown
 | 
| 80 02
 | 
640
 | 
width of the window
 | 
| E0 01
 | 
480
 | 
height of the window
 | 
| 06 00 00 00
 | 
6
 | 
6 entries follow
 | 
| Hex
 | 
Translation
 | 
Meaning
 | 
| New Game
 | 
button text
 | 
| 04 00
 | 
4
 | 
button type
 | 
| 64 00
 | 
100
 | 
button is enabled + link to the window; the links for this file are:
 64 - "new game" window 65 - "load game" window 66 - "options" window 68 - "resume" window 67 - "quit" window
 
 | 
| 01 00
 | 
1
 | 
button options
 | 
| 00 00
 | 
0
 | 
unknown
 | 
| 00 00
 | 
0
 | 
window design, see table above
 | 
| 03 00
 | 
3
 | 
visible option; the following options are possible:
 00 - nothing 01 - only the button 02 - only the text 03 - button + text
 
 | 
| 5E 01
 | 
350
 | 
x-position of the button (from the upper left corner of the window)
 | 
| E6 00
 | 
230
 | 
y-position of the button (from the upper left corner of the window)
 | 
| B4 00
 | 
180
 | 
x-dimension of the button (width)
 | 
| 28 00
 | 
40
 | 
y-dimension of the button (height)
 | 
| 01 02 00 00
 | 
2
 | 
link to 00002-Tahoma.TSFF?
 | 
| 01 00
 | 
1
 | 
font option; the following options are possible:
 00 - normal font 01 - bold font 02 - italic font
 
 | 
| 00 00
 | 
0
 | 
unknown
 | 
| 00 7F FF
 | 
0, 127, 255
 | 
font color (0 = blue part, 127 = green part, 255 = red part)
 | 
| FF
 | 
255
 | 
unknown
 | 
| 00 00
 | 
0
 | 
unknown
 | 
| 0A 00
 | 
10
 | 
font size
 | 
<== WMDD File ==>
Main Page >> Oni Binary Data >> File Types >> WMDD File