XML:PSpc: Difference between revisions
Paradox-01 (talk | contribs) (+ temp + cat) |
Paradox-01 (talk | contribs) m (errrr... wiki image behavior ... no me gusta) |
||
| Line 58: | Line 58: | ||
{| border=0 cellspacing=20 cellpadding=0 style="float:right" | {| border=0 cellspacing=20 cellpadding=0 style="float:right" | ||
| | | | ||
[[Image:PSpc_original.png|center|thumb]] | |||
[[Image:PSpc_color_indicated.png|center|thumb]] | |||
'''TXMPh_19''' | '''TXMPh_19''' | ||
Green left part is 1.<br> | Green left part is 1.<br> | ||
| Line 73: | Line 73: | ||
Coordinates of 7: <nowiki>[65|0]</nowiki> to <nowiki>[128|32]</nowiki> | Coordinates of 7: <nowiki>[65|0]</nowiki> to <nowiki>[128|32]</nowiki> | ||
[[Image:PSpc_parts_ingame.png|right|thumb]] | |||
[ | |||
|} | |} | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
Revision as of 09:14, 28 December 2017
| PSpc : Part Specification |
| |
|---|---|---|
| XML
OSBD << Other file types >> PSpL |
general information
- The xml code on this page is compatible with onisplit v0.9.61.0
- 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>
<PSpc id="0">
<TopLeft>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
[...]
</TopLeft>
<RightBottom>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
[...]
</RightBottom>
<Texture>TXMP...</Texture>
</PSpc>
</Oni>
positions on example
TXMPh_19 is the only image of TxtClevel_19a 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>
<PSpc id="0">
<LeftTop>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>64</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>65</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
</LeftTop>
<RightBottom>
<PSpcPoint>
<X>64</X>
<Y>32</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>64</X>
<Y>32</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>128</X>
<Y>32</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
<PSpcPoint>
<X>0</X>
<Y>0</Y>
</PSpcPoint>
</RightBottom>
<Texture>TXMPh_19</Texture>
</PSpc>
</Oni>


