Thread Rating:
  • 0 Vote(s) - 0 Average
Help with list items counter
#1
Hi again!
I'm trying to put a counter to my emulators view and i fail, I'm using Container (id). Position and returns 0 for the first item, besides has only 9 of 27 items. Anyone can help me?

Image

Image

The code is exactly:
<label>$INFO[Container.Position] of $INFO[Container.NumItems] Games</label>

Many thx.
Reply
#2
Position only tells you which list item is focused (zero being the first).

Here's the code you'll need -

PHP Code:
<label>10 of $INFO[Container.NumItemsGames</label>
<
visible>IntegerGreaterThan(Container.NumItems,9)</visible

PHP Code:
<label>$INFO[Container.NumItemsof $INFO[Container.NumItemsGames</label>
<
visible>!IntegerGreaterThan(Container.NumItems,9)</visible
Reply
#3
Many thx Hitcher but I don't get it to work (i'm a noob poor u_u)

I'm looking count the container items (1 of X, 2 of X, 3 of X, 4 of X... 10 of X, 11 of X... to X of X) i tried your code in the control but i fail, and is obviously that i can't use Container.Position anymore

PHP Code:
                <control type="label">
                        <
posx>600</posx>
                        <
posy>570</posy>
                        <
width>1200</width>
                        <
font>MediumBold</font>
                        <
label>$INFO[Container.Positionof $INFO[Container.NumItemsGames</label>
                        <
textcolor>lightgrey</textcolor>
                        <
scroll>false</scroll>
                        <
align>right</align>
                </
control

if someone like to take a look this is the xml view

Viewtype_VirtualC.xml

Thx again
Reply
#4
Misunderstood what you were trying to achieve, sorry.

Try putting the container ID in there.

ie

PHP Code:
<label>$INFO[Container(CONTAINER_ID).Positionof $INFO[Container.NumItemsGames</label
Reply
#5
Nice skin, your own modification? I am kinda interested. Smile

-YRUSirius
Reply
#6
YRUSirius Wrote:Nice skin, your own modification? I am kinda interested. Smile

-YRUSirius

Many thx YRUSirius

I started with the xbmc mod (for my old xbox) when I saw your program panels mod (many thx again), I'm a noob in this and I'm not a good skinner honestly, now I'm a little stuck with the home panels text, the media panel in guide button and this item counter for arcade view... but hey I'm looking at other xbmc skins and advancing little by little on mine. My goal is finish the mod to make it like the old version of the 360 ​​NXE. And when I finish the mod share it with all Smile

Sorry my poor english.

Regards
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Help with list items counter00