<!--
Description:
  An EffectPushButton template used for FX parameter buttons,
  EQ kill buttons and QuickEffect buttons.
Variables:
  ObjectName:
  Size      :
  parameter : 1, 2, 3, ...
  labelOn   : optional button graphic for ON state
  labelOff  : optional button graphic for OFF state
  FxRack_FxUnit_FxNum : various, might be
      [EffectRack1_EffectUnitX_EffectY]
      [EqualizerRack1_[ChannelA]_EffectY]
      [QuickEffectRack1_[ChannelA]_EffectY]
-->
<Template>
  <EffectPushButton>
    <ObjectName><Variable name="ObjectName"/></ObjectName>
    <Size><Variable name="Size"/></Size>
    <NumberStates>2</NumberStates>
    <EffectUnitGroup><Variable name="FxUnit"/></EffectUnitGroup>
    <Effect>1</Effect>
    <EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
    <State>
      <Number>0</Number>
      <Pressed scalemode="STRETCH">buttons/btn_<Variable name="labelOff"/>.svg</Pressed>
      <Unpressed scalemode="STRETCH">buttons/btn_<Variable name="labelOff"/>.svg</Unpressed>
    </State>
    <State>
      <Number>1</Number>
      <Pressed scalemode="STRETCH">buttons/btn_<Variable name="labelOn"/>.svg</Pressed>
      <Unpressed scalemode="STRETCH">buttons/btn_<Variable name="labelOn"/>.svg</Unpressed>
    </State>
    <Connection>
      <ConfigKey><Variable name="FxUnit_FxNum"/>,button_parameter<Variable name="FxParameter"/></ConfigKey>
      <ButtonState>LeftButton</ButtonState>
    </Connection>
  </EffectPushButton>
</Template>
