Editing XMBML Coding
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category:Software]] | |||
This page | This page will outline the logic behind [[XMB]] .xml configuration files. | ||
== Basic Structure == | |||
This is a reduced version of [[XMB-Network | category_network.xml]] with only one icon (tex_browser) that launches the webbrowser (type:x-xmb/xmlwebbrowser). The .xml is loaded starting from <View id="root">, then inside the <Items> table there is a <Query> linking to #seg_browser (the character "#" links to a <View id> in the same file, so is linked to <View id="seg_browser">). When <View id="seg_browser"> is loaded first starts reading the table of <Items> that contains an <Item> that is linked using attr="browser" to a table of attributes <Table key="browser" | This is a reduced version of [[XMB-Network | category_network.xml]] with only one icon (tex_browser) that launches the webbrowser (type:x-xmb/xmlwebbrowser). The .xml is loaded starting from <View id="root">, then inside the <Items> table there is a <Query> linking to #seg_browser (the character "#" links to a <View id> in the same file, so is linked to <View id="seg_browser">). When <View id="seg_browser"> is loaded first starts reading the table of <Items> that contains an <Item> that is linked using attr="browser" to a table of attributes <Table key="browser" | ||
{{Boxcode| | {{Boxcode|content=<syntaxhighlight lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
Line 10: | Line 11: | ||
<View id="root"> | <View id="root"> | ||
<Items> | <Items> | ||
<Query class="type:x-xmb/folder-pixmap" key="seg_browser" src="#seg_browser"/> | <Query class="type:x-xmb/folder-pixmap" key="seg_browser" src="#seg_browser" /> | ||
</Items> | </Items> | ||
</View> | </View> | ||
Line 22: | Line 23: | ||
</Attributes> | </Attributes> | ||
<Items> | <Items> | ||
<Item class="type:x-xmb/xmlwebbrowser" key="browser" attr="browser"/> | <Item class="type:x-xmb/xmlwebbrowser" key="browser" attr="browser" /> | ||
</Items> | </Items> | ||
</View> | </View> | ||
Line 28: | Line 29: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
*The contents of the .xml file can be identifyed by the <View id> and <key> this way: | *The whole contents of the .xml file can be identifyed by the <View id> and <key> this way: | ||
**<View id="root"> contains 1 <Items> with the key="seg_browser" | **<View id="root"> contains 1 <Items> with the key="seg_browser" | ||
**<View id="seg_browser"> contains 1 <Items> with the key="browser" | **<View id="seg_browser"> contains 1 <Items> with the key="browser" | ||
=== View id types (Target ID's, and segment ID's) === | |||
Identifyers made of UTF-8 characters and without spaces. There are two types: Target ID's, and segment ID's | |||
Identifyers made of UTF-8 characters and without spaces. There are two types: | |||
*' | *[[Target ID]]'s are reserved names (hardcoded in VSH?): '''"root", "root_for_dex", "root_for_BDU", "tool_root", "shop_root", "shop_guest_root", "shop_staff_root", "root_arcade"''' | ||
**Used to load specific XMB items for different PS3 types (retail, debug, etc...), or to load items in specific boot modes (e.g: in shop PS3's "locked" or "unlocked" modes), can be considered the [[XMB]] enviroments used by the [[XMB#XMB_Configuration_Files|XMB Configuration Files]] | **Used to load specific XMB items for different PS3 types (retail, debug, etc...), or to load items in specific boot modes (e.g: in shop PS3's "locked" or "unlocked" modes), can be considered the [[XMB]] enviroments used by the [[XMB#XMB_Configuration_Files|XMB Configuration Files]] | ||
**Usually inside the .XML files there are several '''<View id>''' of this type starting with '''"root"''' (retail XMB) at the top, only one of them is loaded by [[VSH]] when the PS3 boots | **Usually inside the .XML files there are several '''<View id>''' of this type starting with '''"root"''' (retail XMB) at the top, only one of them is loaded by [[VSH]] when the PS3 boots | ||
*'''Segments''' are all the others with names starting with '''"seg_"''' (e.g: '''seg_'''gamedata, '''seg_'''gameexit, '''seg'''_manual, etc...). There must be no other segments with the same name | *'''Segments''' are all the others with names starting with '''"seg_"''' (e.g: '''seg_'''gamedata, '''seg_'''gameexit, '''seg'''_manual, etc...). There must be no other segments with the same name | ||
**Segments are loaded by some '''query classes''' (inside '''<items>''' tables) by making his '''"src"''' to point to the target segment. When the segment is in the same .XML file it works simply by "jumping" to another line of the same file. When the segment is in another .XML file first is needed to locate the target .XML file, and then the "jump" to the target segment | **Segments are loaded by some '''query classes''' (inside '''<items>''' tables) by making his '''"src"''' to point to the target segment. When the segment is in the same .XML file it works simply by "jumping" to another line of the same file. When the segment is in another .XML file first is needed to locate the target .XML file, and then the "jump" to the target segment | ||
***Links to a segment in the same .XML file uses the character "'''#'''", and the name of the target segment (e.g: '''src="#seg_poweroff"''') | ***Links to a segment in the same .XML file uses the character "'''#'''", and the name of the target segment (e.g: '''src="#seg_poweroff"''') | ||
***Links to a segment in another .XML file uses the '''xmb://localhost/''' function with the path of the target file, the character "'''#'''", and the name of the target segment (e.g: '''src="xmb://localhost/dev_flash/vsh/resource/explore/xmb/category_user.xml#seg_poweroff"'''), or alternativelly the short path form replacing '''"dev_flash/vsh/resource/explore/"''' by '''"%flash/"''' (e.g: '''src="xmb://localhost/%flash/xmb/category_user.xml#seg_poweroff"''') | ***Links to a segment in another .XML file uses the '''xmb://localhost/''' function with the path of the target file, the character "'''#'''", and the name of the target segment (e.g: '''src="xmb://localhost/dev_flash/vsh/resource/explore/xmb/category_user.xml#seg_poweroff"'''), or alternativelly the short path form replacing '''"dev_flash/vsh/resource/explore/"''' by '''"%flash/"''' (e.g: '''src="xmb://localhost/%flash/xmb/category_user.xml#seg_poweroff"''') | ||
=== Items (Query classes, and Item classes) === | ==== Items tables contents (Query classes, and Item classes) ==== | ||
The contents of this sub group dictates what exists on the XMB when this entry is used. There can be more than one. | The contents of this sub group dictates what exists on the XMB when this entry is used. There can be more than one. | ||
Line 72: | Line 54: | ||
! Query classes x-xmb !! <key> !! <attr> !! <src> !! Remarks | ! Query classes x-xmb !! <key> !! <attr> !! <src> !! Remarks | ||
|- | |- | ||
| <Query class="type:x-xmb/'''folder-pixmap'''" || {{Yes}} || {{Opt}} || {{Yes}} || Has many uses see [[XMB modding|here]] | |||
| <Query class="type:x-xmb/'''folder-pixmap'''" || {{Yes}} || {{ | |||
|- | |- | ||
| <Query class="type:x-xmb/'''xmlmcutility'''" || {{Yes}} || {{Yes}} || {{Yes}} || PS1 and PS2 virtual memory card utility | | <Query class="type:x-xmb/'''xmlmcutility'''" || {{Yes}} || {{Yes}} || {{Yes}} || PS1 and PS2 virtual memory card utility | ||
|- | |- | ||
| <Query class="type:x-xmb/''' | | <Query class="type:x-xmb/'''xmlpackagefolder'''" || {{Yes}} || {{No}} || {{Yes}} || Used for installing package files | ||
|- | |- | ||
| <Query class="type:x-xmb/'''xmlpsp2appdata'''" || {{Yes}} || {{Yes}} || {{No}} || PSVita application utility | | <Query class="type:x-xmb/'''xmlpsp2appdata'''" || {{Yes}} || {{Yes}} || {{No}} || PSVita application utility | ||
Line 94: | Line 72: | ||
! Query classes x-xcb !! <key> !! <attr> !! <src> !! Remarks | ! Query classes x-xcb !! <key> !! <attr> !! <src> !! Remarks | ||
|- | |- | ||
| <Query class="type:x-xcb/'''game-debug'''" || {{Yes}} || {{Yes}} || {{No}} || / | | <Query class="type:x-xcb/'''game-debug'''" || {{Yes}} || {{Yes}} || {{No}} || App Home / PS3 Game | ||
|- | |- | ||
| <Query class="type:x-xcb/'''savedata-ps3'''" || {{Yes}} || {{Yes}} || {{No}} || PS3 new savedata | | <Query class="type:x-xcb/'''savedata-ps3'''" || {{Yes}} || {{Yes}} || {{No}} || PS3 new savedata | ||
Line 102: | Line 80: | ||
! Item classes x-xmb !! <key> !! <attr> !! <src> !! Remarks | ! Item classes x-xmb !! <key> !! <attr> !! <src> !! Remarks | ||
|- | |- | ||
| <Item class="type:x-xmb/'''module-action'''" || {{Yes}} || {{Yes}} || {{No}} || Uses a particular module to support the XMB item. See [[ | | <Item class="type:x-xmb/'''module-action'''" || {{Yes}} || {{Yes}} || {{No}} || Uses a particular module to support the XMB item. See [[VSH_module-action|VSH module-action]] page | ||
|- | |- | ||
| <Item class="type:x-xmb/'''vmc-new'''" || {{Yes}} || {{Yes}} || {{No}} || | | <Item class="type:x-xmb/'''vmc-new'''" || {{Yes}} || {{Yes}} || {{No}} || | ||
Line 109: | Line 87: | ||
|- | |- | ||
| <Item class="type:x-xmb/'''xmleditingvideo'''" || {{Yes}} || {{Yes}} || {{No}} || | | <Item class="type:x-xmb/'''xmleditingvideo'''" || {{Yes}} || {{Yes}} || {{No}} || | ||
|- | |- | ||
| <Item class="type:x-xmb/'''xmlgameexit'''" || {{Yes}} || {{No}} || {{No}} || | | <Item class="type:x-xmb/'''xmlgameexit'''" || {{Yes}} || {{No}} || {{No}} || | ||
Line 116: | Line 92: | ||
| <Item class="type:x-xmb/'''xmlhakoniwa'''" || {{Yes}} || {{Yes}} || {{No}} || | | <Item class="type:x-xmb/'''xmlhakoniwa'''" || {{Yes}} || {{Yes}} || {{No}} || | ||
|- | |- | ||
| <Item class="type:x-xmb/'''xmliboard'''" || {{Yes}} || {{Yes}} || {{No}} || [[Widgets]] | | <Item class="type:x-xmb/'''xmliboard'''" || {{Yes}} || {{Yes}} || {{No}} || Used in [[Widgets]] | ||
|- | |- | ||
| <Item class="type:x-xmb/'''xmlmessagelist'''" || {{Yes}} || {{Yes}} || {{No}} || | | <Item class="type:x-xmb/'''xmlmessagelist'''" || {{Yes}} || {{Yes}} || {{No}} || | ||
Line 149: | Line 125: | ||
|- | |- | ||
|} | |} | ||
*'''<key>''' | *'''<key>''' | ||
Line 320: | Line 140: | ||
**Use a XMB database function. Example: '''src="xcb://localhost/query?table=MMS_MEDIA_TYPE_SYSTEM&genre=Music&sort=+StorageMedia:Common.titleForSort&cond=Ae+StorageMedia:StorageMedia.type %xCB_MEDIA_TYPE_DLNA"''' | **Use a XMB database function. Example: '''src="xcb://localhost/query?table=MMS_MEDIA_TYPE_SYSTEM&genre=Music&sort=+StorageMedia:Common.titleForSort&cond=Ae+StorageMedia:StorageMedia.type %xCB_MEDIA_TYPE_DLNA"''' | ||
=== Attributes ( | ==== Attributes tables contents (Pair keys) ==== | ||
This provides additional information about '''<Items>''' sub-entries by linking them to a table with attributes associated (is optionall, not all <Items> requires attributes), this tables uses a '''<Table key>''' matching the '''<attr>''' sub-entry asociated and contains one or more attributes separated in lines starting with '''<Pair key>'''. | This provides additional information about '''<Items>''' sub-entries by linking them to a table with attributes associated (is optionall, not all <Items> requires attributes), this tables uses a '''<Table key>''' matching the '''<attr>''' sub-entry asociated and contains one or more attributes separated in lines starting with '''<Pair key>'''. | ||
{| class="wikitable" style="font-size:x-small;" | {| class="wikitable" style="font-size:x-small;" | ||
|+ | |+Usable attributes by classes | ||
! | ! rowspan="3" | <Pair key> !! colspan="11" | Query class !! colspan="21" | Item class | ||
|- | |- | ||
| | ! colspan="8" | x-xmb !! colspan="3" | x-xcb !! colspan="20" | x-xmb !! x-chat | ||
| " | |||
|- | |- | ||
! <abbr title="folder-pixmap">folder<BR />pixmap</abbr> !! <abbr title="xmlmcutility">mc<BR />utility</abbr> !! <abbr title="xmlpackagefolder">pkg<BR />folder</abbr> !! <abbr title="xmlpsp2appdata">vita<BR />apps</abbr> !! <abbr title="xmlsavedata-plus">save<BR />plus</abbr> !! <abbr title="xmlsavedata-ps2">save<BR />ps2</abbr> !! <abbr title="xmlsavedata-ps3">save<BR />ps3</abbr> !! <abbr title="xmlsavedata-psp">save<BR />psp</abbr> !! <abbr title="game-debug">game<BR />debug</abbr> !! <abbr title="savedata-ps3">save<BR />ps3</abbr> !! <abbr title="savedata-psp">save<BR />psp</abbr> !! <abbr title="module-action">module<BR />action</abbr> !! <abbr title="vmc-new">vmc<BR />new</abbr> !! <abbr title="xmlbddatamgmt">bddata<BR />mgmt</abbr> !! <abbr title="xmleditingvideo">edit<BR />video</abbr> !! <abbr title="xmlgameexit">game<BR />exit</abbr> !! <abbr title="xmlhakoniwa">hako<BR />niwa</abbr> !! <abbr title="xmliboard">info<BR />board</abbr> !! <abbr title="xmlmessagelist">msg<BR />list</abbr> !! <abbr title="xmlnowplaying">now<BR />playing</abbr> !! <abbr title="xmlnpsignup">np<BR />signup</abbr> !! <abbr title="xmlplaylist">play<BR />list</abbr> !! <abbr title="xmlplus">plus</abbr> !! <abbr title="xmlpoweroff">power<BR />off</abbr> !! <abbr title="xmlpremo">psp<BR />remote</abbr> !! <abbr title="xmlpsp2appdata-cont">vita<BR />apps</abbr> !! <abbr title="xmlscreenshot">screen<BR />shot</abbr> !! <abbr title="xmlsysconf">sys<BR />conf</abbr> !! <abbr title="xmltrophy">trophy</abbr> !! <abbr title="xmlwebbrowser">browser</abbr> !! <abbr title="xmlwelcome">welcome</abbr> !! <abbr title="xmlchatroom-manager">chat<BR />room</abbr> | |||
|- | |- | ||
| | | action || {{Yes}} || {{Yes}} || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || | |||
| ? | |||
|- | |- | ||
| | | bar_action || {{No}} || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | cf_connection || ? || ? || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | ch_pos || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | child || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_id || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_info_pict || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || {{Yes}} || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_info_pict_sd || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_info_tex || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_info_title || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_info_title_sd || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_name || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | content_type || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | custom_priority || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | data_connection || ? || ? || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| | |||
| ? | |||
|- | |- | ||
| | | fo_lbl2_alpha || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} || ? || ? || | |||
| ? || ? || ? | |||
| | |||
| ? | |||
| | |||
|- | |- | ||
| | | focus || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | focus_detect || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | focus_priority || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | fs_path || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | icon || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| icon_notation | | icon_notation || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || | |||
| | |||
| | |||
|- | |- | ||
| icon_rsc | | icon_rsc || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || | |||
| | |||
| | |||
|- | |- | ||
| id | | id || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? | |||
| ? | |||
| ? | |||
|- | |- | ||
| info | | info || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || {{Yes}} || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| info_rsc | | info_rsc || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| ingame | | ingame || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| instruction_rsc | | instruction_rsc || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| item_type | | item_type || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| lbl_half | | lbl_half || {{No}} || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{No}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | mass_connection || ? || ? || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | mode || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | module_action || {{No}} || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | module_name || {{No}} || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{No}} | |||
| ? || ? || ? | |||
| {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | ms_connection || ? || ? || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| | |||
| ? | |||
|- | |- | ||
| | | path || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | pkg_src || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | prod_pic_path || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? | | |||
| ? || ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | sd_connection || ? || ? || ? || ? || ? || ? || {{Yes}} || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | start_factory_play || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || | |||
| ? | |||
| ? | |||
|- | |- | ||
| | | str_noitem || {{Yes}} || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || {{No}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || | |||
| ? | |||
| | |||
|- | |- | ||
| | | title || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? | |||
| | |||
|- | |- | ||
| | | title_fo || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? || ? || ? || ? || ? || ? || ? || ? || ? | |||
| ? || ? || ? | |||
| | |||
| ? | |||
| | |||
|- | |- | ||
| | | title_rsc || {{Yes}} || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| {{Yes}} | |||
| ? || ? || ? | |||
| {{ | |||
| ? | |||
| | |||
|- | |- | ||
| | | type || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| | |||
| ? || ? || ? | |||
| | |||
| ? | |||
| | |||
|- | |- | ||
| | | vmc || ? || {{Yes}} || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? || ? | ||
| ? | |||
| | |||
| {{Yes}} || ? || ? | |||
| ? || ? || ? | |||
| ? || ? || ? || ? || ? || ? || ? || ? | | |||
| ? || ? | | |||
| ? || ? | |||
|- | |- | ||
|} | |} | ||
'''action'''. Example: "exec_game", "exec_vmcsavedata", "exec_ps3savedata", "exec_pspsavedata" | |||
'''bar_action''' Example: "none" | |||
'''cf_connection'''. Example: xcb://localhost/query?... (too long for wiki) | |||
'''ch_pos'''. Example: "1" | |||
'''child''' Use: tells the PS3 what action should be taken when the XMB item is selected. Example: "segment" | |||
'''content_id'''. Example: IP9100-NPIA00002_00-0000111122223333 | |||
'''content_info_pict'''. Example: /dev_flash/vsh/resource/explore/icon/pstex01.png | |||
'''content_info_pict_sd'''. Example: /dev_flash/vsh/resource/explore/icon/pstex-sd.png | |||
'''content_info_text'''. Example: msg_ps3_portal | |||
'''content_info_title'''. Example: msg_psstore_explanation_hd | |||
''' | '''content_info_title_sd'''. Example: msg_psstore_explanation_sd | ||
'''content_name'''. Example: "msg_title_lwp", "msg_information_board" | |||
'''content_type'''. Example: game | |||
'''custom_priority'''. Example: "game=-80", "video=-80" | |||
'''data_connection'''. Example: xcb://localhost/query?... (too long for wiki) | |||
'''fo_lbl2_alpha'''. Example: "0" | |||
'''focus'''. Example: last | |||
''' | '''focus_detect''' Use: tells the PS3 to focus on the item if it is activated/utilised (like inserting a PS3 game disc). Of course the vsh.self has the final say on whether it is used (turning off auto boot). Example: "enable" | ||
''' | '''focus_priority''' Use: tells the PS3 the order in which the XMB items are loaded. This is use more by XMB items on the root of the XMB. Example: any integer | ||
''' | '''fs_path'''. Example: "/dev_hdd0/widget/npdrm/informationboard" | ||
'''icon''' | '''icon''' Use: displays a .png image from an absolute path as XMB icon. Cannot be used at the same time as 'icon_rsc'. Example: "/dev_hdd0/myicon.png" | ||
'''icon_notation''' | '''icon_notation''' Use: tells the XMB how to treat the icon (transparency etc.) by refering to the relevant .rco. Can in some cases override 'icon' or 'icon_rsc'. Example: "WNT_XmbItemSavePS3" <!--// doesnt seems correct, the transparency effect and the override of other "pair keys" values looks a consequence of the load of some specific settings associated with every "icon notation" //--> | ||
{| class="wikitable" | {| class="wikitable" | ||
| | |- | ||
! icon_notation !! Use !! Notes | ! icon_notation !! Use !! Notes | ||
|- | |- | ||
| WNT_XmbItemAlbum || || | | WNT_XmbItemAlbum || || | ||
|- | |- | ||
| WNT_XmbItemBrowser || || | | WNT_XmbItemBrowser || || | ||
|- | |- | ||
| WNT_XmbItemChat || || | | WNT_XmbItemChat || || | ||
Line 790: | Line 325: | ||
| WNT_XmbItemPRemo || || | | WNT_XmbItemPRemo || || | ||
|- | |- | ||
| WNT_XmbItemPlaylist || || | | WNT_XmbItemPlaylist || || | ||
|- | |- | ||
| WNT_XmbItemPlaylistAdd || || | | WNT_XmbItemPlaylistAdd || || | ||
Line 808: | Line 343: | ||
| WNT_XmbItemVideoNew || || | | WNT_XmbItemVideoNew || || | ||
|- | |- | ||
| WNT_XmbListMusic || || | | WNT_XmbListMusic || || | ||
|- | |- | ||
| WNT_XmbListPhoto || || | | WNT_XmbListPhoto || || | ||
|- | |- | ||
| WNT_XmbListVideo || || | | WNT_XmbListVideo || || | ||
|- | |- | ||
|} | |} | ||
'''icon_rsc''' | '''icon_rsc''' Use: displays a .rco referable image as XMB icon. Cannot be used at the same time as 'icon'. Example: "tex_album_icon" | ||
''' | '''id'''. Example: | ||
''' | '''info''' Use: displays XMB title information from plain text input. This is shown below the 'title' or 'title_rsc' entry ins a smaller font. Cannot be used at the same time as 'info_rsc'. Example: "This is a cool plain text info string", "net_package_install_with_eula" | ||
''' | '''info_rsc''' Use: displays XMB title information from relevant .rco. This is shown below the 'title' or 'title_rsc' entry ins a smaller font. Cannot be used at the same time as 'info'. Example: "item_tex_cam_icon" | ||
'''mode'''. | '''ingame''' Use: tells the PS3 if the item can be accessed ingame. Example: "enable"/"disable" | ||
'''instruction_rsc'''. Example: msg_lwp_explanation | |||
'''item_type'''. Example: "systop" | |||
'''lbl_half''' Example: "1" | |||
| | |||
'''mass_connection'''. Example: xcb://localhost/query?... (too long for wiki) | |||
'''mode'''. Example: playlistmgmt | |||
'''module_action''' Use: what the module is commanded to use. The example commands are in respect the above modules. Example: "http://m.facebook.com"/"NotifyErrorNoExecute" | |||
'''module_name''' Use: the name of the module to be used from this [[VSH Module-Action|list]]. Example: "webbrowser_plugin"/"explore_plugin" | |||
'''ms_connection'''. Example: xcb://localhost/query?... (too long for wiki) | |||
'''path'''. Example: | |||
'''pkg_src'''. Example: http://dL-REGION01.ps3.download.playstation.net/download/ps3/L-REGION/lwp/lwp.pkg | |||
'''prod_pict_path'''. Example: "/dev_flash/vsh/resource/explore/icon/fah-xmb.png", "/dev_hdd0/widget/npdrm/informationboard/Icon.png" | |||
'''sd_connection'''. Example: xcb://localhost/query?... (too long for wiki) | |||
'''start_factor_play'''. Example: disable | |||
'''str_noitem''' Use: displays information from relevant .rco when no data/XMB items are found from then search function of the current XMB item. Example: "msg_error_no_gamedata" | |||
'''title''' Use: displays XMB main title from plain text input. Cannot be used at the same time as 'title_rsc'. Example: "Debug Settings" | |||
'''title_fo'''. Example: 1 | |||
'''title_rsc''' Use: displays XMB main title text referred from relevant .rco. Cannot be used at the same time as 'title'. Example: "msg_tool_app_home_ps3_game" | |||
'''type'''. Example: "photo", "music" | |||
'''vmc'''. Example: promote | |||
== Examples == | |||
=== An XMB item tree === | |||
For this we will make a XMB item which will act as a folder opening up into 3 other XMB items. | |||
1/ First create the root XMB item which acts as a folder | |||
{{Boxcode|content=<syntaxhighlight lang="xml"> | |||
<View id="XMB_Folder_1"> | |||
<Attributes> | |||
<Table key="xmb_folder"> | |||
<Pair key="icon_rsc"><String>tex_album_icon</String></Pair> | |||
<Pair key="title"><String>XMB Menu Item</String></Pair> | |||
<Pair key="info"><String>This will subdivide into 3 items :)</String></Pair> | |||
<Pair key="child"><String>segment</String></Pair> | |||
</Table> | |||
</Attributes> | |||
<Items> | |||
<Query class="type:x-xmb/folder-pixmap" key="xmb_folder" attr="xmb_folder" src="#XMB_Folder_1_container" /> | |||
</Items> | |||
</View> | |||
</syntaxhighlight>}} | |||
Important Notes: | |||
* I've used "''<Query class="type:x-xmb/folder-pixmap"''" for <Items> sub-entry type as it is good for displaying menus. | |||
* The 'attr' in the <Items> sub-entry (xmb_folder) is the same as the table key in Attibutes, so those attributes are assigned to the xmb_folder <Items> sub-entry. | |||
* the 'src' is pointing to 'XMB_Folder_1_container' - the another XMB .xml entry in the current .xml | |||
* the icon is from a .rco file and is a basic folder icon, like what the 'Game Data' XMB item uses | |||
* 'title' and 'info' are in plain text | |||
* 'child' is set as 'segment' so the XMB knows this item will subdivide into other XMB items | |||
''' | In order to create a working XMB sub menu the root xmb item (in this "XMB_Folder_1") must have its 'src' linking to a "container" (its the best way to think about it) and not directly linking to XMB items in the sub menu.( If you do not do this when you select your root XMB item to display a sub menu, the 'output' or 'action' of the XMB items of the sub menu will be shown rather than the actual XMB items): | ||
{{Boxcode|content=<syntaxhighlight lang="xml"> | |||
<View id="XMB_Folder_1_container"> | |||
<Items> | |||
<Query class="type:x-xmb/folder-pixmap" key="xmb_folder_container" src="#XMB_Folder_1_contents" /> | |||
</Items> | |||
</View> | |||
</syntaxhighlight>}} | |||
Important Notes: | |||
* This has no attributes as it simply acts as a contents container/linker | |||
Now to create the XMB .xml entry which holds the sub menu items: | |||
{{Boxcode|content=<syntaxhighlight lang="xml"> | |||
<View id="XMB_Folder_1_contents"> | |||
<Attributes> | |||
<Table key="xmb_subitem_1"> | |||
<Pair key="icon_rsc"><String>tex_album_icon</String></Pair> | |||
<Pair key="title"><String>XMB Sub Menu Item</String></Pair> | |||
<Pair key="info"><String>Dummy Sub item 1</String></Pair> | |||
<Pair key="str_noitem"><String>msg_error_no_gamedata</String></Pair> | |||
</Table> | |||
<Table key="xmb_subitem_2"> | |||
<Pair key="icon_rsc"><String>tex_album_icon</String></Pair> | |||
<Pair key="title"><String>XMB Sub Menu Item</String></Pair> | |||
<Pair key="info"><String>Dummy Sub item 2</String></Pair> | |||
<Pair key="str_noitem"><String>msg_error_no_gamedata</String></Pair> | |||
</Table> | |||
<Table key="xmb_subitem_3"> | |||
<Pair key="icon_rsc"><String>tex_album_icon</String></Pair> | |||
<Pair key="title"><String>XMB Sub Menu Item</String></Pair> | |||
<Pair key="info"><String>Dummy Sub item 3</String></Pair> | |||
<Pair key="str_noitem"><String>msg_error_no_gamedata</String></Pair> | |||
</Table> | |||
</Attributes> | |||
<Items> | |||
<Query class="type:x-xmb/folder-pixmap" key="xmb_subitem_1" attr="xmb_subitem_1" /> | |||
<Query class="type:x-xmb/folder-pixmap" key="xmb_subitem_2" attr="xmb_subitem_2" /> | |||
<Query class="type:x-xmb/folder-pixmap" key="xmb_subitem_3" attr="xmb_subitem_3" /> | |||
</Items> | |||
</View> | |||
</syntaxhighlight>}} | |||
'' | Important Notes: | ||
* These are dummy items, they do not 'go anywhere' or perform any function. They will just print the str_noitem message when clicked because they have no function | |||
* notice how the <attr> from the <Items> sub entries matches the <Table keys> from the <Attributes> sub entries | |||
* The <Attributes> and the <Items> sub entries do not have to be in the same order to work | |||
== | === A Web-Site link === | ||
This type of entry could be placed on the root of the XMB category, or in an XMB Item Tree. This is also an application of the '[[VSH:Module-Action|module-action]]' function. Example: | |||
{{Boxcode|content=<syntaxhighlight lang="xml"> | |||
<View id="seg_xmb_weblink"> | |||
<Attributes> | |||
<Table key="link_1"> | |||
<Pair key="icon_rsc"><String>dev_wiki_icon</String></Pair> | |||
<Pair key="title"><String>PS3 Dev Wiki</String></Pair> | |||
<Pair key="info"><String>Some info here</String></Pair> | |||
<Pair key="module_name"><String>webbrowser_plugin</String></Pair> | |||
<Pair key="module_action"><String>http://www.ps3devwiki.com/</String></Pair> | |||
</Table> | |||
</Attributes> | |||
<Items> | |||
<Item class="type:x-xmb/module-action" key="link_1" attr="link_1"/> | |||
</Items> | |||
</View> | |||
</syntaxhighlight>}} | |||
*Important Notes: | |||
**The 'Attributes' for this Web-Link follows the Attribute rules for a 'module-action' entry. | |||
**The 'webbrowser_plugin' module has been used to handle the request in the 'module_action' pair key, which is a web address | |||
**The 'attr' in the Items sub-entry is the same as the table key in the 'Attributes' sub-entry. | |||
**Remember that the icon_rsc string will search the rco file(used by the module running the category which this web link is on) for the icon 'dev_wiki_icon'. Whereas the title and info strings will just print the contents of the string. |