OBD:WMDD: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> WMDD File
{{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}}
 
 
<CENTER>[[OBD:WMCL|<==]] <FONT SIZE=5>WMDD File</FONT> [[OBD:WMM_|==>]]<BR>
<FONT SIZE=2>WM (Window Menu) Dialog Data - Level 0 File</FONT></CENTER>




----
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.


Line 52: Line 49:


{| BORDER=0 WIDTH=100%
{| BORDER=0 WIDTH=100%
|- VALIGN=TOP
| ALIGN=RIGHT | 00 00 -
| all design stuff invisible
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 01 00 -  
| ALIGN=RIGHT | 01 00 -  
| thin light blue coloured border around the window
| thin light blue coloured border around the window (background)
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 02 00 -  
| ALIGN=RIGHT | 02 00 -  
| thick light lila coloured border around the window
| thick light lila coloured border around the window (foreground)
|- VALIGN=TOP
| ALIGN=RIGHT | 03 00 -
| thin light blue + thick light lila coloured border around the window (but you can see only the light lila border)
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 04 00 -  
| ALIGN=RIGHT | 04 00 -  
| light lila coloured title bar
| light lila coloured title bar
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 05 00 -  
| ALIGN=RIGHT | 08 00 -  
| thin light blue coloured border around the window + light lila coloured title bar
| title
|- VALIGN=TOP
| ALIGN=RIGHT | 06 00 -
| thick light lila coloured border around the window + light lila coloured title bar
|- VALIGN=TOP
| ALIGN=RIGHT | 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
|-
| COLSPAN=2 | &nbsp;<BR>after that,  the small block above runs in a loop; only the title bar changes:<BR>&nbsp;
|- VALIGN=TOP
| ALIGN=RIGHT | 0C 00 -
| light lila coloured title bar + title
|- VALIGN=TOP
| ALIGN=RIGHT | 14 00 -
| light lila coloured title bar + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 1C 00 -
| light lila coloured title bar + title + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 24 00 -
| light lila coloured title bar + disabled "restore the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 2C 00 -
| light lila coloured title bar + title + disabled "restore the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 34 00 -
| light lila coloured title bar + disabled "restore the window" box + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 3C 00 -
| light lila coloured title bar + title + disabled "restore the window" box + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 44 00 -
| light lila coloured title bar + disabled "minimize the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 4C 00 -
| light lila coloured title bar + title + disabled "minimize the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 54 00 -
| light lila coloured title bar + disabled "minimize the window" box + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 5C 00 -
| light lila coloured title bar + title + enabled "minimize the window" box + disabled "close the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 64 00 -
| light lila coloured title bar + disabled "restore the window" box + disabled "minimize the window" box
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 6C 00 -  
| ALIGN=RIGHT | 10 00 -  
| light lila coloured title bar + title + disabled "restore the window" box + disabled "minimize the window" box
| disabled "close the window" box
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 74 00 -  
| ALIGN=RIGHT | 20 00 -  
| light lila coloured title bar + disabled "restore the window" box + disabled "minimize the window" box + disabled "close the window" box
| disabled "restore the window" box
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 7C&nbsp;00&nbsp;-  
| ALIGN=RIGHT | 40 00 -  
| light lila coloured title bar + title + disabled "restore the window" box + enabled "minimize the window" box + disabled "close the window" box
| disabled "minimize 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
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 01 00
| BGCOLOR="#FFC8C8" | 01 00
Line 192: Line 136:
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 03 00
| BGCOLOR="#FFDDDD" | 03 00
| 3
| button+text
| ALIGN=LEFT | visible option; the following options are possible:
| ALIGN=LEFT | visibility bitset


00&nbsp;- nothing<BR>01 - only the button<BR>02 - only the text<BR>03 - button + text
01 - button<BR>02 - text


|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
Line 229: Line 173:
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 00 7F FF
| BGCOLOR="#00C864" | 00 7F FF FF
| 0, 127, 255
| 0, 127, 255, 255
| ALIGN=LEFT | font color (0 = blue part, 127 = green part, 255 = red part)
| ALIGN=LEFT | font color (BGRA)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | FF
| 255
| ALIGN=LEFT | unknown
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#00C8FF" | 00 00
| BGCOLOR="#00C8FF" | 00 00
Line 245: Line 185:
| ALIGN=LEFT | font size
| ALIGN=LEFT | font size
|}
|}
;Bold/italic... a bitset?
:does 3 work as bold italic?




<HR>
----
<CENTER>[[OBD:WMCL|<==]] <B>WMDD File</B> [[OBD:WMM_|==>]]</CENTER>
{{OBD_File_Footer|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}}
<HR>
 
 
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> WMDD File

Revision as of 03:33, 22 March 2007

ONI BINARY DATA
WMCL << Other file types >> WMM_
WMDD : WM (Window Menu) Dialog Data
switch to XML:WMDD page
Overview @ Oni Stuff
OBD.png



The image below shows the beginning of the file with the settings of the main window.


wmdd_a.gif


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:
01 00 - thin light blue coloured border around the window (background)
02 00 - thick light lila coloured border around the window (foreground)
04 00 - light lila coloured title bar
08 00 - title
10 00 - disabled "close the window" box
20 00 - disabled "restore the window" box
40 00 - disabled "minimize the window" box
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


The following pic gives an example of an entry of the the main window (area edged in black).


wmdd_p1.gif


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 button+text visibility bitset

01 - button
02 - 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 FF 0, 127, 255, 255 font color (BGRA)
00 00 0 unknown
0A 00 10 font size
Bold/italic... a bitset?
does 3 work as bold italic?



ONI BINARY DATA
WMCL << Other file types >> WMM_
WMDD : WM (Window Menu) Dialog Data
Global file