Announcement

Collapse
No announcement yet.

Ticker Client Button Colour

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

  • Ticker Client Button Colour

    Hi,

    I would like to change the default colour of custom buttons in ticker client. Currently, the buttons defaults to green no matter what state.

    A previous post suggested to edit default.xml and add a macro. I've done both with no success yet.
    http://forum.vizrt.com/forum/viz-tic...client-buttons

    Does anyone have an alternative way of doing this? I would appreciate any suggestions or solutions.

    Thanks!!!

  • #2
    Use statecolor attribute on your button entry
    Example:
    Code:
    <entry name="buttonName" statecolor="#ffff00" caption="MyButton">
    ....
    </entry>
    If you also want your button to change color when activated/deactivated you will need to handle state in entry (inversestate, statevalue, statepath attributes) and you need to set/unset this state in your button logic.

    Comment


    • #3
      Thanks for the reply Hormon. I'm getting closer. I'm not sure about the statepath to change colour for custom button. I don't know to get the right path.

      http://localhost:8580/mse_manual.html#cursor-state
      Code:
      <statepath> is the location of the cursor state itself.
      The reason behind the buttons is to trigger graphics to multiple outputs. We have multiple channels in different regions and we would like to have the ability to control the ticker systems with one button if necessary.

      I found a workaround that is not ideal. I can either add actions to the buttons or modify the script and add more references to action id like below.

      We could also have combo channels or regions that could get the same elements triggered. (i.e. east coast or west coast)


      //======== BUTTONS ========//
      Code:
                    
      <entry name="buttons">
      
          <entry name="test" caption="test">
      
              <entry name="on" caption="on" inversestate="no" statecolor="#008000" statepath="/storage/ticker/default/state/Main/program/current">
      
                  <ref actionid="Main ticker system on">/storage/ticker/default/channels/Main/actions/Main ticker system on</ref>
      
                  <ref name="ref#2" actionid="Main program on">/storage/ticker/default/channels/Main/actions/Main program on</ref>
      
                  <ref name="ref#3" actionid="DALE ticker system on">/storage/ticker/default/channels/DALE/actions/DALE ticker system on</ref>
      
                  <ref name="ref#4" actionid="DALE program on">/storage/ticker/default/channels/DALE/actions/DALE program on</ref>
      
              </entry>
      
              <entry name="off" caption="off" inversestate="yes" statecolor="#FF0000" statepath="/storage/ticker/default/state/Main/program/current">
      
                  <ref actionid="Main ticker system off">/storage/ticker/default/channels/Main/actions/Main ticker system off</ref>
      
                  <ref name="ref#2" actionid="Main program off">/storage/ticker/default/channels/Main/actions/Main program off</ref>
      
                  <ref name="ref#3" actionid="DALE ticker system off">/storage/ticker/default/channels/DALE/actions/DALE ticker system off</ref>
      
                  <ref name="ref#4" actionid="DALE program off">/storage/ticker/default/channels/DALE/actions/DALE program off</ref>
      
              </entry>
      
          </entry>
      Last edited by clopez11; 07-27-2017, 02:53 PM.

      Comment


      • #4
        Sorry if this is such a newbie question. Attached is an example of what I'm trying to solve. Thanks again!

        //======== HANDLERS ========//

        Code:
        <env name="TEST on" feed="TEST" phase="run">
        
            <def var="TESTING">test_custom</def>
        
            <entry name="stateinformation">
        
                <entry name="statepath">/storage/ticker/default/state/Main/program/current</entry>
        
                <entry name="statevalue">on</entry>
        
                <entry name="statecolor">#008000</entry>
        
                <entry name="inversestate">no</entry>
        
            </entry>
        
            <def name="def#2">
        
                <ref>/storage/ticker/default/state/Main/system/current</ref>
        
            </def>
        
            <equals>on</equals>
        
            <then>
        
                <state>
        
                    <transient_backing>true</transient_backing>
        
                    <logic>/storage/ticker/default/transitions/Main/program</logic>
        
                    <path>/storage/ticker/default/state/Main/program</path>
        
                    <value>on</value>
        
                </state>
        
            </then>
        
        </env>
        
        <env name="Test off" feed="DALE" phase="run">
        
            <def var="TESTING">test_custom</def>
        
            <entry name="stateinformation">
        
                <entry name="statepath">/storage/ticker/default/state/Main/program/current</entry>
        
                <entry name="statevalue">on</entry>
        
                <entry name="statecolor">#FF0000</entry>
        
                <entry name="inversestate">yes</entry>
        
            </entry>
        
            <def name="def#2">
        
                <ref>/storage/ticker/default/state/Main/system/current</ref>
        
            </def>
        
            <equals>on</equals>
        
            <then>
        
                <state>
        
                    <transient_backing>true</transient_backing>
        
                    <logic>/storage/ticker/default/transitions/Main/program</logic>
        
                    <path>/storage/ticker/default/state/Main/program</path>
        
                    <value/>
        
                </state>
        
            </then>
        
        </env>

        Comment


        • #5
          Figured it out how to change the colour of button. Thanks for the notes.

          One last thing, how do I get the proper statepath?
          Last edited by clopez11; 07-28-2017, 06:23 PM.

          Comment


          • #6
            You should just specify it yourself - try to keep it in some "valid" location in MSE.

            Comment


            • #7
              Thanks Hormon.

              Comment

              Working...
              X