OBD:WMDD: Difference between revisions

391 bytes removed ,  19 July 2008
done
No edit summary
(done)
Line 22: Line 22:
}}
}}
{{OBDtr| 0x110 | int32    |FF8000| 00 00 01 00 | 0x00010000  | style; the following values are used:
{{OBDtr| 0x110 | int32    |FF8000| 00 00 01 00 | 0x00010000  | style; the following values are used:
:0x'''01''' 00 00 00 - thin light blue border around the window (somehow transparency is involved too; if you use the g206 ui and press the exit botton of the main window, a window with no background appears)
:0x'''01''' 00 00 00 - draw default background
:0x'''02''' 00 00 00 - thick light lila border around the window
:0x'''02''' 00 00 00 - resizable window (has a thick border)
:0x'''04''' 00 00 00 - light lila title bar  
:0x'''04''' 00 00 00 - show title bar  
:0x'''08''' 00 00 00 - title (title bar required)  
:0x'''08''' 00 00 00 - show title (title bar required)  
:0x'''10''' 00 00 00 - close button visible (title bar required)  
:0x'''10''' 00 00 00 - show close button (title bar required)  
:0x'''20''' 00 00 00 - restore button visible (title bar required)  
:0x'''20''' 00 00 00 - show restore button (title bar required)  
:0x'''40''' 00 00 00 - minimize button visible (title bar required)  
:0x'''40''' 00 00 00 - show minimize button (title bar required)  
:0x00 00 '''01''' 00 - center window on screen (x, y coordinates are ignore when this style is used)
:0x00 00 '''01''' 00 - center window on screen (x, y coordinates are ignore when this style is used)
}}
}}
Line 37: Line 37:
{{OBDtr| 0x11C | int32    |408080| 06 00 00 00 | 6    | array size }}
{{OBDtr| 0x11C | int32    |408080| 06 00 00 00 | 6    | array size }}
{{OBDtrBK}}
{{OBDtrBK}}
{{OBDtr2| 0x000 | char[256]|FFC8C8| New Game | text (or TXMB/TXMP name if class is 11) }}
{{OBDtr2| 0x000 | char[256]|FFC8C8| New Game | text or:
:*TXMB/TXMP/PSpc name if class is picture
:*WMM_ name if class is popup menu
}}
{{OBDtr| 0x100 | int16    |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec):
{{OBDtr| 0x100 | int16    |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec):
:1 - desktop (not used in dialogs)
:1 - desktop (not used in dialogs)
Line 48: Line 51:
:9 - menu bar (not used in dialogs)
:9 - menu bar (not used in dialogs)
:10 - menu  (not used in dialogs)
:10 - menu  (not used in dialogs)
:11 - background picture ([[OBD:TXMB|TXMB]]) or texture ([[OBD:TXMP|TXMP]])
:11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]])
:12 - pull-down menu
:12 - popup menu ([[OBD:WMM_|WMM_]])
:13 - progress bar
:13 - progress bar
:14 - radio button
:14 - radio button
:16 - scrollbar  (not used in dialogs)
:16 - scrollbar  (not used in dialogs)
:17 - slider
:17 - slider
:20 - text field
:20 - text
}}
}}
{{OBDtr| 0x102 | int16    |C8FFC8| 64 00      | 100              | ID (looked up from code) }}
{{OBDtr| 0x102 | int16    |C8FFC8| 64 00      | 100              | ID (looked up from code) }}
Line 62: Line 65:
:0x'''04''' 00 00 00 -  unknown
:0x'''04''' 00 00 00 -  unknown
}}
}}
{{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; some known values:
{{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; dialog styles and the following control specific styles can be used here:
 
if box:
if box:
:0x00 '''02''' 00 00 - draw border
:0x00 '''02''' 00 00 - draw text background
:0x00 '''04''' 00 00 - draw text
:0x00 '''04''' 00 00 - draw text


if button:
if button:
:0x00 00 '''01''' 00 -  show button
:0x00 '''01''' 00 00 -  draw button
:0x00 00 '''02''' 00 -  show button text
:0x00 '''02''' 00 00 -  draw button text
:0x00 00 '''10''' 00 -  no change in color (visible with the g206 ui, button is single-colored instead of multi-colored)
:0x00 '''10''' 00 00 -  default button (the button that coresponds to the Enter key)


if checkbox:
if checkbox:
Line 80: Line 82:


if edit field:
if edit field:
:0x00 '''01''' 00 00 - readonly?
:0x00 '''01''' 00 00 - number only


if listbox:
if listbox:
:0x00 00 '''01''' 00 -  show scrollbar
:0x00 '''01''' 00 00 -  draw scrollbar
:0x00 00 '''02''' 00 -  alphabetical order
:0x00 '''02''' 00 00 -  alphabetical order
:0x00 00 '''04''' 00 -  unselectable
:0x00 '''04''' 00 00 -  unselectable
:0x00 00 '''08''' 00 -  show entries
:0x00 '''08''' 00 00 -  draw items
:0x00 '''01''' 00 00 -  owner draw (the owner windows will draw the list entries)
:0x00 '''01''' 00 00 -  owner draw (the owner window will draw the list items)


if picture:
if picture:
:0x00 '''01''' 00 00 - resize image to fit
:0x00 '''02''' 00 00 - ignore the picture name; the displayed picture is set at runtime
:0x00 '''02''' 00 00 - text field contains the name of a texture ([[TXMP]] or [[TXMB]]


:if pull-down menu
:if popup menu
:0x00 '''01''' 00 00 - uses menu width
:0x00 '''01''' 00 00 - use menu width; doesn't work
:0x00 '''02''' 00 00 - text field contains the name of a menu ([[WMM_]])
:0x00 '''02''' 00 00 - ignore the menu name; the menu is set at runtime


if text field:
if text field:
:0x'''01''' 00 00 00 -  show background and border
:0x00 '''02''' 00 00 -  horizontal text align <nowiki>=</nowiki> center
:0x00 00 '''02''' 00 -  horizontal text align <nowiki>=</nowiki> center
:0x00 '''04''' 00 00 -  horizontal text align <nowiki>=</nowiki> right
:0x00 00 '''04''' 00 -  horizontal text align <nowiki>=</nowiki> right
:0x00 '''10''' 00 00 -  vertical text align <nowiki>=</nowiki> center
:0x00 00 '''10''' 00 -  vertical text align <nowiki>=</nowiki> center
:0x00 '''80''' 00 00 -  owner draw
:0x00 00 '''80''' 00 -  owner draw
---
:'''NOTE''': Possible values also include the ones available for the dialog style field. Style values above 0xffff have class specific meaning so the above list is not necesarilly complete (and correct).
}}
}}
{{OBDtr| 0x10C | int16    |C87C64| 5E 01      | 350              | x coordinate (relative to the top left corner of the window) }}
{{OBDtr| 0x10C | int16    |C87C64| 5E 01      | 350              | x coordinate (relative to the top left corner of the window) }}
708

edits