5,389
edits
(does 3 work as bold italic? ==> No.) |
m (tips by SFeLi) |
||
Line 9: | Line 9: | ||
;Example:01541-dialog_mainmenu.WMDD | |||
{{Table}} | |||
{{OBD_Table_Header}} | |||
|- ALIGN=CENTER VALIGN=TOP | |||
|0x00|| res_id ||BGCOLOR="#FF0000" | 01 '''05 06''' 00 | |||
|- ALIGN=CENTER VALIGN=TOP | |||
| BGCOLOR="#FF0000" | 01 05 06 00 | |||
| 1541 | | 1541 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | resource ID | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
| BGCOLOR="#FFFF00" | 01 00 00 00 | |0x04|| lev_id || BGCOLOR="#FFFF00" | 01 00 00 '''00''' | ||
| 0 | | 0 | ||
| ALIGN=LEFT | level | | ALIGN=LEFT | level ID | ||
|- ALIGN=CENTER VALIGN=TOP | |- 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 | | ALIGN=LEFT | title of the dialog | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
| BGCOLOR="#00FFFF" | 96 00 00 00 | |0x108||int16|| BGCOLOR="#00FFFF" | '''96 00''' 00 00 | ||
| 150 | | 150 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | dialog ID (looked up by engine) | ||
|- ALIGN=CENTER VALIGN=TOP | |- ALIGN=CENTER VALIGN=TOP | ||
| BGCOLOR="#FF00FF" | 01 00 00 00 | |0x10C||bool32|| BGCOLOR="#FF00FF" | 01 00 00 00 | ||
| 1 | | 1 | ||
| ALIGN=LEFT | window status | | ALIGN=LEFT | window status flags: 1 - visible | ||
|- ALIGN=CENTER VALIGN=TOP | |||
|0x110||bool32|| BGCOLOR="#FFC8C8" | 00 00 | |||
|- | |||
| | |||
| | |||
| | |||
| BGCOLOR="#FFC8C8" | 00 00 | |||
| 0 | | 0 | ||
| ALIGN=LEFT | window | | 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 | |- ALIGN=CENTER VALIGN=TOP | ||
| BGCOLOR="# | |0x114||int16|| BGCOLOR="#FFFFC8" | 00 00 | ||
| | | 0 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | x-position of the top left corner | ||
|- ALIGN=CENTER VALIGN=TOP | |||
|0x116||int16|| BGCOLOR="#FFFFC8" | 00 00 | |||
|- ALIGN=CENTER VALIGN=TOP | |||
| BGCOLOR="#FFFFC8" | | |||
| 0 | | 0 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | y-position of the top left corner | ||
|- ALIGN=CENTER VALIGN=TOP | |- 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 | |- 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 | |- ALIGN=CENTER VALIGN=TOP | ||
| BGCOLOR="#C8FFFF" | 06 00 00 00 | |0x11C||int32|| BGCOLOR="#C8FFFF" | 06 00 00 00 | ||
| 6 | | 6 | ||
| ALIGN=LEFT | 6 | | ALIGN=LEFT | 6 items follow | ||
|} | |} | ||
: | : | ||
{ | {{Table}} | ||
|- | {{OBD_Table_Header}} | ||
| | |- VALIGN=TOP ALIGN=CENTER | ||
|0x00||char[256]|| BGCOLOR="#FFC8FF" COLSPAN=2 | <TT>New Game</TT> | |||
| | | ALIGN=LEFT | item text (or TXMB/TXMP name if class is 11) | ||
| | |- VALIGN=TOP ALIGN=CENTER | ||
| BGCOLOR="#FFC8FF" COLSPAN=2 | <TT>New Game</TT> | |0x100||int16|| BGCOLOR="#FFC800" | 04 00 | ||
| ALIGN=LEFT | | |||
|- VALIGN=TOP ALIGN=CENTER | |||
| BGCOLOR="#FFC800" | 04 00 | |||
| 4 | | 4 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | item class/type | ||
|- VALIGN=TOP ALIGN=CENTER | |- VALIGN=TOP ALIGN=CENTER | ||
| BGCOLOR="#C800C8" | 64 00 | |0x102||int16|| BGCOLOR="#C800C8" | 64 00 | ||
| 100 | | 100 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | item ID (see below) | ||
|- VALIGN=TOP ALIGN=CENTER | |||
|0x104||bool32|| BGCOLOR="#C87C64" | 01 00 00 00 | |||
|- VALIGN=TOP ALIGN=CENTER | |||
| BGCOLOR="#C87C64" | 01 00 | |||
| 1 | | 1 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | item status flags: 1 - visible | ||
|- VALIGN=TOP ALIGN=CENTER | |- VALIGN=TOP ALIGN=CENTER | ||
| | |0x108||bool32|| BGCOLOR="#B0C3D4" | 00 00 03 00 | ||
| | | 2^16 + 2^17 | ||
| | | ALIGN=LEFT | item style flags (same as above + 0x20000 : show text) | ||
| | |- VALIGN=TOP ALIGN=CENTER | ||
|0x10C||int16|| BGCOLOR="#64AAAA" | 5E 01 | |||
| | |||
| ALIGN=LEFT | | |||
|- VALIGN=TOP ALIGN=CENTER | |||
| | |||
| | |||
| 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 | |- 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 | |- 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 | |- 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 | |- VALIGN=TOP ALIGN=CENTER | ||
| BGCOLOR="#8C8CCC" | 01 02 00 00 | |0x114||TSFF link|| BGCOLOR="#8C8CCC" | 01 '''02 00''' 00 | ||
| 2 | | 2 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | [[OBD:TSFF|TSFF]] (00002-Tahoma.TSFF | ||
|- VALIGN=TOP ALIGN=CENTER | |- 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 - normal font<BR>01 - <B>bold font</B><BR>02 - <I>italic font</I> | 00 - normal font<BR>01 - <B>bold font</B><BR>02 - <I>italic font</I> | ||
|- VALIGN=TOP ALIGN=CENTER | |- VALIGN=TOP ALIGN=CENTER | ||
| | |0x11C||ARGB|| BGCOLOR="#00C864" | 00 7F FF FF | ||
| | | #FF7F00, opaque | ||
| | | ALIGN=LEFT | font color | ||
|- VALIGN=TOP ALIGN=CENTER | |||
| BGCOLOR="#00C864" | 00 7F FF FF | |0x120||int16|| BGCOLOR="#00C8FF" | 00 00 | ||
| | |||
| ALIGN=LEFT | font color | |||
|- VALIGN=TOP ALIGN=CENTER | |||
| BGCOLOR="#00C8FF" | 00 00 | |||
| 0 | | 0 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | font x-size (unused by Oni?) | ||
|- VALIGN=TOP ALIGN=CENTER | |- 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) | ||
|} | |} | ||
; | ;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 | |||
---- | ---- | ||
{{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}} |