XML:WMDD: Difference between revisions
m (on further thought, we should be consistent in directing modders to the AE .dats) |
Paradox-01 (talk | contribs) m (ignore this) |
||
| Line 7: | Line 7: | ||
* A WMDD file contains either a page plus dialogs or a "pop-up" page like "WMDDdialog_ChangeRestart.xml" with dialogs. | * 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) | * interfering WMDD ? : WMDDdialog_text_console.xml (might define size of "text consoles", there: 460x410) | ||
* Oni's out-of-game windows are [http:// | * Oni's out-of-game windows are [http://wiki.oni2.net/File:Changed_Load_Menu.png overlaying.] The ''parent'' window becomes visible if you remove the background. | ||
Revision as of 10:29, 28 December 2017
| 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>" |
