OBD talk:WMDD
WMDD: blue windows
general information
- files like WMDDdialog_options.oni are global. (They can be found in 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", here: 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 Version="0.9.34.0"> <Instance id="0" type="WMDD"> <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>
tags: header
XML tag | description | value type / flags (plus description) |
---|---|---|
<?xml version="1.0" encoding="utf-8"?> | - | - |
<Oni Version="..."> | ... is the version. If onisplit exe is newer than extracted file then file cannot be converted back to *.oni | - |
<Instance id="0" type="WMDD"> | declares file type | - |
<Caption> | - | - |
<Id> | page Id; page is looked up by exe | - |
<State> |
| |
<Style> |
| |
<X> | align (in header always 0) | - |
<Y> | align (in header always 0) | |
<Width> | X dimention (in header always 640 ?) | |
<Height> | Y dimention (in header always 480 ?) | |
<Controls> | contains all "WMDD controls" | |
<WMDDControl> | ||
<Text> |
|
|
<Class> |
| |
<Id> | page Id; page is looked up by exe | |
<State> |
| |
<Style> |
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> | align (relative to the top left corner of the window) | |
<Y> | align (relative to the top left corner of the window) | |
<Width> | X dimention | |
<Height> | Y dimention | |
<Font> | ||
<Family> | usually "TSFFTahoma" | |
<Style> |
| |
<Color> | R G B range, e.g. 255 127 0 (for orange) | |
<Size> | 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)