Inline calculations for image group - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +--- Thread: Inline calculations for image group (/showthread.php?tid=129735) |
Inline calculations for image group - SytheZN - 2012-04-23 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> RE: Inline calculations for image group - jmarshall - 2012-04-24 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 RE: Inline calculations for image group - SytheZN - 2012-04-24 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 , but it seems to work. I'll try the rotation animation though. |