XML:PSpL: Difference between revisions
m (Data Comlink is the official name) |
m (wikilinking Data Comlink) |
||
Line 45: | Line 45: | ||
Ignore the placeholder elements of Type 2, 3, 4 and 1298. The only three types that Oni uses are element 0, "transparent background", element 1, "black background", and element 5, "blue background". | Ignore the placeholder elements of Type 2, 3, 4 and 1298. The only three types that Oni uses are element 0, "transparent background", element 1, "black background", and element 5, "blue background". | ||
You should also ignore the labels "OutOfGameBackground" and "InGameBackground", because OniSplit unfortunately labels them backwards in its XML. The transparent background at position 0 is actually used for the in-game UI such as the Data Comlink (which is why you can see the game world anywhere that the UI is not being drawn). The black background at position 1 is used for Oni's out-of-game UI (such as the Main Menu and Options screen), which is why the whole window is black wherever the UI is not being drawn. The blue background is used only for the panel that appears onscreen when <tt>sound_show_debug=1</tt> is set. | You should also ignore the labels "OutOfGameBackground" and "InGameBackground", because OniSplit unfortunately labels them backwards in its XML. The transparent background at position 0 is actually used for the in-game UI such as the [[Data Comlink]] (which is why you can see the game world anywhere that the UI is not being drawn). The black background at position 1 is used for Oni's out-of-game UI (such as the Main Menu and Options screen), which is why the whole window is black wherever the UI is not being drawn. The blue background is used only for the panel that appears onscreen when <tt>sound_show_debug=1</tt> is set. | ||
{{XML}} | {{XML}} |
Latest revision as of 15:06, 6 December 2023
PSpL : Part Specification List | ||
---|---|---|
XML
PSpc << Other file types >> PSUI |
General information
- This type is global (level0_Final.dat) and there is only one resource of this type, PSpLpartspec_list.
- The only purpose of the PSpL is to define different background colors that can be called upon for the UI.
Example
PSpLpartspec_list:
<?xml version="1.0" encoding="utf-8"?> <Oni> <PSpL id="0"> <Elements> <PSpLElement> <Type>OutOfGameBackground</Type> <Part>PSpcps_none_none_none</Part> </PSpLElement> <PSpLElement> <Type>InGameBackground</Type> <Part>PSpcps_black_none_none</Part> </PSpLElement> <PSpLElement> <Type>2</Type> <Part>PSpcps_white_none_none</Part> </PSpLElement> <PSpLElement> <Type>3</Type> <Part>PSpcps_red_none_none</Part> </PSpLElement> <PSpLElement> <Type>4</Type> <Part>PSpcps_green_none_none</Part> </PSpLElement> <PSpLElement> <Type>SoundDebugPanelBackground</Type> <Part>PSpcps_blue_none_none</Part> </PSpLElement> <PSpLElement> <Type>1298</Type> <Part>PSpcps_white_square_blue</Part> </PSpLElement> </Elements> </PSpL> </Oni>
Ignore the placeholder elements of Type 2, 3, 4 and 1298. The only three types that Oni uses are element 0, "transparent background", element 1, "black background", and element 5, "blue background".
You should also ignore the labels "OutOfGameBackground" and "InGameBackground", because OniSplit unfortunately labels them backwards in its XML. The transparent background at position 0 is actually used for the in-game UI such as the Data Comlink (which is why you can see the game world anywhere that the UI is not being drawn). The black background at position 1 is used for Oni's out-of-game UI (such as the Main Menu and Options screen), which is why the whole window is black wherever the UI is not being drawn. The blue background is used only for the panel that appears onscreen when sound_show_debug=1 is set.