Graphics

 View Only
  • 1.  Basketball clock digits

    Posted 11-22-2019 16:08

    My score clock is set to show 5 characters during gameplay. However, when the clock goes below 1:00, it is showing the 0 and colon. Is there a way to changed how a clock is displayed under 1:00 to only show the seconds and milliseconds?



  • 2.  RE: Basketball clock digits

    Posted 11-23-2019 16:56

    VISUAL LOGIC:

    - Cut the time string with Left and Right String and extract Minute, Seconds, Milliseconds and separators.
    - Use input selector to use as output text - the following Concatenate
    - Concatenate 1 like M:SS.ZZZ - if the Minute > 0
    - Concatenate 2 like SS.ZZZ - if the Minute is zero

    or

    SCRIPT:


    Dim MyTimer as xpClockTimerWidget = nothing
    Engine.GetWidgetByName("ClockTimer2", MyTimer)

    If MyTimer.TimerValue < 60000 then
    MyTimer.Format = "SS.Z"
    Else
    MyTimer.Format = "N:SS.Z"
    End If

    Download demo file:
    https://www.dropbox.com/s/nc0hj9pp11fxu2z/TIMER%20FORMAT%20-%2020191123.xpf?dl=0 


    #XPression