OBD:WMDD: Difference between revisions

285 bytes added ,  7 December 2023
m
changed family
m (there's is no such thing as "show background" for text fields, that 01 flag is in fact the "draw default background" window style)
m (changed family)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}}
{{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (WindowManager) Dialog Data|family=Interface}}




Line 5: Line 5:




[[image:wmdd_all.gif]]
[[Image:wmdd_all.gif]]




Line 43: Line 43:
{{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)
:3 - box (<nowiki>=</nowiki> groupbox)
:3 - box (<nowiki>=</nowiki> groupbox) (groups controls together within a border; called Title in OniSplit XML)
:4 - button
:4 - button
:5 - checkbox
:5 - checkbox
Line 50: Line 50:
:8 - listbox
:8 - listbox
: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 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]])
:11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]])
:12 - popup menu (<nowiki>=</nowiki> pulldown menu <nowiki>=</nowiki> drop-down menu) ([[OBD:WMM_|WMM_]])
:12 - popup menu (<nowiki>=</nowiki> pulldown menu <nowiki>=</nowiki> drop-down 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
:20 - text (simple text string; called Label in OniSplit XML)
}}
}}
{{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 65: Line 65:
:0x'''04''' 00 00 00 -  unknown
:0x'''04''' 00 00 00 -  unknown
}}
}}
{{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; dialog styles and the following control specific styles can be used here:
{{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; the dialog styles above (at 0x110) and the following control specific styles can be used here:
if box:
if box:
:0x00 '''02''' 00 00 - draw text background
:0x00 00 '''02''' 00 - draw text background
:0x00 '''04''' 00 00 - draw text
:0x00 00 '''04''' 00 - draw text


if button:
if button:
:0x00 '''01''' 00 00 -  draw button
:0x00 00 '''01''' 00 -  draw button
:0x00 '''02''' 00 00 -  draw button text
:0x00 00 '''02''' 00 -  draw button text
:0x00 '''08''' 00 00 -  unknown
:0x00 00 '''08''' 00 -  toggle button (like the ones used "in game" for help, diary etc.)
:0x00 '''10''' 00 00 -  default button (the button that coresponds to the Enter key)
:0x00 00 '''10''' 00 -  default button (the button that coresponds to the Enter key)


if checkbox:
if checkbox:
:0x00 '''01''' 00 00 - draw label
:0x00 00 '''01''' 00 - draw label


if radiobutton:
if radiobutton:
:0x00 '''01''' 00 00 - draw label
:0x00 00 '''01''' 00 - draw label


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


if listbox:
if listbox:
:0x00 '''01''' 00 00 -  draw scrollbar
:0x00 00 '''01''' 00 -  draw scrollbar
:0x00 '''02''' 00 00 -  alphabetical order
:0x00 00 '''02''' 00 -  alphabetical order
:0x00 '''04''' 00 00 -  unselectable
:0x00 00 '''04''' 00 -  unselectable
:0x00 '''08''' 00 00 -  draw items
:0x00 00 '''08''' 00 -  contains text (without this it contains only "custom" data)
:0x00 '''10''' 00 00 -  owner draw (the owner window will draw the list items)
:0x00 00 '''10''' 00 -  owner draw (the owner window will draw the list items)
:0x00 '''20''' 00 00 -  unknown
:0x00 00 '''20''' 00 -  draw file/folder icons


if picture:
if picture:
:0x00 '''02''' 00 00 - ignore the picture name; the displayed picture is set at runtime
:0x00 00 '''02''' 00 - ignore the picture name; the displayed picture is set at runtime


if popup menu
if popup menu
:0x00 '''01''' 00 00 - use menu width; doesn't work
:0x00 00 '''01''' 00 - use menu width; doesn't work
:0x00 '''02''' 00 00 - ignore the menu name; the menu is set at runtime
:0x00 00 '''02''' 00 - ignore the menu name; the menu is set at runtime


if text field:
if text field:
: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 (hides text)
:0x00 00 '''80''' 00 -  owner draw (hides text)


}}
}}
Line 137: Line 137:




{{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 (WindowManager) Dialog Data|family=Interface}}
 
{{OBD}}