<Template>
  <SetVariable name="group">[Auxiliary<Variable name="auxnum"/>]</SetVariable>
  <WidgetGroup>
    <ObjectName>MicBorder</ObjectName>
    <Layout>horizontal</Layout>
    <Children>
      <WidgetGroup>
        <ObjectName>MicInterior</ObjectName>
        <BackPath>style/background_tile.png</BackPath>
        <Layout>horizontal</Layout>
        <SizePolicy>min,max</SizePolicy>
        <Children>

          <WidgetGroup><!-- Label, TALK, orientation -->
            <ObjectName>AlignCenterTop</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>

              <WidgetGroup>
                <Layout>vertical</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                  <Label>
                    <ObjectName>MicSubTitle</ObjectName>
                    <Size>,18f</Size>
                    <Text>Aux <Variable name="auxnum"/></Text>
                    <Alignment>center</Alignment>
                  </Label>
                </Children>
              </WidgetGroup>

              <WidgetGroup><!-- PLAY -->
                <ObjectName>AuxMuteButton</ObjectName>
                <Layout>vertical</Layout>
                <SizePolicy>min,max</SizePolicy>
                <Children>
                  <PushButton>
                    <TooltipId>mute</TooltipId>
                    <NumberStates>2</NumberStates>
                    <State>
                      <Number>0</Number>
                      <Pressed>buttons/btn_aux_play_overdown.svg</Pressed>
                      <Unpressed>buttons/btn_aux_play_over.svg</Unpressed>
                    </State>
                    <State>
                      <Number>1</Number>
                      <Pressed>buttons/btn_aux_play_down.svg</Pressed>
                      <Unpressed>buttons/btn_aux_play.svg</Unpressed>
                    </State>
                    <Connection>
                      <ConfigKey><Variable name="group"/>,mute</ConfigKey>
                      <ButtonState>LeftButton</ButtonState>
                    </Connection>
                  </PushButton>
                </Children>
              </WidgetGroup><!-- /PLAY -->

              <WidgetGroup>
                <Layout>vertical</Layout>
                <SizePolicy>min,max</SizePolicy>
                <Children>
                  <Template src="skin:button_3state.xml">
                    <SetVariable name="TooltipId">mute</SetVariable>
                    <SetVariable name="Size">34f,15f</SetVariable>
                    <SetVariable name="state_0">orientation_aux_left</SetVariable>
                    <SetVariable name="state_1">orientation_aux_master</SetVariable>
                    <SetVariable name="state_2">orientation_aux_right</SetVariable>
                    <SetVariable name="ConfigKey"><Variable name="group"/>,orientation</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

            </Children>
          </WidgetGroup><!-- Label, TALK, orientation -->

          <WidgetGroup><!-- VU meter -->
            <ObjectName>MicVUMeter</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>max,min</SizePolicy>
            <Children>
              <StatusLight>
                <TooltipId>microphone_PeakIndicator</TooltipId>
                <PathStatusLight>style/clipping_micAux_over.svg</PathStatusLight>
                <PathBack>style/clipping_micAux.svg</PathBack>
                <Connection>
                  <ConfigKey><Variable name="group"/>,PeakIndicator</ConfigKey>
                </Connection>
              </StatusLight>

              <VuMeter>
                <TooltipId>microphone_VuMeter</TooltipId>
                <PathVu>style/volume_display_micAux_over.svg</PathVu>
                <PathBack>style/volume_display_micAux.svg</PathBack>
                <Horizontal>false</Horizontal>
                <PeakHoldSize>5</PeakHoldSize>
                <PeakHoldTime>500</PeakHoldTime>
                <PeakFallTime>50</PeakFallTime>
                <PeakFallStep>2</PeakFallStep>
                <Connection>
                  <ConfigKey><Variable name="group"/>,VuMeter</ConfigKey>
                </Connection>
              </VuMeter>
            </Children>
          </WidgetGroup><!-- /VU meter -->

          <WidgetGroup><Size>2f,1min</Size></WidgetGroup>

          <WidgetGroup><!-- Gain, Pfl, FX buttons -->
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>

              <WidgetGroup><!-- Gain, Pfl -->
                <ObjectName>MicGainPFlContainer</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>min,me</SizePolicy>
                <Children>
                  <WidgetGroup>
                    <ObjectName>MicGainKnob</ObjectName>
                    <Layout>horizontal</Layout>
                    <SizePolicy>me,me</SizePolicy>
                    <Children>
                      <Template src="skin:knob_textless.xml">
                        <SetVariable name="TooltipId">pregain</SetVariable>
                        <SetVariable name="Size">36f,30f</SetVariable>
                        <SetVariable name="group"><Variable name="group"/></SetVariable>
                        <SetVariable name="control">pregain</SetVariable>
                      </Template>
                    </Children>
                  </WidgetGroup>

                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">pfl</SetVariable>
                    <SetVariable name="icon">pfl</SetVariable>
                    <SetVariable name="ConfigKey"><Variable name="group"/>,pfl</SetVariable>
                    <SetVariable name="Size">26f,26f</SetVariable>
                  </Template>

                </Children>
              </WidgetGroup><!-- /Gain, Pfl -->

              <WidgetGroup><!-- FX buttons 1+2 -->
                <ObjectName>MicFxButtons</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">35f,22f</SetVariable>
                    <SetVariable name="state_0_text">FX&#8202;1</SetVariable>
                    <SetVariable name="state_1_text">FX&#8202;1</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit1],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>

                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">35f,22f</SetVariable>
                    <SetVariable name="state_0_text">FX&#8202;2</SetVariable>
                    <SetVariable name="state_1_text">FX&#8202;2</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit2],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>
                </Children>
                <Connection>
                  <ConfigKey persist="true">[Master],show_4effectunits</ConfigKey>
                  <Transform><Not/></Transform>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup><!-- /FX buttons 1+2 -->

              <WidgetGroup><!-- FX buttons 1+2+3+4 -->
                <ObjectName>MicFxButtons</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">30f,22f</SetVariable>
                    <SetVariable name="state_0_text">FX&#8202;1</SetVariable>
                    <SetVariable name="state_1_text">FX&#8202;1</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit1],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>

                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">20f,22f</SetVariable>
                    <SetVariable name="state_0_text">2</SetVariable>
                    <SetVariable name="state_1_text">2</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit2],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>

                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">20f,22f</SetVariable>
                    <SetVariable name="state_0_text">3</SetVariable>
                    <SetVariable name="state_1_text">3</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit3],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>

                  <Template src="skin:button_2state.xml">
                    <SetVariable name="TooltipId">EffectUnit_auxiliary_enabled</SetVariable>
                    <SetVariable name="ObjectName">FxAssignButton</SetVariable>
                    <SetVariable name="Size">20f,22f</SetVariable>
                    <SetVariable name="state_0_text">4</SetVariable>
                    <SetVariable name="state_1_text">4</SetVariable>
                    <SetVariable name="ConfigKey">[EffectRack1_EffectUnit4],group_<Variable name="group"/>_enable</SetVariable>
                  </Template>
                </Children>
                <Connection>
                  <ConfigKey persist="true">[Master],show_4effectunits</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup><!-- /FX buttons 1+2+3+4 -->
            </Children>
          </WidgetGroup><!-- /Gain, Pfl, FX buttons -->

        </Children>
      </WidgetGroup><!-- /MicInterior -->
    </Children>
  </WidgetGroup><!-- /MicBorder -->
</Template>
