Seek bar marker as label - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Seek bar marker as label (/showthread.php?tid=303792) |
Seek bar marker as label - djh_ - 2017-01-11 Not sure what else to call it, but I want to have a label for the seek time of a movie which actually moves back and forth with the seek bar. Right now it just seems you can only have a texture as part of the slider control. Is there a solution or is this a feature request? RE: Seek bar marker as label - BigNoid - 2017-01-11 Just slide it along with the progress bar: <animation effect="slide" start="0" end="19.2" time="100" condition="Integer.IsGreater(Player.Progress,1)" reversible="false">Conditonal</animation> <animation effect="slide" start="0" end="19.2" time="100" condition="Integer.IsGreater(Player.Progress,2)" reversible="false">Conditonal</animation> etc RE: Seek bar marker as label - djh_ - 2017-01-11 Would that accurately track the progress bar, though? I need it to effectively *be* the seek bar marker. RE: Seek bar marker as label - BigNoid - 2017-01-11 Well, you need to divide the length of the progress bar /100 and use those pixels in each slide animation. My example was from a label with the progressed time I used to slide along with a fullscreen progress bar (1920px). In my example I needed to start the animation with progress greater than 5 and end it before 96 otherwise the text would fall off screen, but it followed it accurately. There's no support for text in our current slider control. RE: Seek bar marker as label - djh_ - 2017-01-11 Okay, new problem. What you describe works, but it only updates with the progress bar (which I appreciate is my fault for being vague). The slider which controls the progress bar is what I actually need the label for - is there any way to pair it with that? RE: Seek bar marker as label - BigNoid - 2017-01-11 I haven't tried it, but I guess doing the slide condition based on Control.GetLabel(slider id) might work? RE: Seek bar marker as label - Hitcher - 2017-01-11 I did mine in VideoFullscreenScreen - https://github.com/HitcherUK/skin.ftv/blob/master/16x9/VideoFullScreen.xml#L282 - using textures as padding. |