OBD:WMDD: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(does 3 work as bold italic? ==> No.)
m (tips by SFeLi)
Line 9: Line 9:




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
;Example:01541-dialog_mainmenu.WMDD
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
{{Table}}
| WIDTH=15% | <B>Hex</B>
{{OBD_Table_Header}}
| <B>Translation</B>
|- ALIGN=CENTER VALIGN=TOP
| <B>Meaning</B>
|0x00|| res_id ||BGCOLOR="#FF0000" | 01 '''05 06''' 00
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF0000" | 01 05 06 00
| 1541
| 1541
| ALIGN=LEFT | 01541-dialog_mainmenu.WMDD
| ALIGN=LEFT | resource ID
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#FFFF00" | 01 00 00 00
|0x04|| lev_id || BGCOLOR="#FFFF00" | 01 00 00 '''00'''
| 0
| 0
| ALIGN=LEFT | level 0
| ALIGN=LEFT | level ID
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#00FF00" COLSPAN=2 | <TT>Main Menu</TT>
|0x08|| char[256]||BGCOLOR="#00FF00" COLSPAN=2 | <TT>Main Menu</TT>
| ALIGN=LEFT | title of the window
| ALIGN=LEFT | title of the dialog
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#00FFFF" | 96 00 00 00
|0x108||int16|| BGCOLOR="#00FFFF" | '''96 00''' 00 00
| 150
| 150
| ALIGN=LEFT | identification number, that this is the main menu dialog; do not change it
| ALIGN=LEFT | dialog ID (looked up by engine)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#FF00FF" | 01 00 00 00
|0x10C||bool32|| BGCOLOR="#FF00FF" | 01 00 00 00
| 1
| 1
| ALIGN=LEFT | window status; the following types are possible:
| ALIGN=LEFT | window status flags: 1 - visible
 
|- ALIGN=CENTER VALIGN=TOP
{| BORDER=0 WIDTH=100%
|0x110||bool32|| BGCOLOR="#FFC8C8" | 00 00  
|- VALIGN=TOP
| ALIGN=RIGHT | 00&nbsp;-
| 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)
|- VALIGN=TOP
| ALIGN=RIGHT | 01 -
| show the window
|}
 
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00  
| 0
| 0
| ALIGN=LEFT | window design; the design is stored as bits, so  the following bits are possible:
| ALIGN=LEFT | window style flags:
 
{| BORDER=0 WIDTH=100%
{| BORDER=0 WIDTH=100%
|- VALIGN=TOP
|- VALIGN=TOP
Line 70: Line 57:
| ALIGN=RIGHT | 40 00 -  
| ALIGN=RIGHT | 40 00 -  
| disabled "minimize the window" box
| disabled "minimize the window" box
|- VALIGN=TOP
| ALIGN=RIGHT | 00 00 01 00-
| window is centered (ignoring the coordinates)
|}
|}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#FFC8C8" | 01 00
|0x114||int16|| BGCOLOR="#FFFFC8" | 00 00
| 1
| 0
| ALIGN=LEFT | window position; the following positions are possible:
| ALIGN=LEFT | x-position of the top left corner
 
|- ALIGN=CENTER VALIGN=TOP
00 - the window is located in the upper left corner of the screen<BR>01 - the window is located in the center of the screen
|0x116||int16|| BGCOLOR="#FFFFC8" | 00 00
 
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 00 00 00 00
| 0
| 0
| ALIGN=LEFT | unknown
| ALIGN=LEFT | y-position of the top left corner
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#C8FFC8" | 80 02
|0x118||int16|| BGCOLOR="#C8FFC8" | 80 02
| 640
| 640
| ALIGN=LEFT | width of the window
| ALIGN=LEFT | x-size (width) of the window
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#C8FFC8" | E0 01
|0x11A||int16|| BGCOLOR="#C8FFC8" | E0 01
| 480
| 480
| ALIGN=LEFT | height of the window
| ALIGN=LEFT | y-size (height) of the window
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP
| BGCOLOR="#C8FFFF" | 06 00 00 00
|0x11C||int32|| BGCOLOR="#C8FFFF" | 06 00 00 00
| 6
| 6
| ALIGN=LEFT | 6 entries follow
| ALIGN=LEFT | 6 items follow
|}
|}
:
:
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{{Table}}
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
{{OBD_Table_Header}}
| WIDTH=15% | <B>Hex</B>
|- VALIGN=TOP ALIGN=CENTER
| WIDTH=15% | <B>Translation</B>
|0x00||char[256]|| BGCOLOR="#FFC8FF" COLSPAN=2 | <TT>New Game</TT>
| WIDTH=70% | <B>Meaning</B>
| ALIGN=LEFT | item text (or TXMB/TXMP name if class is 11)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#FFC8FF" COLSPAN=2 | <TT>New Game</TT>
|0x100||int16|| BGCOLOR="#FFC800" | 04 00
| ALIGN=LEFT | button text
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | 04 00
| 4
| 4
| ALIGN=LEFT | button type
| ALIGN=LEFT | item class/type
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#C800C8" | 64 00
|0x102||int16|| BGCOLOR="#C800C8" | 64 00
| 100
| 100
| ALIGN=LEFT | button is enabled + link to the window; the links for this file are:
| ALIGN=LEFT | item ID (see below)
 
