Kodi Community Forum

Full Version: Inline calculations for image group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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>
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
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.