Jump to content

XML:TxtC: Difference between revisions

109 bytes added ,  17 July 2009
m
no more file name inside needed
m (fixing a confusion + removing talk; @ "digest wisdom" : a new structure will take some time to develope ...)
m (no more file name inside needed)
Line 3: Line 3:
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
* Console text pages can be called via BSL command "text_console". In fact they don't need a console, you can call up a page in any function you like.
* Console text pages can be called via BSL command "text_console". In fact they don't need a console, you can call up a page in any function you like.
* TxtC's are normally level specific, but could be made global.
* TxtC's are normally level specific (levelX_...), but could be made global (level0_...).




Line 104: Line 104:
::: Color
::: Color
::: Size
::: Size
:: <Text> (contains the actual text but can also create a bare paragraph (see example at instance #46))
:: <Text> (Contains the actual text but can also create a bare paragraph (see example at instance #46). You can use <code>&amp;gt;</code> to produce <code>&gt;</code> and <code>&amp;lt;</code> to produce <code>&lt;</code>.)




Line 115: Line 115:


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni Version="0.9.28.0">
  <Oni Version="0.9.38.0">
     <Instance id="0" type="TxtC" name="level_31b">
     <Instance id="0" type="TxtC">
         <Pages>#1</Pages>
         <Pages>#1</Pages>
     </Instance>
     </Instance>
Line 145: Line 145:
     </Instance>
     </Instance>


Instance number 46 has a space between the text tags (<Text> </Text>) to produce a new paragraph. The import doesn't care about that in onisplit v0.9.28 but you can fix that by writing "<Text xml:space="preserve"> </Text>".
Instance number 46 has a space between the text tags (<Text> </Text>) to produce a new paragraph. The import doesn't care about that but you can fix that by writing "<Text xml:space="preserve"> </Text>".


     <Instance '''id="44"''' type="IGSA">
     <Instance '''id="44"''' type="IGSA">
8,046

edits