Announcement

Collapse
No announcement yet.

Adding second SongTime to the Window Shade Mode using Bento

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wineroz
    replied
    Yes, this is woking A-OK:

    PHP Code:
    <!-- INFO:
    Time passed [when playing] -->
    <
    text id="TimeElapsed"
    x="8" y="7" h="5" w="40" relatw="0" timeroffstyle="0" timecolonwidth="6"
    display="timeelapsed" align="right" font="player.bitmapfont.songinfo"
    />

    <!-- 
    INFO:
    Time remaining [when playing] -->
    <
    text id="TimeRemaining"
    x="100" y="7" h="5" w="40" relatw="0" timeroffstyle="0" timecolonwidth="6"
    display="timeremaining" align="right" font="player.bitmapfont.songinfo"
    />​ 

    Thank you

    Leave a comment:


  • ariszlo
    replied
    Don't use the same id for both of them. Change the id from SongTime to TimeElapsed for your first SongTime tag and to TimeRemaining for the second.

    Leave a comment:


  • Wineroz
    replied
    So I am using now this

    PHP Code:
    <groupdef id="shade.display">

    <
    grid
    x
    ="0" y="0" h="18" w="-5" relatw="1" ghost="1"
    left="shade.display.left"
    middle="shade.display.middle"
    right="shade.display.right"
    />

    <!-- 
    INFO:
    Time total [length of file] -->
    <
    text id="SongLength"
    x="10" y="7" h="5" w="35" relatw="0" timeroffstyle="1" timecolonwidth="6"
    display="songlength" align="left" font="player.bitmapfont.songinfo"
    />

    <!-- 
    INFO:
    Time passed [when playing] -->
    <
    text id="SongTime"
    x="55" y="7" h="5" w="40" relatw="0" timeroffstyle="0" timecolonwidth="6"
    display="timeelapsed" align="left" font="player.bitmapfont.songinfo"
    />

    <!-- 
    INFO:
    Time remaining [when playing] -->
    <
    text id="SongTime"
    x="100" y="7" h="5" w="40" relatw="0" timeroffstyle="0" timecolonwidth="6"
    display="timeremaining" align="left" font="player.bitmapfont.songinfo"
    />

    <!-- 
    INFO:
    Title Advanced Title Formatting-->
    <
    text id="Songticker" nograbb="1" move="1"
    x="155" y="2" h="12" w="-80" relatw="1"
    display="SONGTITLE" ticker="1" rightpadding="-3"
    rightclickaction="trackmenu" dblclickaction="trackinfo" align="left"
    color="color.display" fontsize="12" valign="top" bold="2"
    />



    <text id="InfoDisplay" nograbb="1" move="1"
    x="0" y="2" h="12" w="-7" relatw="1" offsetx="-3"
    align="right" color="color.display" fontsize="12" valign="top" bold="2" ghost="1"
    />



    <!-- 
    INFO:
    [
    DEACTIVATED] -->
    <!--
    <
    script file="../Big Bento/scripts/songticker.maki" param="3,small" />
    -->

    </
    groupdef

    and it works - but only if I left click one of them; i.e. I need to manually turn switch of them into the opposite state

    So how do I force Winamp to always start with that second
    SongTime automatically displaying timeremaining in it?​​

    Leave a comment:


  • ariszlo
    replied
    Yes, it is: How ?

    Leave a comment:


  • Adding second SongTime to the Window Shade Mode using Bento

    (In the wake of solution from this discussion: https://forums.winamp.com/forum/skin...ndowshade-mode)

    I am using this

    PHP Code:
    <-- INFO:
    Time passed remaining [when playing] --&gt;
    &
    lt;text id="SongTime"
    x="52" y="7" h="5" w="40" relatw="0" timeroffstyle="1" timecolonwidth="6"
    display="time" align="left" font="player.bitmapfont.songinfo"
    />​ 
    to see on my left where I am in a piece of music being played in a given moment. And it works A-OK


    But I wish to know precisely where I am - by seeing two counters instead of just one: first with a negative value [i.e. time remaining] and second with positive value [i.e. time passed]. And so I tried adding such second one by simply repeating it but also moving it to the right a little, i.e. using

    PHP Code:
    <-- INFO:
    Time remaining [when playing] --&gt;
    &
    lt;text id="SongTime"
    x="50" y="7" h="5" w="40" relatw="0" timeroffstyle="1" timecolonwidth="6"
    display="time" align="left" font="player.bitmapfont.songinfo"
    />

    <-- INFO:
    Time passed [when playing] --&gt;
    &
    lt;text id="SongTime"
    x="100" y="7" h="5" w="40" relatw="0" timeroffstyle="1" timecolonwidth="6"
    display="time" align="left" font="player.bitmapfont.songinfo"
    />​ 
    And it worked. But unfortunate when I click one of them, the second after something like a second follows this change of its state. And thus I always end up with two counters with positive or negative values [or to be precise: with the exact value being updated as a file plays along]


    My question then is: is it possible to double this ID entitled SongTime - but with adding a dichotomy to them?

    Maybe there is a way to somehow clone / add to my Bento utilizing Winamp 5.666 or newer [not tested yet by me] 5.9.1 of something like SongTime-2 - so that I could left click on it without entangling this click with original SongTime element?​
    Last edited by Wineroz; 18 September 2023, 10:47.
Working...
X
😀
🥰
🤢
😎
😡
👍
👎