2011-10-02, 04:58
Here is a little MOD to have 2 real Advanced launcher entries into Add-ons sub-menu and dedicate them for Games and Comics.
First thing to do is to duplicate the Advanced Launcher add-on. First add-on (plugin.program.advanced.launcher) will be dedicated to games and the second one (plugin.program.advanced.launcher2) will be dedicated to comics. Here is a Youtube tutorial explaining how duplicate Advanced Launcher add-on : http://www.youtube.com/watch?v=_gMFJcxdcEg. Be sure that Advanced Launcher add-ons are respectively named plugin.program.advanced.launcher (will be used for Games) and plugin.program.advanced.launcher2 (will be used for Comics.)
By default the AEON MQ3 skin have a dedicated Add-on sub-menu for games. Unfortunately this one is not directly linked to Advanced Launcher but to My Program folder of XBMC. Also AEON MQ3 skin do not have any entry for Comics. To correct this, we will first edit the xbmc/addons/skin.aeonmq.3/720p/Home.xml file. Search the SubMenu Add-ons section 12 of the xml file, then modify the item 1 and add the [b]item 7[/b] as bellow.
The new entries have now been created into AEON MQ3 Add-on sub-menu. But if you want to modify them (change name or select the background image) we also need to modify the skin customization file of AEON MQ3. To do this, we need to edit the xbmc/addons/skin.aeonmq.3/720p/CustomSkin.xml file. Here again, search the SubMenu Add-ons section 12 of the xml file, then modify the item 1 and add the [b]item 7[/b] as bellow.
Then you just have to start XBMC with AEON MQ3 skin, go into settings / skin / Shortcut/Backdrops menu, and rename the new created add-on sub-menu entry to Comics and then select a backdrops corresponding to the Games and Comics entries.
First thing to do is to duplicate the Advanced Launcher add-on. First add-on (plugin.program.advanced.launcher) will be dedicated to games and the second one (plugin.program.advanced.launcher2) will be dedicated to comics. Here is a Youtube tutorial explaining how duplicate Advanced Launcher add-on : http://www.youtube.com/watch?v=_gMFJcxdcEg. Be sure that Advanced Launcher add-ons are respectively named plugin.program.advanced.launcher (will be used for Games) and plugin.program.advanced.launcher2 (will be used for Comics.)
By default the AEON MQ3 skin have a dedicated Add-on sub-menu for games. Unfortunately this one is not directly linked to Advanced Launcher but to My Program folder of XBMC. Also AEON MQ3 skin do not have any entry for Comics. To correct this, we will first edit the xbmc/addons/skin.aeonmq.3/720p/Home.xml file. Search the SubMenu Add-ons section 12 of the xml file, then modify the item 1 and add the [b]item 7[/b] as bellow.
Code:
<!-- SubMenu Add-ons - 12 -->
[b] <item id="1"><!-- Games -->
<label fallback="31001">$INFO[Skin.String(CustomSubAddonsGames_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsGames_Background)]</icon>
<onclick>ActivateWindow(10001,"plugin://plugin.program.advanced.launcher/")</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsGames),true)</visible>
</item>
[/b] <item id="2"><!-- Games (launcher) -->
<label fallback="31001">$INFO[Skin.String(CustomSubAddonsGames_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsGames_Background)]</icon>
<onclick>ActivateWindow(10001, plugin://plugin.program.launcher/addon.py,return)</onclick>
<visible>Container(300).HasFocus(12) + Skin.HasSetting(launcherforgames) + !SubString(Skin.String(DisableSubAddonsGames),true)</visible>
</item>
<item id="3"><!-- Programs -->
<label fallback="31010">$INFO[Skin.String(CustomSubAddonsPrograms_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsPrograms_Background)]</icon>
<onclick>ActivateWindow(Programs,Addons,return)</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsPrograms),true)</visible>
</item>
<item id="4"><!-- Video -->
<label fallback="31005">$INFO[Skin.String(CustomSubAddonsVideos_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsVideos_Background)]</icon>
<onclick>ActivateWindow(Video,Addons,return)</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsVideos),true)</visible>
</item>
<item id="5"><!-- Music -->
<label fallback="31250">$INFO[Skin.String(CustomSubAddonsMusic_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsMusic_Background)]</icon>
<onclick>ActivateWindow(Music,Addons,return)</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsMusic),true)</visible>
</item>
<item id="6"><!-- Pictures -->
<label fallback="31002">$INFO[Skin.String(CustomSubAddonsPictures_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsPictures_Background)]</icon>
<onclick>ActivateWindow(Pictures,Addons,return)</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsPictures),true)</visible>
</item>
[b] <item id="7"><!-- Comics -->
<label fallback="31350">$INFO[Skin.String(CustomSubAddonsComics_Label)]</label>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsComics_Background)]</icon>
<onclick>ActivateWindow(10001,"plugin://plugin.program.advanced.launcher2/")</onclick>
<visible>Container(300).HasFocus(12) + !SubString(Skin.String(DisableSubAddonsComics),true)</visible>
</item>[/b]
Code:
<!-- SubMenu Add-ons - 12 -->
[b]<item id="1"><!-- Games -->
<label fallback="31001">$INFO[Skin.String(CustomSubAddonsGames_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsGames),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsGames_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsGames_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsGames)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsGames_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsGames),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>[/b]
<item id="2"><!-- Programs -->
<label fallback="31010">$INFO[Skin.String(CustomSubAddonsPrograms_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsPrograms),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsPrograms_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsPrograms_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsPrograms)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsPrograms_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsPrograms),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>
<item id="4"><!-- Video -->
<label fallback="31005">$INFO[Skin.String(CustomSubAddonsVideos_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsVideos),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsVideos_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsVideos_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsVideos)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsVideos_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsVideos),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>
<item id="5"><!-- Music -->
<label fallback="31250">$INFO[Skin.String(CustomSubAddonsMusic_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsMusic),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsMusic_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsMusic_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsMusic)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsMusic_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsMusic),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>
<item id="6"><!-- Pictures -->
<label fallback="31002">$INFO[Skin.String(CustomSubAddonsPictures_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsPictures),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsPictures_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsPictures_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsPictures)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsPictures_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsPictures),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>
[b]<item id="7"><!-- Comics -->
<label fallback="31350">$INFO[Skin.String(CustomSubAddonsComics_Label)]</label>
<property name="EnableDisable">$INFO[Skin.String(DisableSubAddonsComics),true)]</property>
<icon fallback="-">$INFO[Skin.String(CustomSubAddonsComics_Background)]</icon>
<onclick>Skin.SetString(customBackground,CustomSubAddonsComics_Background)</onclick>
<onclick>Skin.SetString(customEnableDisable,DisableSubAddonsComics)</onclick>
<onclick>Skin.SetString(customLabel,CustomSubAddonsComics_Label)</onclick>
<onclick>SetFocus(8888)</onclick>
<visible>Container(400).HasFocus(12) + [!SubString(Skin.String(DisableSubAddonsComics),true) | !Skin.HasSetting(nodisablebuttons)]</visible>
</item>[/b]