Is it possible to get infos on unselected listitems?
#1
Hello,

There are Infolabels for the selected item in a list.

Is it possible to get info about the "surrounding" items, too?
Reply
#2
the only way i can think of is to use:
Code:
label = xbmc.getInfoLabel('ListItem(1).Label')
which will provide the label of the next item in the list

you can also specify a negative offset to get info from previous items:
Code:
label = xbmc.getInfoLabel('ListItem(-2).Label')
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanks. This is a very good start!

How do Skins draw the menus?

Do they use the InfoLabels, too?

Is it possible to get the index of the selected item?

Is it also possible to fetch ListItem info based on an absolute index ("I don't care about the selection. Give me the label of the first item")
Reply
#4
i love it when your answer a question and get four more in return ;-)
(2016-09-01, 17:14)M-Reimer Wrote: How do Skins draw the menus?
no idea what you're referring to, sorry.

(2016-09-01, 17:14)M-Reimer Wrote: Do they use the InfoLabels, too?
sure

(2016-09-01, 17:14)M-Reimer Wrote: Is it possible to get the index of the selected item?
Container(id).CurrentItem

(2016-09-01, 17:14)M-Reimer Wrote: Is it also possible to fetch ListItem info based on an absolute index
ListItemAbsolute(3).Label

wiki is your friend:
http://kodi.wiki/view/InfoLabels
http://kodi.wiki/view/Skinning_Manual
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Quote:How do Skins draw the menus?
Skins don't exactly draw the menu.
They are a collection of xml files that define what the screen will look like.
I think some have scripts to get additional info but most of the info is provided by kodi or your addon.
data in Infolabels is one of the ways they exchange information.
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to get infos on unselected listitems?0