OBD talk:WMDD
The xml code on this page is compatible with onisplit v0.9.61.0 |
WMDD: blue windows
general information
- WMDD file are global (edition/GameDataFolder/level0_...)
- 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 dimention (in header always 640 ?) |
<Height> | int16 | Y dimention (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>" |
talk
there's is no such thing as "show background" for text fields, that 01 flag is in fact the "draw default background" window style
So why did you delete it? It changes the style as well: Left image "player name" with 0x00001100. Right image with 0x01001100.
Ssg 13:29, 25 July 2008 (CEST)
Because it's not control specific:
style; dialog styles and the following control specific styles can be used here:
It's already listed under dialog styles. If you want to add this flag to text field then you need to add it to picture fields too for example. And you also need to add the "resizable window" flag and pretty much all the other dialog styles to all the controls.
style; dialog styles and the following control specific styles can be used here:
Ahhhhh... "dialog styles" refers to the "sytle"-section above. Now I got it. Thanks. Ssg 19:56, 27 July 2008 (CEST)