XML:PSpc
PSpc: part specification
general information
This file handles TXMP (images) in IGPG (in-game page) which is used by OPge, TxtC and maybe a few other.
You could also try to emulate image align that way. (The image would be a corner and the rest would be a transparent, stretched pixel line.)
Limitation: please note that an animated TXMP doesn't work in PSpc.
XML structure
|
<?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.28.0"> <Instance id="0" type="PSpc" name="..."> <TopLeft> <PSpcPoint> <Left>...</Left> <Top>...</Top> </PSpcPoint> [...] </TopLeft> <RightBottom> <PSpcPoint> <Right>...</Right> <Bottom>...</Bottom> </PSpcPoint> [...] </RightBottom> <Texture>TXMP...</Texture> </Instance> </Oni>
positions on example
The image TXMPh_19 is the only one but Oni divide it into 9 parts, each part is framed by pixel coordinates, from [Left|Top] to [Right|Bottom].
The corners are fixed while boarders become stretched. Used parts in following example are 1, 4, and 7.
TXMPh_19
Green left part is 1. Coordinates of 1: [0|0] to [64|32] |
<?xml version="1.0" encoding="utf-8"?> <Oni Version="0.9.28.0"> <Instance id="0" type="PSpc" name="level_19_part"> <TopLeft> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>64</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>65</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> <PSpcPoint> <Left>0</Left> <Top>0</Top> </PSpcPoint> </TopLeft> <RightBottom> <PSpcPoint> <Right>64</Right> <Bottom>32</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> <PSpcPoint> <Right>64</Right> <Bottom>32</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> <PSpcPoint> <Right>128</Right> <Bottom>32</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> <PSpcPoint> <Right>0</Right> <Bottom>0</Bottom> </PSpcPoint> </RightBottom> <Texture>TXMPh_19</Texture> </Instance> </Oni>