XML:PSUI: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (correcting prev/next types in nav header)
(updating information pertaining to the Tool mode PSUI)
 
Line 3: Line 3:
==General information==
==General information==
*PSUI is a global type (level0_Final.dat) and only two of them exist in vanilla Oni: PSUIpsui_g206 and PSUIpsui_oniUI.
*PSUI is a global type (level0_Final.dat) and only two of them exist in vanilla Oni: PSUIpsui_g206 and PSUIpsui_oniUI.
*Only PSUIpsui_oniUI is called upon in Oni. It contains a list of [[XML:PSpc|PSpcs]] that should be used to draw the game's interface, but in-game and out-of-game.
*Only PSUIpsui_oniUI is called upon in Oni. It contains a list of [[XML:PSpc|PSpcs]] that should be used to draw the game's interface, both in-game and out-of-game.
*PSUIpsui_g206 provided the GUI for [[Tool mode]]. Apparently _oniUI was created from _g206, as any elements in _oniUI that aren't actually used still link to PSpcs belonging to _g206.
*If you follow the PSpc links back to the actual TXMPs which they slice up to get their visual data from, the _oniUI PSpcs all link to TXMPnavi and the _g206 PSpcs all link to TXMPg206_controls_128x64.


==Example==
==Example==
Line 56: Line 58:
     </PSUI>
     </PSUI>
  </Oni>
  </Oni>
The references in this PSUI to PSpcs starting with "ps_g206" are probably development relics and represent elements that are never drawn in Oni's in-game or out-of-game GUI. The "ps_oniUI" PSpcs all link to TXMPnavi, which they slice up in order to draw the UI controls.


{{XML}}
{{XML}}

Latest revision as of 14:42, 24 December 2021

PSUI : Part Specification UI
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

PSpL << Other file types >> SNDD

switch to OBD page

General information

  • PSUI is a global type (level0_Final.dat) and only two of them exist in vanilla Oni: PSUIpsui_g206 and PSUIpsui_oniUI.
  • Only PSUIpsui_oniUI is called upon in Oni. It contains a list of PSpcs that should be used to draw the game's interface, both in-game and out-of-game.
  • PSUIpsui_g206 provided the GUI for Tool mode. Apparently _oniUI was created from _g206, as any elements in _oniUI that aren't actually used still link to PSpcs belonging to _g206.
  • If you follow the PSpc links back to the actual TXMPs which they slice up to get their visual data from, the _oniUI PSpcs all link to TXMPnavi and the _g206 PSpcs all link to TXMPg206_controls_128x64.

Example

PSUIpsui_oniUI:

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <PSUI id="0">
       <Background>PSpcps_oniUI_background</Background>
       <Border>PSpcps_g206_border</Border>
       <Title>PSpcps_g206_title</Title>
       <Grow>PSpcps_g206_grow</Grow>
       <CloseIdle>PSpcps_g206_close_idle</CloseIdle>
       <ClosePressed>PSpcps_g206_close_pressed</ClosePressed>
       <ZoomIdle>PSpcps_g206_zoom_idle</ZoomIdle>
       <ZoomPressed>PSpcps_g206_zoom_pressed</ZoomPressed>
       <FlattenIdle>PSpcps_g206_flatten_idle</FlattenIdle>
       <FlattenPressed>PSpcps_g206_flatten_pressed</FlattenPressed>
       <TextCaret>PSpcps_g206_text_caret</TextCaret>
       <Outline>PSpcps_oniUI_outline</Outline>
       <Button>PSpcps_oniUI_button_off</Button>
       <ButtonOff>PSpcps_oniUI_button_off</ButtonOff>
       <ButtonOn>PSpcps_oniUI_button_on</ButtonOn>
       <CheckBoxOn>PSpcps_oniUI_checkbox_on</CheckBoxOn>
       <CheckBoxOff>PSpcps_oniUI_checkbox_off</CheckBoxOff>
       <EditField>PSpcps_oniUI_background</EditField>
       <EditFieldFocused>PSpcps_g206_ef_hasfocus</EditFieldFocused>
       <EditFieldHighlighted>PSpcps_oniUI_hilite</EditFieldHighlighted>
       <Divider>PSpcps_oniUI_divider</Divider>
       <Check>PSpcps_g206_check</Check>
       <PopupMenu>PSpcps_oniUI_popup_menu</PopupMenu>
       <ProgressBarTrack>PSpcps_oniUI_progressbar_track</ProgressBarTrack>
       <ProgressBarFill>PSpcps_oniUI_progressbar_fill</ProgressBarFill>
       <RadioButtonOn>PSpcps_g206_radio_button_on</RadioButtonOn>
       <RadioButtonOff>PSpcps_g206_radio_button_off</RadioButtonOff>
       <ScrollBarArrowUpIdle>PSpcps_oniUI_arrow_up_idle</ScrollBarArrowUpIdle>
       <ScrollBarArrowUpPressed>PSpcps_oniUI_arrow_up_pressed</ScrollBarArrowUpPressed>
       <ScrollBarArrowDownIdle>PSpcps_oniUI_arrow_dn_idle</ScrollBarArrowDownIdle>
       <ScrollBarArrowDownPressed>PSpcps_oniUI_arrow_dn_pressed</ScrollBarArrowDownPressed>
       <ScrollBarVerticalTrack>PSpcps_oniUI_sb_v_track</ScrollBarVerticalTrack>
       <ScrollBarArrowLeftIdle>PSpcps_g206_arrow_lt_idle</ScrollBarArrowLeftIdle>
       <ScrollBarArrowLeftPressed>PSpcps_g206_arrow_lt_pressed</ScrollBarArrowLeftPressed>
       <ScrollBarArrowRightIdle>PSpcps_g206_arrow_rt_idle</ScrollBarArrowRightIdle>
       <ScrollBarArrorRightPressed>PSpcps_g206_arrow_rt_pressed</ScrollBarArrorRightPressed>
       <ScrollBarHorizontalTrack>PSpcps_g206_sb_h_track</ScrollBarHorizontalTrack>
       <ScrollBarThumb>PSpcps_oniUI_thumb</ScrollBarThumb>
       <SliderThumb>PSpcps_oniUI_sl_thumb</SliderThumb>
       <SliderTrack>PSpcps_oniUI_sl_track</SliderTrack>
       <Background2>PSpcps_g206_background</Background2>
       <Background3>PSpcps_g206_background</Background3>
       <File>PSpcps_g206_file</File>
       <Folder>PSpcps_g206_folder</Folder>
   </PSUI>
</Oni>