Editing XMBML module-action

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:
= Description =
==module-action example==
'''module-action''' is an [[XMBML Coding|XMBML]] command that works like a module (.sprx file) intercom, allowing XMBML files to use/send commands to a selected module, so it can perform functions outside the limits of the module managing that XMB Category.
This is an XMBML command, typically this is used with the [[XMBML Structure]] below:
{{Boxcode|content=<syntaxhighlight lang="xml">
<View id="Entry_1">
<Attributes>
<Table key="XMB_MODULE">
<Pair key="icon"><String>a valid entry for this pair key</String></Pair>
<Pair key="title"><String>a valid entry for this pair key</String></Pair>
<Pair key="info"><String>a valid entry for this pair key</String></Pair>
<Pair key="module_name"><String>a valid entry for this pair key</String></Pair>
<Pair key="module_action"><String>a valid entry for this pair key</String></Pair>
</Table>
</Attributes>
<Items>
<Item class="type:x-xmb/module-action"  key="XMB_MODULE" attr="XMB_MODULE"/>
</Items>
</View>
</syntaxhighlight>}}


The list of usable modules is indexed in '''xmb_plugin.sprx''' (modules availables in main XMB) and '''xmb_ingame.sprx''' (modules availables in in-game XMB) and contains the module reference, the path to the module (.sprx file), and the path to the associated resource (.rco file).
This acts like a module (SPRX) intercom, allowing XML files to use/send commands to a selected module, so it can perform functions outside the limits of the module managing that XMB Category.
 
The list of 'usable' modules is indexed in '''xmb_plugin.sprx''' (modules availables in main XMB) and '''xmb_ingame.sprx''' (modules availables in in-game XMB) and contains the module reference, the path to the module (.sprx file), and the path to the associated resource (.rco file).


All the .sprx modules are stored in path: '''/dev_flash/vsh/module/''' and the .rco resource files in path: '''/dev_flash/vsh/resource/'''
All the .sprx modules are stored in path: '''/dev_flash/vsh/module/''' and the .rco resource files in path: '''/dev_flash/vsh/resource/'''
Line 8: Line 26:
{{XMB_Indexed_Modules}}
{{XMB_Indexed_Modules}}


= Common uses =
===Common uses===
*explore_plugin.sprx
Can be used to stub XMB items in {{Shop}} Firmware. All firmwares use this method to stub XMB items which have been stubbed. <small>With the exception of some XMB items which make "sel://" calls (such as "What's New") which have been left in-tact and Shop FW modules have only recently (4.30+?) blocked these calls returning the "This operation cannot be used during demonstration mode" message.</small>


== A Web-Site link ==
*webbrowser_plugin.sprx
This type of entry cab be placed on the root of the XMB category or in an XMB Item Tree. It makes a call to [[webbrowser_plugin|webbrowser_plugin.sprx]]
Can be used to create [[XMB XML Coding#A Web-Site link|website links]]
 
{{Boxcode|code=<syntaxhighlight lang="xml">
<View id="seg_xmb_weblink">
<Attributes>
<Table key="link_1">
<Pair key="icon"><String>/dev_hdd0/devwiki_icon.png</String></Pair>
<Pair key="title"><String>PS3 Dev Wiki</String></Pair>
<Pair key="module_name"><String>webbrowser_plugin</String></Pair>
<Pair key="module_action"><String>http://www.psdevwiki.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 for the icon 'dev_wiki_icon' inside the rco file associated with the XMB category this XMBML code is placed, or alternativelly inside explore_plugin_full.rco
**The title will just print the contents of the string.
 
== Stubs ==
Can be used to stub XMB items in {{SHOP}} Firmware. All firmwares use this method to stub XMB items which have been stubbed. <small>With the exception of some XMB items which make "sel://" calls (such as "What's New") which have been left in-tact and Shop FW modules have only recently (4.30+?) blocked these calls returning the "This operation cannot be used during demonstration mode" message.</small>
 
*explore_plugin.sprx


{{File Formats}}<noinclude>[[Category:Main]]</noinclude>
{{System Firmware}}<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)