
<GraphicalUserInterface>
	<Resources Directory=".\" Variables="
		TextColor.i = $FFFFFF; HoverTextColor.i = $FFFFFF;
		BackgroundColor.i = $B69500; HoverBackgroundColor.i = $FFFFFF;
		Dynamic.i = 0, Volume.i = 100" >
		
		<!-- RGB > $BBGGRR-->
		
		<!-- Grafiken-->
		<Graphic Name="Button"       File="button_normal.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" />
		
		<!-- Sounds -->	
	</Resources>

	<!-- 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" />
			<Event Type="MouseDoubleClick" Name="DoubleClick" 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+Transparencyadd" 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+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+Transparencyadd" 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+Transparencyadd" 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="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
		</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" />
			<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="Button" 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="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="TextHover" 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="Text" X="X+Width/2" Y="Y+Height/2" AlignH="0.5" AlignV="0.5" Text="Text" Transparency="255" Color="TextColor" />
		</Design>
		
		

		<Effect Name="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
		</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" />
			<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="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
		</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" />
    		<Event Type="MouseUp" Name="Click" Design="Default" Effect="ChangeState" />			
			<Event Type="MouseDoubleClick" Name="DoubleClick" Design="Default" />
		</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="MoveSchein">			
			<Function Term="T = Sin(Pi*Time)*255"  Length="1000" />			
		</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" />
    		<Event Type="MouseUp" Name="Click" Design="Default" Effect="ChangeState" />			
			<Event Type="MouseDoubleClick" Name="DoubleClick" Design="Default" />
		</EventArea>
		
		<Visible Design="Default"  />
		<Disable Design="Disable" />
		<Enable Design="Default" />
		
	</ControlType>
		
</GraphicalUserInterface>