|- VALIGN=TOP ALIGN=CENTER
64&nbsp;- "new game" window<BR>65 - "load game" window<BR>66 - "options" window<BR>68 - "resume" window<BR>67 - "quit" window
|0x104||bool32|| BGCOLOR="#C87C64" | 01 00 00 00
 
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 01 00
| 1
| 1
| ALIGN=LEFT | button options
| ALIGN=LEFT | item status flags: 1 - visible
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#B0C3D4" | 00 00
|0x108||bool32|| BGCOLOR="#B0C3D4" | 00 00 03 00
| 0
| 2^16 + 2^17
| ALIGN=LEFT | unknown
| ALIGN=LEFT | item style flags (same as above + 0x20000 : show text)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#E7CEA5" | 00 00
|0x10C||int16|| BGCOLOR="#64AAAA" | 5E 01
| 0
| ALIGN=LEFT | window design, see table above
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 03 00
| button+text
| ALIGN=LEFT | visibility bitset
 
01 - button<BR>02 - text
 
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#64AAAA" | 5E 01
| 350
| 350
| ALIGN=LEFT | x-position of the button (from the upper left corner of the window)
| ALIGN=LEFT | x-position of the button (from the upper left corner of the window)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#64AAAA" | E6 00
|0x10E||int16|| BGCOLOR="#64AAAA" | E6 00
| 230
| 230
| ALIGN=LEFT | y-position of the button (from the upper left corner of the window)
| ALIGN=LEFT | y-position of the button (from the upper left corner of the window)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#EBEBEB" | B4 00
|0x110||int16|| BGCOLOR="#EBEBEB" | B4 00
| 180
| 180
| ALIGN=LEFT | x-dimension of the button (width)
| ALIGN=LEFT | x-dimension of the button (width)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#EBEBEB" | 28 00
|0x112||int16|| BGCOLOR="#EBEBEB" | 28 00
| 40
| 40
| ALIGN=LEFT | y-dimension of the button (height)
| ALIGN=LEFT | y-dimension of the button (height)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#8C8CCC" | 01 02 00 00
|0x114||TSFF link|| BGCOLOR="#8C8CCC" | 01 '''02 00''' 00
| 2
| 2
| ALIGN=LEFT | link to 00002-Tahoma.[[OBD:TSFF|TSFF]]?
| ALIGN=LEFT | [[OBD:TSFF|TSFF]] (00002-Tahoma.TSFF
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#FF00C8" | 01 00
|0x118||int32|| BGCOLOR="#FF00C8" | 01 00 00 00
| 1
| 1
| ALIGN=LEFT | font option; the following options are possible:
| ALIGN=LEFT | font option; the following options are possible:
Line 161: Line 131:
00&nbsp;- normal font<BR>01 - <B>bold font</B><BR>02 - <I>italic font</I>
00&nbsp;- normal font<BR>01 - <B>bold font</B><BR>02 - <I>italic font</I>


|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#F0F096" | 00 00
|0x11C||ARGB|| BGCOLOR="#00C864" | 00 7F FF FF
| 0
| #FF7F00, opaque
| ALIGN=LEFT | unknown
| ALIGN=LEFT | font color
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#00C864" | 00 7F FF FF
|0x120||int16|| BGCOLOR="#00C8FF" | 00 00
| 0, 127, 255, 255
| ALIGN=LEFT | font color (BGRA)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
| BGCOLOR="#00C8FF" | 00 00
| 0
| 0
| ALIGN=LEFT | unknown
| ALIGN=LEFT | font x-size (unused by Oni?)
|- VALIGN=TOP ALIGN=CENTER BGCOLOR="#FFEEDD"
|- VALIGN=TOP ALIGN=CENTER
| BGCOLOR="#C80040" | 0A 00
|0x124||int16|| BGCOLOR="#C80040" | 0A 00
| 10
| 10
| ALIGN=LEFT | font size
| ALIGN=LEFT | font y-size (read by DCrText_SetFontInfo)
|}
|}
;Bold/italic... a bitset?
;Dialog ID
:does 3 work as bold italic? ==> No. [[User:Ssg|Ssg]] 12:41, 11 April 2007 (CEST)
: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




----
----
{{OBD_File_Footer|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}}
{{OBD_File_Footer|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}}

Revision as of 20:25, 21 May 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_all.gif


Example
01541-dialog_mainmenu.WMDD
Offset Type Raw Hex Value Description
0x00 res_id 01 05 06 00 1541 resource ID
0x04 lev_id 01 00 00 00 0 level ID
0x08 char[256] Main Menu title of the dialog
0x108 int16 96 00 00 00 150 dialog ID (looked up by engine)
0x10C bool32 01 00 00 00 1 window status flags: 1 - visible
0x110 bool32 00 00 0 window style flags:
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
00 00 01 00- window is centered (ignoring the coordinates)
0x114 int16 00 00 0 x-position of the top left corner
0x116 int16 00 00 0 y-position of the top left corner
0x118 int16 80 02 640 x-size (width) of the window
0x11A int16 E0 01 480 y-size (height) of the window
0x11C int32 06 00 00 00 6 6 items follow
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 2^16 + 2^17 item style flags (same as above + 0x20000 : 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
01 - bold font
02 - italic 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