Help with list items counter

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Scrembolxp Offline
Junior Member
Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #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: screenshot001cw.png]

[Image: screenshot002ey.png]

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

Many thx.
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,864
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #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
find quote
Scrembolxp Offline
Junior Member
Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #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
(This post was last modified: 2012-01-05 22:05 by Scrembolxp.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,864
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #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
find quote
YRUSirius Offline
Junior Member
Posts: 31
Joined: Jan 2010
Reputation: 0
Post: #5
Nice skin, your own modification? I am kinda interested. Smile

-YRUSirius
find quote
Scrembolxp Offline
Junior Member
Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #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
find quote