Inline calculations for image group
#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>
Reply
#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
Reply
#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.
Reply

Logout Mark Read Team Forum Stats Members Help
Inline calculations for image group0