<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="light.gif">
 <information>
  <name>Lite Works Gobo</name>
  <author>Arne Lüdtke</author>
 </information>
 <channels>
  <function channel="0" minvalue="0" maxvalue="255" name="Gobo/Color" fade="yes" type="gobo"/>
  <function channel="1" minvalue="0" maxvalue="255" name="Rotation" fade="yes" type="dimmer" action="GetRot"/>
 </channels>
 <form width="177" height="145">
  <deviceimage top="0" left="0"/>
  <devicename top="0" left="40"/>
  <deviceadress top="16" left="40"/>
 <label top="35" left="0" caption="Gobo/Color/Strobe"/>
 <dropdown channel="0" top="55" left="0" width="177">
   <item caption="Blackout" value="0"/>
   <item caption="White" value="20"/>
   <item caption="Gobo 1/Yellow" value="30"/>
   <item caption="Gobo 2/Magenta" value="40"/>
   <item caption="Gobo 3/Blue" value="50"/>
   <item caption="Gobo 4/Light Green" value="60"/>
   <item caption="Gobo 5/Red" value="70"/>
   <item caption="Gobo 6/Pink" value="80"/>
   <item caption="Gobo 7/Light Blue" value="90"/>
   <item caption="Gobo 8/Light Green + Pink" value="100"/>
   <item caption="Gobo 9/Multi-color" value="110"/>
   <item caption="Gobo 10/Red" value="120"/>
   <item caption="Gobo 11/Light Blue" value="130"/>
   <item caption="Gobo 12/Yellow" value="140"/>
   <item caption="Gobo 13/UV Purple" value="150"/>
   <item caption="Gobo 14/Yellow + Light Blue" value="160"/>
   <item caption="Gobo 15/Light Blue + Magenta" value="170"/>
   <item caption="Gobo 16/Magenta + White" value="180"/>
   <item caption="Strobe" value="200"/>
   <item caption="Fast Strobe" value="227"/>
   <item caption="Chasing" value="230"/>
 </dropdown>
  <label top="80" left="0" caption="Gradeinstellung:"/>
  <slider action="SetRot" name="rotslider" startvalue="0" endvalue="199" top="100" left="0" height="30" width="177" default="0"/>
  <label top="130" left="0" caption="Rotation:"/>  
  <options top="130" left="50" name="rotswitch" action="SetRot">
   <option value="-1" caption="Aus" left="0" top="0" default="true"/>
   <option value="-2" caption="Ein" left="40" top="0"/>
  </options>
 </form>
<code>
 <procedure name='INITCONTROLS'>
   !call|GetRot$
  </procedure>

<procedure name='GetRot'>
!if|{channel_1}|eq|200|
 !set_control|rotswitch|-2$
 |
!if|{channel_1} &lt; 200|
 !set_control|rotswitch|-1$
 !set_control|rotslider|({channel_1})$
 $
$
</procedure>

  <procedure name='SetRot'>
 !if|{rotswitch}|eq|-1|
  !set_channel|1|{rotslider}$
 |
!if|{rotswitch}|eq|-2|
  !set_channel|1|200$
 $
$
  </procedure>
</code>
</device>