2,107
edits
Paradox-01 (talk | contribs) mNo edit summary |
m (using Image: consistently to make it easier to find all image refs on a page) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | {{XML_File_Header | prev=DOOR | type=DPge | next=FILM | name=Diary Page}} | ||
==General notes== | |||
* The XML code on this page is based on OniSplit '''v0.9.61.0'''. | |||
* '''DPge*.oni''' are global (they can be found in AE/AEInstaller/vanilla/level0_Final.dat). | |||
* A diary page can be read for the first time when the player enters the level indicated by the <LevelNumber> tag. | |||
* '''DPge*.oni''' are global | |||
* A diary page can be read for first time when player enters the level | |||
* An IGPA instance here will make Oni crash. But <PageNumber> let you create more diary pages for a day. | * An IGPA instance here will make Oni crash. But <PageNumber> let you create more diary pages for a day. | ||
* The game can load at most 60 DPge instances. 32 DPge instances exist in original game. | * The game can load at most 60 DPge instances. 32 DPge instances exist in the original game. | ||
==XML structure== | |||
Think of "instances" (#N) as file sections: they run from 1 to N. 0 is the header (it defines the file type, here "DPge"). | |||
Think of "instances" (#N) as file sections | |||
: Every DPge contains one instance of type IGPG. | : Every DPge contains one instance of type IGPG. | ||
Line 24: | Line 19: | ||
: IGSt means a (text) string | : IGSt means a (text) string | ||
Example from vanilla file "DPgelev_19_pg_01": | |||
: #0 (DPge instance) links to #1 (IGPG instance) | : #0 (DPge instance) links to #1 (IGPG instance) | ||
: #1 (IGPG instance) links to #4 and #5 (IGSA instances) | : #1 (IGPG instance) links to #4 and #5 (IGSA instances) | ||
: #2 <font color="#0000CC" title=" #3 exist if IGPG-Text2 is empty | : #2 <font color="#0000CC" title=" #3 exist if IGPG-Text2 is empty ">(unknown placeholder, only presented in original files) (can be ignored)</font> | ||
: #3 (unknown placeholder, only presented in original files) (can be ignored) | : #3 (unknown placeholder, only presented in original files) (can be ignored) | ||
: #4 (IGSA instance) links to #7 (IGSt instance) | : #4 (IGSA instance) links to #7 (IGSt instance) | ||
: #5 (IGSA instance) links to #6 (IGSt instance) | : #5 (IGSA instance) links to #6 (IGSt instance) | ||
==XML tags and options== | |||
'''WPge instance tags''' | '''WPge instance tags''' | ||
: <LevelNumber> (page can be read for first time when player enters this level) | : <LevelNumber> (page can be read for first time when player enters this level) | ||
Line 41: | Line 34: | ||
: <IsLearnedMove> | : <IsLearnedMove> | ||
:: 0 (normal page) | :: 0 (normal page) | ||
:: 1 ( | :: 1 (displays message "New combat move learned. (F1)", which can be avoided with BSL command "ui_suppress_prompt = 1") | ||
: <Page> (link to IGPG instance) | : <Page> (link to IGPG instance) | ||
Line 52: | Line 45: | ||
::: '''Bold''' | ::: '''Bold''' | ||
::: ''Italic'' | ::: ''Italic'' | ||
:: <Color> ([[wikipedia:RGB_color_model# | :: <Color> ([[wikipedia:RGB_color_model#Numeric_representations|RGB]] range, e.g. <Color>255 0 77</Color>) | ||
:: <Size> (10 and 12 are usually used) | :: <Size> (10 and 12 are usually used) | ||
: <Image> (links to a TXMP or PSpc file) | : <Image> (links to a TXMP or PSpc file) | ||
Line 72: | Line 65: | ||
:: <Color> | :: <Color> | ||
:: <Size> | :: <Size> | ||
:: <Flags> (Every IGSt can | :: <Flags> (Every IGSt can have its own properties. The <Flag> tag let you enable these. Add "Size" when you want to get a new font size, add "Color" when you want to get a new font color, etc.) | ||
::: <font style="color:#777">Family</font> | ::: <font style="color:#777">Family</font> | ||
::: Style | ::: Style | ||
::: Color | ::: Color | ||
::: Size | ::: Size | ||
:: <Text> (contains the actual text but can also create a bare paragraph) | :: <Text> (contains the actual text, but can also create a bare paragraph) | ||
===Example=== | |||
=== | [[Image:DPge.jpg|thumb]] | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
Line 94: | Line 84: | ||
</DPge> | </DPge> | ||
You can display a | You can display a small image if you use the image tag in the IGPG instance (either a non-animated TXMP or a [[XML:PSpc|PSpc]]).)= | ||
<IGPG id="1"> | <IGPG id="1"> | ||
Line 119: | Line 109: | ||
</IGSA> | </IGSA> | ||
A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>" | A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>" (not used in this example). | ||
<IGSt id="7"> | <IGSt id="7"> | ||
Line 142: | Line 132: | ||
</IGSt> | </IGSt> | ||
</Oni> | </Oni> | ||
{{XML}} |