8,018
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 34: | Line 34: | ||
===XML structure=== | ===XML structure=== | ||
Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header | Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header: always "TxtC". | ||
: Every TxtC contains one instance of type IGPA. | : Every TxtC contains one instance of type IGPA. | ||
Line 52: | Line 52: | ||
|} | |} | ||
'''The following IDs are taken from "TxtClevel_1f.xml" and serve as an example:''' | |||
: #0 (TxtC instance) links to #1 (IGPA instance) | : #0 (TxtC instance) links to #1 (IGPA instance) | ||
Line 63: | Line 63: | ||
: #20 (IGSA instance) links from #21 up to #31 (IGSt Instances) | : #20 (IGSA instance) links from #21 up to #31 (IGSt Instances) | ||
: #32 (IGSA instance) links from #33 up to #43 (IGSt Instances) | : #32 (IGSA instance) links from #33 up to #43 (IGSt Instances) | ||
If you modify or create a new file you can use #5 for anything you like because OniSplit reindexes the instances when packing. The TSFFTahoma placeholder doesn't need to be present in your file. | |||
Line 110: | Line 112: | ||
===example=== | ===example=== | ||
{| border=0 cellspacing=20 cellpadding=0 align=right | {| border=0 cellspacing=20 cellpadding=0 align=right | ||
| [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/modders.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/modders_preview.png] | | [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/modders.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/modders_preview.png] | ||
Line 117: | Line 117: | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni | <Oni> | ||
< | <TxtC id="0"> | ||
<Pages>#1</Pages> | <Pages>#1</Pages> | ||
</ | </TxtC> | ||
< | <IGPA id="1"> | ||
<Pages> | <Pages> | ||
<Link>#2</Link> | <Link>#2</Link> | ||
</Pages> | </Pages> | ||
</ | </IGPA> | ||
You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[PSpc]].) | You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[PSpc]].) | ||
Line 134: | Line 131: | ||
<Text2> cannot be used for TxtC because there isn't a note/hint field. | <Text2> cannot be used for TxtC because there isn't a note/hint field. | ||
< | <IGPG id='''"2"'''> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family>TSFFTahoma</Family> | <Family>TSFFTahoma</Family> | ||
Line 142: | Line 139: | ||
<Flags>Family Style Color Size</Flags> | <Flags>Family Style Color Size</Flags> | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Image>TXMPlevel31_modders</Image> | |||
<Text1>'''# | <Text1>'''#3'''</Text1> | ||
<Text2></Text2> | <Text2></Text2> | ||
</ | </IGPG> | ||
Instance number | Instance number 5 has a space between the text tags (<Text> </Text>) to produce a new paragraph. A single space isn't valid unless you add an attribute to a special tag like that "<Text xml:space="preserve"> </Text>". | ||
< | <IGSA id='''"3"'''> | ||
<Strings> | <Strings> | ||
<Link>'''# | <Link>'''#4'''</Link> | ||
<Link>'''# | <Link>'''#5'''</Link> | ||
<Link>'''# | <Link>'''#6'''</Link> | ||
</Strings> | </Strings> | ||
</ | </IGSA> | ||
< | <IGSt id='''"4"'''> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 165: | Line 162: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text>That's a blue caption.</Text> | <Text>That's a blue caption.</Text> | ||
</ | </IGSt> | ||
< | <IGSt id='''"5"'''> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 175: | Line 172: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text xml:space="preserve"> </Text> | <Text xml:space="preserve"> </Text> | ||
</ | </IGSt> | ||
< | <IGSt id='''"6"'''> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 185: | Line 182: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text>And that's a white, smaller text.</Text> | <Text>And that's a white, smaller text.</Text> | ||
</ | </IGSt> | ||
</Oni> |
edits