Kodi Community Forum

Full Version: Addon Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm not the greatest at coding which is why Rocky5 did most if not all of the coding for Xperience, so please bare that in mind after you read this request.

Can someone please just make the BASIC .xml's required to add the whole addon system to a skin please? The three skins I have been able to look at that have the .xml's required have so many includes I get lost. And the wiki isn't much help really to me either. Sad I've spent the better part of my morning trying to hash this out and victory is not mine to have apparently so I'm reaching out.

Even enough help just to get me to this stage:

Image

in the process would be awesome!

Thanks anyone willing to help!
addonbrowser.xml is that screen. Open up the addon.xml and turn debugging to "true" from "false", that'll show you what window and/or what button is focused. Very helpful!

You'll also need - DialogAddonInfo.xml, that what you get when you press enter or "i" on an addon.

Really addonbrowser.xml is the same "parent" window like MyVideoNav.xml is for Library and MyMusicSongs.xml is for music files mode, etc...

This is a helpful link of what are the default buttons for a particular window
Thanks for the great link to the wiki, I tried the editing of addon.xml in every skin I have actually and I only see freemem info?

EDIT: rebooted xbmc and now I see more debug info Smile
Heres a quick head start:

1. Copy addonbrowser.xml from Confluence to XPERIENCE
2. Change line 220 in Settings.xml to <onclick>ActivateWindow(addonbrowser)</onclick>
3. Open up and Copy (ctrl+a) then (ctrl+c) your whole MyVideo.xml and then delete all the content in addonbrowser.xml and paste the code you just got from MyVideo.xml
4. Change the id, at top, of addonbrowser to fro 24 to 20
5. Open up Viewtype_File Mode.xml and change line 35 to:

Quote:<visible>Window.IsVisible(MusicFiles) | Window.IsVisible(VideoFiles) | Window.IsVisible(Programs) | Window.IsVisible(Scripts) | Window.IsVisible(AddonBrowser.xml)</visible>
OK I'll give that a try Smile

Your great man! That worked like a charm! Now for some fine tuning Smile
Currently dialogselect for skin selection looks like this:
Image

I'm trying to add an icon to the right similar to this:
Image

I cannot seem to get it at all. if anyone could help I'd appreciate it. I do already have it so the focus image and the second label are shorter before anyone asks lol, either way here is the code:

Quote:<window id="2000">
<defaultcontrol always="true">3</defaultcontrol>
<include>OpenCloseAnimation</include>
<controls>

<control type="group">
<include>AddonFade</include>


<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>dialogs/other/yes-no-okbg.png</texture>
</control>
<control type="list" id="3">
<posx>400</posx>
<posy>247</posy>
<width>600</width>
<height>170</height>
<focusposition>2</focusposition>
<onleft>5</onleft>
<onright>5</onright>
<onup>3</onup>
<ondown>3</ondown>
<itemlayout height="41">
<control type="label">
<posx>10</posx>
<posy>8</posy>
<width>455</width>
<height>41</height>
<info>ListItem.Label</info>
<textcolor>white</textcolor>
<font>ListView</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>grey</textcolor>
<scroll>false</scroll>
</control>
</itemlayout>
<focusedlayout height="41">
<control type="image">
<width>480</width>
<height>41</height>
<texture>windows/common/list_fo.png</texture>
</control>
<control type="label">
<posx>10</posx>
<posy>8</posy>
<width>455</width>
<height>41</height>
<info>ListItem.Label</info>
<textcolor>white</textcolor>
<font>ListView</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>blue</textcolor>
<scroll>false</scroll>
</control>
</focusedlayout>
</control>
<control type="label" id="2">
<description>Number Of Files</description>
<posx>670</posx>
<posy>440</posy>
<width>320</width>
<label>-</label>
<align>center</align>
<font>Medium</font>
<textcolor>darkgrey</textcolor>
</control>
<control type="button" id="5">
<description>OK button</description>
<posx>405</posx>
<posy>430</posy>
<width>157</width>
<height>52</height>
<label>186</label>
<font>Medium</font>
<align>center</align>
<texturenofocus>dialogs/content/button_nf.png</texturenofocus>
<texturefocus>dialogs/content/button_fo.png</texturefocus>
<textcolor>greyblue</textcolor>
<focusedcolor>greyblue</focusedcolor>
<textoffsetx>0</textoffsetx>
<textoffsety>0</textoffsety>
<onleft>10</onleft>
<onright>10</onright>
</control>
</control>
<control type="list" id="6">
<posx>400</posx>
<posy>247</posy>
<width>600</width>
<height>170</height>
<focusposition>2</focusposition>
<onleft>5</onleft>
<onright>5</onright>
<onup>3</onup>
<ondown>3</ondown>
<itemlayout height="41">
<control type="label">
<posx>10</posx>
<posy>2</posy>
<width>455</width>
<height>41</height>
<label>$INFO
[ListItem.Label]</label>
<textcolor>white</textcolor>
<font>ListView</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>grey</textcolor>
<scroll>false</scroll>
</control>
<control type="label">
<posx>10</posx>
<posy>20</posy>
<width>455</width>
<height>20</height>
<label>$INFO
[ListItem.Label2]</label>
<textcolor>greyblue</textcolor>
<font>Small</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>grey</textcolor>
<scroll>true</scroll>
</control>
</itemlayout>
<focusedlayout height="41">
<control type="image">
<width>480</width>
<height>41</height>
<texture>windows/common/list_fo.png</texture>
</control>
<control type="label">
<posx>10</posx>
<posy>2</posy>
<width>455</width>
<height>41</height>
<label>$INFO
[ListItem.Label]</label>
<textcolor>white</textcolor>
<font>ListView</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>blue</textcolor>
<scroll>false</scroll>
</control>
<control type="label">
<posx>10</posx>
<posy>20</posy>
<width>455</width>
<height>20</height>
<label>$INFO
[ListItem.Label2]</label>
<textcolor>blue</textcolor>
<font>Small</font>
<align>left</align>
<aligny>-</aligny>
<textcolor>grey</textcolor>
<scroll>true</scroll>
</control>
</focusedlayout>
</control>

<!-- Debug Info -->
<include>debug</include>

</controls>
</window>
Simply use $INFO[ListItem.Icon].
I think he wanted it outside the list, I gave it a quick try before work but it wasn't showing up. Even tried container(x) but that didnt work either. In my quick test it only showed when inside the list...
Outside the list use $INFO[Container(6).Listitem.Icon]
Perfect Hitcher!
Image
Still wondering if anyone can tell me why my volume txt isn't showing Smile
Missed the question - where'd you ask?
First page. Seems since updating xbmc I no longer see the dB label when using the volume ...
I must be blind because I can't see it!

<label>$INFO[player.volume]</label> still works for me.
Sorry mate was THIS thread where it was. I have the same code too ...
Pages: 1 2