XML:PSUI

From OniGalore
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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>