Inline calculations for image group

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
SytheZN Offline
Junior Member
Posts: 2
Joined: Apr 2012
Reputation: 0
Post: #1
Hi guys,

I'm attempting to make a vertical "progress" control to use as a volume indicator.
I've done a bit of searching but I haven't been able to find anything relevant with regards to either rotating a progress control, or to perform inline calculations.

My question is this: How would I go about setting the position or size of a contol based on a value?

For example:
<posy>Player.Volume * 3</posy>
find quote
jmarshall Online
Team-XBMC Developer
Posts: 24,520
Joined: Oct 2003
Reputation: 138
Post: #2
You can't.

A vertical progress bar can be done by just using a rotation anim easily enough, though obviously the controls for it might be non-intuitive.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
SytheZN Offline
Junior Member
Posts: 2
Joined: Apr 2012
Reputation: 0
Post: #3
Thanks...

I ended up doing it with a series of states based on IntegerGreaterThan(Player.Volume,{x})+!IntegerGreaterThan(Player.Volume,{x+1}).

A little roundabout, and a thousand lines of xml later Tongue, but it seems to work.

I'll try the rotation animation though.
(This post was last modified: 2012-04-24 02:13 by SytheZN.)
find quote