708
edits
m (fixed a mistake)  | 
				 (more to come)  | 
				||
| Line 14: | Line 14: | ||
{{OBDtr| 0x004 | lev_id   |FFFF00| 01 00 00 00 | 0    | level 0 }}  | {{OBDtr| 0x004 | lev_id   |FFFF00| 01 00 00 00 | 0    | level 0 }}  | ||
{{OBDtr2| 0x008| char[256]|00FF00| Main Menu          | title of the dialog }}  | {{OBDtr2| 0x008| char[256]|00FF00| Main Menu          | title of the dialog }}  | ||
{{OBDtr| 0x108 |   | {{OBDtr| 0x108 | int16    |00FFFF| 96 00       | 150  | dialog ID (looked up by engine) }}  | ||
{{OBDtr| 0x10C | int32    |FF00FF| 01 00 00 00 |   | {{OBDtr| 0x10A | int16    |00FFFF| 00 00       | 0    | not used; always 0 }}  | ||
{{OBDtr| 0x10C | int32    |FF00FF| 01 00 00 00 | 0x01 | window state; the following values are used:  | |||
:0x'''01''' 00 00 00 - visible  | |||
:0x'''02''' 00 00 00 - grey title (normaly it's black) + window fixed (you can't move the window)  | |||
:0x'''04''' 00 00 00 - window fixed (you can't move the window)  | |||
}}  | }}  | ||
{{OBDtr|   | {{OBDtr| 0x110 | int32    |FF8000| 00 00 01 00 | 0x00010000  | window style; the following values are used:  | ||
:0x'''01''' 00 00 00 - thin light blue border around the window   | |||
:0x'''02''' 00 00 00 - thick light lila border around the window    | |||
:0x'''04''' 00 00 00 - light lila title bar   | |||
:0x'''08''' 00 00 00 - title (title bar required)   | |||
:0x'''10''' 00 00 00 - close button visible (title bar required)   | |||
:0x'''20''' 00 00 00 - restore button visible (title bar required)   | |||
:0x'''40''' 00 00 00 - minimize button visible (title bar required)   | |||
:0x00 00 '''01''' 00 - center window on screen (x, y coordinates are ignore when this style is used)  | |||
}}  | }}  | ||
{{OBDtr| 0x114 |   | {{OBDtr| 0x114 | int16    |804080| 00 00       | 0    | x coordinate of the window }}  | ||
{{OBDtr| 0x116 | int16    |804080| 00 00       | 0    | y coordinate of the window }}  | |||
{{OBDtr| 0x118 | int16    |804040| 80 02       | 640  | width of the window }}  | {{OBDtr| 0x118 | int16    |804040| 80 02       | 640  | width of the window }}  | ||
{{OBDtr| 0x11A | int16    |804040| E0 01       | 480  | height of the window }}  | {{OBDtr| 0x11A | int16    |804040| E0 01       | 480  | height of the window }}  | ||
| Line 64: | Line 38: | ||
{{OBDtrBK}}  | {{OBDtrBK}}  | ||
{{OBDtr2| 0x000 | char[256]|FFC8C8| New Game | item text (or TXMB/TXMP name if class is 11) }}  | {{OBDtr2| 0x000 | char[256]|FFC8C8| New Game | item text (or TXMB/TXMP name if class is 11) }}  | ||
{{OBDtr| 0x100 | int16     |FFFFC8| 04 00 | 4 | item   | {{OBDtr| 0x100 | int16     |FFFFC8| 04 00 | 4 | item class; the following classes are used (values in dec):  | ||
:3 -  title  | |||
:4 -  button  | |||
3 -  title  | :5 -  checkbox  | ||
:7 -  edit field  | |||
4 -  button  | :8 -  listbox  | ||
:11 -  background picture ([[OBD:TXMB|TXMB]]) or texture ([[OBD:TXMP|TXMP]])  | |||
5 -  checkbox  | :12 -  pull-down menu  | ||
:13 -  progress bar  | |||
7 -  edit field  | :14 -  radio button  | ||
:17 -  slider  | |||
8 -  listbox  | :20 -  text only  | ||
11 -  background picture ([[OBD:TXMB|TXMB]]) or texture ([[OBD:TXMP|TXMP]])  | |||
12 -  pull-down menu  | |||
13 -  progress bar  | |||
14 -  radio button  | |||
17 -  slider  | |||
20 -  text only  | |||
}}  | }}  | ||
{{OBDtr| 0x102 | int16    |C8FFC8| 64 00       | 100              | item ID (see below) }}  | {{OBDtr| 0x102 | int16    |C8FFC8| 64 00       | 100              | item ID (see below) }}  | ||
{{OBDtr| 0x104 | int16    |C8FFFF| 01 00       |   | {{OBDtr| 0x104 | int16    |C8FFFF| 01 00       | 0x01             | item state; the following values are used:  | ||
:0x'''01''' 00 00 00 -  active (item is enabled)  | |||
:0x'''02''' 00 00 00 -  inactive (needs "show item"; item is disabled)    | |||
:0x'''04''' 00 00 00 -  disabled (needs "show item"; item is disabled)    | |||
}}  | }}  | ||
{{OBDtr| 0x106 | int16    |FFC8FF| 00 00       | 0                | item style flags (same as above + 0x00020000 : show text) }}  | {{OBDtr| 0x106 | int16    |FFC8FF| 00 00       | 0                | item style flags (same as above + 0x00020000 : show text) }}  | ||
{{OBDtr| 0x108 | int16    |FFC800| 00 00       | 0                | window design (see above) }}  | {{OBDtr| 0x108 | int16    |FFC800| 00 00       | 0                | window design (see above) }}  | ||
{{OBDtr| 0x10A | int16    |C800C8| 03 00       | 3                | visible option  | {{OBDtr| 0x10A | int16    |C800C8| 03 00       | 3                | visible option; the following values are used:  | ||
:0x'''01''' 00 00 00 -  show button/scrollbar/checkbox text  | |||
:0x'''02''' 00 00 00 -  show button text  | |||
:0x'''04''' 00 00 00 -  show title  | |||
:0x'''08''' 00 00 00 -  show listbox entries  | |||
<nowiki>notes: needs more investigation; they aren't 100% correct; 16 = show text</nowiki>  | <nowiki>notes: needs more investigation; they aren't 100% correct; 16 = show text</nowiki>  | ||
}}  | }}  | ||
{{OBDtr| 0x10C | int16    |C87C64| 5E 01       | 350              | x  | {{OBDtr| 0x10C | int16    |C87C64| 5E 01       | 350              | x coordinate (relative to the top left corner of the window) }}  | ||
{{OBDtr| 0x10E | int16    |C87C64| E6 00       | 230              | y  | {{OBDtr| 0x10E | int16    |C87C64| E6 00       | 230              | y coordinate (relative to the top left corner of the window) }}  | ||
{{OBDtr| 0x110 | int16    |B0C3D4| B4 00       | 180              |   | {{OBDtr| 0x110 | int16    |B0C3D4| B4 00       | 180              | width }}  | ||
{{OBDtr| 0x112 | int16    |B0C3D4| 28 00       | 40               |   | {{OBDtr| 0x112 | int16    |B0C3D4| 28 00       | 40               | height }}  | ||
{{OBDtr| 0x114 | link32   |E7CEA5| 01 02 00 00 | 2                | link to 00002-Tahoma.[[OBD:TSFF|TSFF]]}}  | {{OBDtr| 0x114 | link32   |E7CEA5| 01 02 00 00 | 2                | link to 00002-Tahoma.[[OBD:TSFF|TSFF]]}}  | ||
{{OBDtr| 0x118 | int32    |FFDDDD| 01 00 00 00 | 1                | font option; the following options are possible:  | {{OBDtr| 0x118 | int32    |FFDDDD| 01 00 00 00 | 1                | font option; the following options are possible:  | ||
:0 - normal font  | |||
:1 - '''bold''' font  | |||
0 - normal font  | :2 - ''italic'' font  | ||
1 - '''bold''' font  | |||
2 - ''italic'' font  | |||
}}  | }}  | ||
{{OBDtr| 0x11C | color32    |64AAAA| 00 7F FF FF | 0, 127, 255; 255 | font color (blue, green, red); transparency }}  | {{OBDtr| 0x11C | color32    |64AAAA| 00 7F FF FF | 0, 127, 255; 255 | font color (blue, green, red); transparency }}  | ||
| Line 147: | Line 84: | ||
;Dialog ID  | ;Dialog ID  | ||
:Since Oni looks dialogs up by ID, changing them arbitrarily is not recommended.  | :Since Oni looks dialogs up by ID, changing them arbitrarily is not recommended.  | ||
;  | ;Visible flag (0x10C)  | ||
:A   | :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.  | :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)  | ||
edits