XML:WMDD: Difference between revisions
Jump to navigation
Jump to search
m (link fix) |
(clarifying discrepancy between Oni and OniSplit terminology) |
||
Line 140: | Line 140: | ||
| | | | ||
: Desktop (01 00) | : Desktop (01 00) | ||
: Title (03 00) | : Title (03 00) ("groupbox" or "box" that groups elements together visually) | ||
: Button (04 00) (button text like "OK" or "Close") | : Button (04 00) (button text like "OK" or "Close") | ||
: Checkbox (05 00) | : Checkbox (05 00) | ||
Line 154: | Line 154: | ||
: 16 (10 00) (scrollbar; not used in dialogs) | : 16 (10 00) (scrollbar; not used in dialogs) | ||
: Slider (11 00) | : Slider (11 00) | ||
: Label (14 00) ( | : Label (14 00) (a <Width> value smaller than the text forces a linebreak) ("text") | ||
|- | |- | ||
| <Id> | | <Id> | ||
Line 165: | Line 165: | ||
:1 (visible) | :1 (visible) | ||
:2 (disabled) | :2 (disabled) | ||
:4 (unknown, | :4 (unknown, probably "change texture on click" (used by checkbox)) | ||
|- | |- | ||
|valign=top| <Style> | |valign=top| <Style> |
Revision as of 22:45, 29 December 2020
WMDD : Window Menu Dialog Data | ||
---|---|---|
XML
WMCL << Other file types >> WMM |
general information
- The xml code on this page is compatible with onisplit v0.9.61.0
- WMDD file are global (AE/AEInstaller/vanilla/level0_Final.dat)
- A WMDD file contains either a page plus dialogs or a "pop-up" page like "WMDDdialog_ChangeRestart.xml" with dialogs.
- interfering WMDD ? : WMDDdialog_text_console.xml (might define size of "text consoles", there: 460x410)
- Oni's out-of-game windows are overlaying. The parent window becomes visible if you remove the background.
XML structure
<?xml version="1.0" encoding="utf-8"?> <Oni> <WMDD id="0"> <Caption>Options</Caption> <Id>152</Id> <State>Visible</State> <Style>Center</Style> <X>0</X> <Y>0</Y> <Width>640</Width> <Height>480</Height> <Controls> [...] </Controls> </Instance> </Oni>
[...] means at least one WMDDControl block.
example
<WMDDControl> <Text>Options</Text> <Class>Label</Class> <Id>0</Id> <State>1</State> <Style>1114112</Style> <X>5</X> <Y>10</Y> <Width>70</Width> <Height>20</Height> <Font> <Family>TSFFTahoma</Family> <Style>Bold</Style> <Color>255 127 0</Color> <Size>10</Size> </Font> </WMDDControl>
- TXMB note:
- If you add <WMDDControl> blocks then don't add them under the <WMDDControl> block with TXMB or else your new blocks will be hidden.
- Always the same if <Text> contains "outline"
<Text>outline</Text> <Class>Title</Class> <Id>0</Id> <State>5</State> <Style>65536</Style>
header
XML tag | type | flags and descriptions |
---|---|---|
<Caption> | char[256] | page name/title |
<Id> | int16 | page Id; page is looked up by exe |
<State> | flag |
|
<Style> | flag/int32 |
|
<X> | int16 | align (in header always 0) |
<Y> | int16 | align (in header always 0) |
<Width> | int16 | X dimension (in header always 640 ?) |
<Height> | int16 | Y dimension (in header always 480 ?) |
<WMDDControl>
XML tag | type | flags and descriptions |
---|---|---|
<Text> | char[256] |
|
<Class> | flag |
|
<Id> | int16 | page Id; page is looked up by exe |
<State> | flag |
|
<Style> | flag |
if box:
if button:
if checkbox:
if radiobutton:
if edit field:
if listbox:
if picture:
if popup menu:
if text field:
if text field:
|
<X> | int16 | align (relative to the top left corner of the window) |
<Y> | int16 | align (relative to the top left corner of the window) |
<Width> | int16 | X dimention |
<Height> | int16 | Y dimention |
<Family> | link32 | link to TSFF, usually "TSFFTahoma" |
<Style> | flag |
|
<Color> | color32 | R G B range, e.g. 255 127 0 (for orange) |
<Size> | int16 | font size is usually 10; 7 for "<Text>outline</Text>" |