<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="Nemises.gif" initsequence=" set 0 128; set 1 128; set 2 255; set 3 11; set 4 255; set 5 11">
  <information>
    <vendor>Futurelight</vendor>
    <name>DJ Scan150</name>
    <author>GR 170 überarbeitet von Uwe</author>
    <comment>4 Kanal Scanner mit virtuellem Dimmerkanal</comment>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
    <function channel="1" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
    <function channel="2" minvalue="0" maxvalue="255" name="Lüfter" fade="yes" />
    <function channel="3" minvalue="0" maxvalue="255" name="Gobo" fade="no" type="gobo" action="GetGobo" />
    <function channel="4" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" action="GetDimmer" />
    <function channel="5" minvalue="0" maxvalue="255" name="G-Temp" fade="no" />
  </channels>
  <form width="182" height="290">
    <deviceimage top="0" left="0" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <position top="104" left="0" height="190" width="190" />
    
    <dropdown top="48" left="1" width="121" name="GoboDrop" action="SetGobo">
      <item caption="Weiß offen" value="11" />
      <item caption="Blau Gitter" value="19" color="#00ffff" />
      <item caption="Gelb Kreise" value="36" color="#ffff00" />
      <item caption="Rot Viereck" value="45" color="#ff0000" />
      <item caption="Grün Kreise" value="59" color="#80ff00" />
      <item caption="Olive Balken" value="67" color="#ff8000" />
      <item caption="Rot Zahnrad" value="83" color="#ff0000" />
      <item caption="Grün Kreisreihe" value="91" color="#00ff00" />
      <item caption="Orange Kreuz" value="107" color="#ff8000" />
      <item caption="Weiß Balkenviereck" value="115" />
      <item caption="Windows Bunt" value="129" />
      <item caption="Windows Rot Blau" value="137" />
      <item caption="St Weiß Offen" value="145" />
      <item caption="St Blau Gitter" value="153" color="#00ffff" />
      <item caption="St Gelb Kreise" value="161" color="#ffff00" />
      <item caption="St Rot Viereck" value="169" color="#ff0000" />
      <item caption="St Grün Kreise" value="177" color="#00ff00" />
      <item caption="St Grün Balken" value="185" color="#80ff80" />
      <item caption="St Rot Zahnrad" value="193" color="#ff0000" />
      <item caption="St Grün Kreisreihe" value="201" color="#00ff00" />
      <item caption="St Orange Kreuz" value="210" color="#ff8000" />
      <item caption="St Weiß Balkenviereck" value="218" />
      <item caption="St Windows Bunt" value="226" />
      <item caption="Durchlauf schnell" value="234" />
      <item caption="Durchlauf Mittel" value="242" />
      <item caption="Durchlauf Langsamm" value="250" />
    </dropdown>

    <label top="80" left="1" caption="Lüfter" />

    <slider top="80" left="36" height="25" width="73" startvalue="0" endvalue="255" channel="2" />

    <options name="Shutter" action="SetShutter" top="50" left="128" >
      <option value="0" caption="Weiter" top="0" left="0" />
      <option value="1" caption="Aus" top="20" left="0" />
    </options>

    <label top="32" left="4" caption="Gobo" />
  </form>
  <code>
    <procedure name="INITCONTROLS">
      !call|GetDimmer$
      !call|GetGobo$
    </procedure>
    
    <procedure name="SetShutter">
      !if|{Shutter} = 0|
        !set_channel|3|{channel_5}$
        !call|GetGobo$
      $
      !if|{Shutter} = 1|
        !set_channel|3|27$
      $
    </procedure>
    
    <procedure name="SetGobo">
      !if|{Shutter} = 0|
        !set_channel|3|{GoboDrop}$
      $
      !set_channel|5|{GoboDrop}$
    </procedure>
    
    <procedure name="GetGobo">
      !set_control|GoboDrop|{channel_3}$
      !set_control|GoboDrop|{channel_5}$
    </procedure>
    
    <procedure name="GetDimmer">
      !if|{channel_4} = 0|
        !set_control|Shutter|1$
        !set_channel|5|{channel_3}$
        !set_channel|3|27$
      $
      !if|{channel_4} &gt; 0|
        !set_control|Shutter|0$
        !set_channel|3|{channel_5}$
      $
    </procedure>
  </code>
</device>