<GraphicalUserInterface>
	<Resources Directory=".\" Variables="
		TextColor.i = $FFFFFF; HoverTextColor.i = $FFFFFF;
		BackgroundColor.i = $CD7418; HoverBackgroundColor.i = $CD7418;
		Dynamic.i = 0; Volume.i = 100" >
		
		<!-- RGB > $BBGGRR-->
		
		<!-- Grafiken-->
		<Graphic Name="Button"       File="button_transp2.png"   Top="5" Right="5" Bottom="5" Left="5" />
		<Graphic Name="Button_black" File="Button_black.png"   Top="5" Right="5" Bottom="5" Left="5" />
		<Graphic Name="Buttonschein" File="button_hover.png"   Top="5" Right="5" Bottom="5" Left="5" />

		<!-- Schriften -->
		<Typeface Name="tahoma"    ID="1"       File="font/tahoma.tf" Size="1.0" />
		<Typeface Name="Textsmall"    ID="1"    File="font/gravity20.tf" Size="1.0" />
		<Typeface Name="Textsmallhover"         File="font/gravity20.tf" Size="1.1" />
		<Typeface Name="Text"         ID="1"    File="font/gravity20.tf" Size="1.5" />
		<Typeface Name="TextHover"              File="font/gravity20.tf" Size="1.6" />
		<Typeface Name="Text30"       ID="1"  File="font/gravity30.tf" Size="1.0" />
		<Typeface Name="Text40"       ID="1"  File="font/gravity40.tf" Size="1.0" />
		<Typeface Name="Texttitel40"       ID="1"  File="font/titelfont40.tf" Size="1.0" />
			
		<!-- Sounds -->
		<Sound Name="Mouseover1"           File="sfx/mouseover1.ogg" Volume="50"/>
		<Sound Name="Mouseover2"           File="sfx/mouseover2.ogg" Volume="50"/>
		<Sound Name="Mousedown"            File="sfx/mousedown.ogg" Volume="50"/>

	</Resources>
		
   <!-- Kontainerelement -->
	
	<ControlType Name="Container" Parameters="X.i, Y.i, Width.i, Height.i,Border.i=0, TextColor.i = $CD7418">		
		<Content Type="Controls" X="X" Y="Y" />		
		<Design Name="Default" >
			<Layer Condition="Border==1" Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="40" Color="TextColor" />
		</Design>		
		<Design Name="Disable" >
			<Layer Condition="Border==1" Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="32" Color="TextColor" />
		</Design>		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default" />
	</ControlType>	
	

	<ControlType Name="Container2" Parameters="X.i, Y.i, Width.i, Height.i">		
		<Content Type="Controls" X="X" Y="Y" />		
		<Design Name="Default" >
			<Layer Graphic="Button_black" X="X" Y="Y" Width="Width" Height="Height"/>
		</Design>		
		<Design Name="Disable" >
			<Layer Graphic="Button_black" X="X" Y="Y" Width="Width" Height="Height"/>
		</Design>		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default" />
	</ControlType>	
	
	
		<!-- Textelement -->

	<ControlType Name="Text" Parameters="X.i, Y.i, Text.s, Size.f=1.0">
		
		<Design Name="Default" >
			<Layer Typeface="Text40" X="X" Y="Y" Text="Text" Transparency="255" Color="TextColor" Size="Size*0.5"/>
		</Design>
		<Design Name="Disable" >
			<Layer Typeface="Text40" X="X" Y="Y" Text="Text" Transparency="64" Color="TextColor" Size="Size*0.5"/>
		</Design>
		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default" />
		
	</ControlType>
	
		<!-- Schalterelement -->
	
	<ControlType Name="Buttonohne" Parameters="X.i, Y.i, Width.i, Height.i,Text.s"  Variables="" >	
		<Design Name="Default" >
		 	<Layer Typeface="tahoma" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="TextColor" />						
		</Design>
				
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseEnter" Design="Default" />
			<Event Type="MouseLeave" Design="Default" />
			<Event Type="MouseDown" Design="Default" />
			<Event Type="MouseUp" Name="Click" Design="Default" />
		</EventArea>
		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default" />
	</ControlType>
	
	
	<ControlType Name="Buttonsmall" Parameters="X.i, Y.i, Width.i, Height.i, Text.s,Transparencyadd.i = 0,TextColor.i = $FFFFFF,HoverBackgroundColor.i = $FFFFFF" 
	    Variables="Color.i, Color2.i,ColorDisable.i=$0000FF, Blur.f=0.0, T.i=0, ScheinX.f=0" >
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="50" Color="TextColor" />
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />						
		</Design>

		<Design Name="Disable" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="10" Color="TextColor" />
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="50+Transparencyadd" Color="TextColor" />
		</Design>
		
		<Design Name="Down" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="120" Color="TextColor"/>			 			
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />
		</Design>
		
		<Design Name="Hover" >
		    <Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="70" Color="TextColor"/>			 			
    		<!--<Layer Graphic="Buttonschein" X="X" Y="Y" Width="Width" Height="Height" Transparency="T" Color="HoverBackgroundColor" />-->
		<Layer Typeface="Textsmallhover" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="TextColor" />
		</Design>
		<Effect Name="MouseDown">			
			<Sound Sound="Mousedown" Volume="Volume" />
		</Effect>

		<Effect Name="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
			<Sound Sound="Mouseover1" Volume="Volume" />
		</Effect>
		
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseEnter" Design="Hover" Effect="MoveSchein"/>
			<Event Type="MouseLeave" Design="Default" />
			<Event Type="MouseDown" Design="Down" Effect="MouseDown" />
			<Event Type="MouseUp" Name="Click" Design="Default" />
		</EventArea>
		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default" />
		
	</ControlType>
	
	<ControlType Name="Button" Parameters="X.i, Y.i, Width.i, Height.i, Text.s" Variables="Color.i, Color2.i,ColorDisable.i=$0000FF, Blur.f=0.0, T.i=0, ScheinX.f=0" >
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="100" Color="BackgroundColor" />
			<Layer Typeface="Texttitel40" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="200" Color="TextColor" />						
		</Design>

		<Design Name="Disable" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="10" Color="BackgroundColor" />
			<Layer Typeface="Texttitel40" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="70" Color="TextColor" />
		</Design>
		
		<Design Name="Down" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="120" Color="BackgroundColor"/>			 			
			<Layer Typeface="Texttitel40" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />
		</Design>
		
		<Design Name="Hover" >
		    <Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="T" Color="HoverBackgroundColor"/>			 			
			<!--<Layer Graphic="Buttonschein" X="X" Y="Y" Width="Width" Height="Height" Transparency="T" Color="HoverBackgroundColor" /> -->
			<Layer Typeface="Texttitel40" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="HoverTextColor" />
		</Design>

		<Effect Name="MouseDown">			
			<Sound Sound="Mousedown" Volume="Volume" />
		</Effect>
		
		<Effect Name="MoveSchein">			
			<Function Term="T =100 + Sin(Pi*Time) * 155"  Length="1000" /> 
			<!-- <Function Term="If(T <= 255 , T , + 1)" /> -->
			<Sound Sound="Mouseover1" Volume="Volume" />
		</Effect>		
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseEnter" Design="Hover" Effect="MoveSchein"/>
			<Event Type="MouseLeave" Design="Default" />
			<Event Type="MouseDown" Design="Down" Effect="MouseDown" />
			<Event Type="MouseUp" Name="Click" Design="Default" />
			<Event Type="MouseDoubleClick" Name="DoubleClick" Design="Default" />
		</EventArea>
		
		<Visible Design="Default" />
		<Disable Design="Disable" />
		<Enable Design="Default"  />
		
	</ControlType>
	
	
	<ControlType Name="Buttonsmalltoggle" Parameters="X.i, Y.i, Width.i, Height.i, Text.s,Transparencyadd.i = 0,TextColor.i = $FFFFFF,HoverBackgroundColor.i = $FFFFFF" Variables="State.i, Color.i, Color2.i, ColorToggle.i=$00FF00, Blur.f=0.0, T.i=0, ScheinX.f=0" >
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="50" Color="If(State==1,ColorToggle,TextColor)" />			 			
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />			
		</Design>
		
		<Design Name="Disable">
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="10+Transparencyadd" Color="TextColor"/>			 			
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="50+Transparencyadd" Color="TextColor" />
		</Design>
		
		<Design Name="Down" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="120" Color="TextColor"/>			 			
			<Layer Typeface="Textsmall" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />
		</Design>	
		
		<Design Name="Hover" >
		    <Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="70" Color="TextColor"/>			 			
			<Layer Graphic="Buttonschein" X="X" Y="Y" Width="Width" Height="Height" Transparency="T" Color="HoverBackgroundColor" />
			<Layer Typeface="Textsmallhover" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="TextColor" />
		</Design>
		
		<Effect Name="MouseDown">			
			<Sound Sound="Mousedown" Volume="Volume"/>
		</Effect>
		
		<Effect Name="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
			<Sound Sound="Mouseover1" Volume="Volume"/>
		</Effect>
		
	     <Effect Name="ChangeState">
			<Change Term="State=1-State"/>
	    </Effect>
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseEnter" Design="Hover" Effect="MoveSchein"/>
			<Event Type="MouseLeave" Design="Default" Effect="HoverOut"/>
			<Event Type="MouseDown" Design="Down" Effect="MouseDown" />
    		<Event Type="MouseUp" Name="Click" Design="Default" Effect="ChangeState" />			
		</EventArea>
		
		<Visible Design="Default"  />
		<Disable Design="Disable" />
		<Enable Design="Default"  />
		
	</ControlType>
	
	<ControlType Name="Buttontoggle" Parameters="X.i, Y.i, Width.i, Height.i, Text.s,Transparencyadd.i = 0,TextColor.i = $FFFFFF,HoverBackgroundColor.i = $FFFFFF" Variables="State.i, Color.i, Color2.i, ColorToggle.i=$00FF00, Blur.f=0.0, T.i=0, ScheinX.f=0" >
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="50" Color="If(State==1,ColorToggle,TextColor)" />			 			
			<Layer Typeface="Text" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />			
		</Design>
		
		<Design Name="Disable">
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="10+Transparencyadd" Color="TextColor"/>			 			
			<Layer Typeface="Text" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="50+Transparencyadd" Color="TextColor" />
		</Design>
		
		<Design Name="Down" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="120" Color="TextColor"/>			 			
			<Layer Typeface="Text" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="150" Color="TextColor" />
		</Design>	
		
		<Design Name="Hover" >
		    <Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="70" Color="TextColor"/>			 			
			<Layer Graphic="Buttonschein" X="X" Y="Y" Width="Width" Height="Height" Transparency="T" Color="HoverBackgroundColor" />
			<Layer Typeface="TextHover" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="TextColor" />
		</Design>

		<Effect Name="MouseDown">			
			<Sound Sound="Mousedown" Volume="Volume" />
		</Effect>

		<Effect Name="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
			<Sound Sound="Mouseover1" Volume="Volume" />
		</Effect>
		
	     <Effect Name="ChangeState">
			<Change Term="State=1-State"/>
	    </Effect>
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseEnter" Design="Hover" Effect="MoveSchein"/>
			<Event Type="MouseLeave" Design="Default" Effect="HoverOut"/>
			<Event Type="MouseDown" Design="Down" Effect="MouseDown" />
    		<Event Type="MouseUp" Name="Click" Design="Default" Effect="ChangeState" />			
		</EventArea>
		
		<Visible Design="Default"  />
		<Disable Design="Disable" />
		<Enable Design="Default" />
		
	</ControlType>
		
		<!-- Schiebeelement -->
	
	<ControlType Name="Slider" Parameters="X.i, Y.i, Width.i, Height.i, Max.i=100, State.i=0" Variables="Edit.i, Color.i, Color2.i, Blur.f" >
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="128" Color="Color" />
			<Layer Graphic="Button"  X="X" Y="Y" Width="24+State*(Width-24)/Max" Height="Height" Transparency="192" Color="If(Edit,HoverTextColor-$202020,Color2)"/>
		</Design>
		<Design Name="Disable" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="32" Color="Color" />
			<Layer Graphic="Button"  X="X" Y="Y" Width="24+State*(Width-24)/Max" Height="Height" Transparency="48" Color="If(Edit,HoverTextColor-$202020,Color2)"/>
		</Design>
		
		<Effect Name="HoverIn">
			<Function Term="Color=Blend(BackgroundColor, HoverBackgroundColor, Time); Color2=Blend($808080, HoverTextColor, Time); Blur= Time" Length="300" />
		</Effect>
		<Effect Name="HoverOut">
			<Function  Term="Color=Blend(BackgroundColor, HoverBackgroundColor, 1-Time); Color2=Blend($808080, HoverTextColor, 1-Time); Blur=1-Time" Length="600" />
		</Effect>
		<Effect Name="Visible">
			<Change Term="Color=BackgroundColor; Color2=$808080"/>
		</Effect>
		<Effect Name="EditOn">
			<Change Term="Edit=1; State = Limit(1.0*(MouseX()-X-12)/(Width-24), 0.0, 1.0)*Max"/>
		</Effect>
		<Effect Name="EditOff">
			<Change Term="Edit=0"/>
		</Effect>
		<Effect Name="Change">
			<Change Term="State = Limit(State+MouseWheel(),0,Max)"/>
		</Effect>
		
		<EventArea>
			<Event Type="MouseUp" Effect="EditOff" />
			<Event Condition="And(Edit, State != Limit(1.0*(MouseX()-X-12)/(Width-24), 0.0, 1.0)*Max)" Type="MouseMove" Effect="EditOn" Name="Change" />
		</EventArea>
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Condition="State!=Limit(State+MouseWheel(),0,Max)" Type="MouseWheel" Effect="Change" Name="Change" />
			<Event Type="MouseEnter" Design="Default" Effect="HoverIn"/>
			<Event Type="MouseLeave" Design="Default" Effect="HoverOut"/>
			<Event Type="MouseDown" Design="Default" Effect="EditOn" Name="Change"/>
		</EventArea>
		
		<Visible Design="Default" Effect="Visible" />
		<Disable Design="Disable" />
		
	</ControlType>
	
		<!-- Nachrichtenelement -->
	
	<ControlType Name="Message" Parameters="X.i, Y.i, Width.i, Height.i, Color.i=$FFFFFF, Animate.i=0">
		
		<Content Type="Controls" X="X" Y="Y+30" />
		<Evaluate Term="Dynamic = Time()/50" />
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y"           Width="Width+32" Height="Height+32" Transparency="128" Color="$000000" />
			<Layer Graphic="Button"    X="X-16" Y="Y-16"           Width="Width+32" Height="30+32" Transparency="128" Color="Color" />
			<Layer Graphic="Button"    X="X-16" Y="Y+Height-30-16" Width="Width+32" Height="30+32" Transparency="128" Color="Color" />
			<Layer Graphic="Button"       X="X" Y="Y"           Width="Width"    Height="30"        Transparency="192" Color="Color"   ClipX="Mod(Dynamic,32)"  ClipWidth="Width" />
			<Layer Graphic="Button"          X="X" Y="Y+30"        Width="Width"    Height="Height-30" Transparency="128" Color="$000000" />
			<Layer Graphic="Button"       X="X" Y="Y+Height-30" Width="Width"    Height="30"        Transparency="192" Color="Color"   ClipX="32+Mod(-Dynamic,32)" ClipWidth="Width" />
		</Design>
		
		<Visible Design="Default" />
		
	</ControlType>
	
	<!-- Listenelement -->
	
	<ControlType Name="List" Parameters="X.i, Y.i, Width.i, Height.i" Variables="State.i, Scroll.i, Edit.i, Items.i, Color.i">
		
		<Content Type="Items" Parameters="Text.s" Variables="ItemY.i, ItemWidth.i, Color.i, Blur.f" >
			
			<Evaluate Term="ItemY = Y + (Item-Scroll)*30 + 5; ItemWidth = Width - 12 - 27" />
			<Condition Term="And(ItemY-Y >= 5, Height >= ItemY-Y+35)" />
			
			<Design Name="Default" >
				<Layer Condition="Item==State" Graphic="Button" X="X+6" Y="ItemY" Width="ItemWidth" Height="28" Transparency="128" Color="BackgroundColor" />
				<Layer Typeface="tahoma" X="X+15" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="150" Color="Color" />
				<Layer Condition="Blur>0.0" Typeface="Texttitel40" X="X+15-(1-Blur)*5" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="Blur*255" Color="Color" />
				<Layer Condition="Blur>0.0" Typeface="Texttitel40" X="X+15+(1-Blur)*15" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="Blur*255" Color="Color" />
			</Design>
			
			<Design Name="Hover" >
				<Layer Condition="Item==State" Graphic="Button" X="X+6" Y="ItemY" Width="ItemWidth" Height="28" Transparency="255" Color="BackgroundColor" />
				<Layer Typeface="tahoma" X="X+15" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="255" Color="Color" />
				<Layer Condition="Blur>0.0" Typeface="Texttitel40" X="X+15-(1-Blur)*5" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="Blur*255" Color="Color" />
				<Layer Condition="Blur>0.0" Typeface="Texttitel40" X="X+15+(1-Blur)*15" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="Blur*255" Color="Color" />
			</Design> 
			
			
			<Design Name="Disable" >
				<Layer Condition="Item==State" Graphic="Button" X="X+6" Y="ItemY" Width="ItemWidth" Height="28" Transparency="32" Color="BackgroundColor" />
				<Layer Typeface="tahoma" X="X+15" Y="ItemY+14" AlignV="0.5" Text="Text" Transparency="64" Color="TextColor" />
			</Design>
			
			<Effect Name="Visible">
				<Change Term="Color=TextColor; Blur=0.0"/>
			</Effect>
			<Effect Name="HoverIn">
				<Sound Sound="Mouseover2" />
			</Effect>
			
			<Effect Name="Down">
				<Change Term="State = Item"/>
			</Effect>
			
			<EventArea X="X+6" Y="ItemY" Width="ItemWidth" Height="28" >
				<Event Type="MouseEnter" Design="Hover"  Effect="HoverIn"/>
				<Event Type="MouseLeave" Design="Default"  />
				<Event Type="MouseUp" Design="Default" />
				<Event Type="MouseDown" Effect="Down" />
			</EventArea>
		
			<Visible Design="Default" Effect="Visible" />
			<Disable Design="Disable" />
			<Enable Design="Default" />
			
		</Content>
		
		
		<Evaluate Term="Items.i = CountItems(); Items = If(0>=Items,1,Items); Laber.i = Limit((Height-10)*(Height-10)/30/Items,25,Height-10)" />
		
		<Design Name="Default" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="128" Color="Color" />
			<Layer Graphic="Button" X="X+Width-30" Y="Y+5" Width="25" Height="Height-100" Transparency="128" Color="$181818" />
			<Layer Graphic="Button" X="X+Width-30" Y="Y+5+(Height-100)*Scroll/Items" Width="25" Height="Laber" Transparency="128" Color="If(Edit,HoverBackgroundColor,$404040)" />
		</Design>
		
		<Design Name="Disable" >
			<Layer Graphic="Button" X="X" Y="Y" Width="Width" Height="Height" Transparency="32" Color="$404040" />
		</Design>
			
		<Effect Name="Change">
			<Change Term="Scroll = Limit(Scroll-MouseWheel(),0,CountItems()-(Height-10)/30)"/>
		</Effect>
			
		<Effect Name="Visible">
			<Change Term="Color=BackgroundColor"/>
		</Effect>
		<Effect Name="HoverIn">
			<Function Term="Color=Blend(BackgroundColor, HoverBackgroundColor, Time)" Length="300" />
		</Effect>
		<Effect Name="HoverOut">
			<Function  Term="Color=Blend(BackgroundColor, HoverBackgroundColor, 1-Time)" Length="600" />
		</Effect>
		<Effect Name="EditOn">
			<Change Term="Edit=1; Scroll = Limit(CountItems()*(MouseY()-Y-Laber/2)/(Height-10),0,CountItems()-(Height-10)/30)"/>
		</Effect>
		<Effect Name="EditOff">
			<Change Term="Edit=0"/>
		</Effect>
		<Effect Name="Edit">
			<Change Term="If(Edit, Scroll = Limit(CountItems()*(MouseY()-Y-Laber/2)/(Height-10),0,CountItems()-(Height-10)/30), 0)"/>
		</Effect>
		
		<EventArea>
			<Event Type="MouseUp" Effect="EditOff" />
			<Event Condition="Edit" Type="MouseMove" Effect="Edit" />
		</EventArea>
		
		<EventArea X="X" Y="Y" Width="Width" Height="Height" >
			<Event Type="MouseWheel" Effect="Change" />
			<Event Type="MouseEnter" Effect="HoverIn" />
			<Event Type="MouseLeave" Effect="HoverOut" />
		</EventArea>
		
		<EventArea X="X+Width-30" Y="Y+5" Width="25" Height="Height-10" >
			<Event Type="MouseDown" Effect="EditOn" />
		</EventArea>
		
		<Visible Design="Default" Effect="Visible"/>
		<Disable Design="Disable" />
		<Enable Design="Default" />
		
	</ControlType>
	
</GraphicalUserInterface>