Announcement

Collapse
No announcement yet.

Is there way to "blink" two different images when an indicator is "ON"

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

  • Is there way to "blink" two different images when an indicator is "ON"

    When the indicator is "OFF," I want no indicator image to be displayed.

    When the indicator is "ON," I want it blink two alternating images when using "INDICATORCODE:B" in the skin code.

    Can I accomplish this using an extension plugin?
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  • #2
    yes you can, just point the indicator for one of desired images, use an external batch or script to continuously swap the name between the first image and the second image... it will looks like what you want.
    Engineering: Where the rubber meets the road!
    RR Skin RED 2.0 http://www.mp3car.com/vbulletin/rr-s...red-2-0-a.html

    Comment


    • #3
      Originally posted by Sal R. View Post
      When the indicator is "OFF," I want no indicator image to be displayed.

      When the indicator is "ON," I want it blink two alternating images when using "INDICATORCODE:B" in the skin code.

      Can I accomplish this using an extension plugin?
      Yes, instead of returning "True" in the ext pi, just return the path to one of the two images and then just use a bool var to toggle between the two paths when that ind func is called from RR. You'd also need to know when the ind would be off so that you coud return "False"

      Quick sample I through together for ya.
      Code:
      Dim IndToggle as Boolean
      Dim IndOn As Boolean
      
      
      Public Function ReturnIndicatorEx(IND As String) As String
      
          'Default (No Action)
          'ONLY return something else IF AND ONLY IF you process that code
          ReturnIndicatorEx = ""
      
          Select Case LCase(IND)
              Case "myindicator"
              	If IndOn Then
      			If IndToggle Then
      				ReturnIndicatorEx = <PATH TO FIRST IMG>
      			Else
      				ReturnIndicatorEx = <PATH TO SECOND IMG>
      			End If
      			IndToggle = Not IndToggle
      
      		Else
      			ReturnIndicatorEx = "False"
      			' If you always want the first img to show when it turns back on then use the line below
      			'IndToggle = True
      		End If
          End Select
      End Function
      RideRunner...The #1 FE, PERIOD.

      Current Project: DFXVoice [v1.0 Released]
      Next in line: RRMedia v2.0

      DFX 5.1.1 Skin
      Appstore Link

      My RideRunner Plugins
      RRMedia
      RRExtended
      DFXVoice

      "There are no bugs - only undocumented features."

      Comment


      • #4
        Suh-weet.

        I was thinking of using images, but couldn't figure out how to toggle b/w the two.

        TY!

        EDIT: Worked like a charm...
        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

        Comment

        Working...
        X