<window name="volume"   
          type="fillbar"   
          offset="157,36,187,107"   
          hitstyle="active"   
          transparent=true   
     >  
          <imagestyle name="background">  
               <raster  
               source = "Main.psd|vsbg"  
               source_offset = "Main.psd|vsbg @ Main.psd|vsbg"  
               alignment="entire"  
               blendmode = "PS_NORMAL"  
               opacity = "1.0"  
               />  
          </imagestyle>  
          <imagestyle name="handle">  
               <raster  
               source = "Main.psd|vshandle"  
               source_offset = "Main.psd|vshandle @ Main.psd|vshandle"  
               alignment="entire"  
               blendmode = "PS_NORMAL"  
               opacity = "1.0"  
               />  
          </imagestyle>  
          <property orientation="bottom_to_top" relative=false   
          outer_handle_offset_rect=3,-12,26,17 />  

	<script name="OnPosChange">
		<?macroins volume name="a1" vol="GetRealPos()" ?>
		<?macroins volume name="b1" vol="GetRealPos()"?>
		<?macroins volume name="c1" vol="GetRealPos()"?>
		<?macroins volume name="d1" vol="GetRealPos()"?>
		<?macroins volume name="e1" vol="GetRealPos()"?>
		<?macroins volume name="f1" vol="GetRealPos()"?>
		<?macroins volume name="g1" vol="GetRealPos()"?>
		<?macroins volume name="as1" vol="GetRealPos()"?>
		<?macroins volume name="cs1" vol="GetRealPos()"?>
		<?macroins volume name="ds1" vol="GetRealPos()"?>
		<?macroins volume name="fs1" vol="GetRealPos()"?>
		<?macroins volume name="gs1" vol="GetRealPos()"?>
		<?macroins volume name="a2" vol="GetRealPos()"?>
		<?macroins volume name="b2" vol="GetRealPos()"?>
		<?macroins volume name="c2" vol="GetRealPos()"?>
		<?macroins volume name="d2" vol="GetRealPos()"?>
		<?macroins volume name="e2" vol="GetRealPos()"?>
		<?macroins volume name="f2" vol="GetRealPos()"?>
		<?macroins volume name="g2" vol="GetRealPos()"?>
		<?macroins volume name="as2" vol="GetRealPos()"?>
		<?macroins volume name="cs2" vol="GetRealPos()"?>
		<?macroins volume name="ds2" vol="GetRealPos()"?>
		<?macroins volume name="fs2" vol="GetRealPos()"?>
		<?macroins volume name="gs2" vol="GetRealPos()"?>
		<?macroins volume name="a3" vol="GetRealPos()"?>
		<?macroins volume name="b3" vol="GetRealPos()"?>
		<?macroins volume name="c3" vol="GetRealPos()"?>
		<?macroins volume name="d3" vol="GetRealPos()"?>
		<?macroins volume name="e3" vol="GetRealPos()"?>
		<?macroins volume name="f3" vol="GetRealPos()"?>
		<?macroins volume name="g3" vol="GetRealPos()"?>
		<?macroins volume name="as3" vol="GetRealPos()"?>
		<?macroins volume name="cs3" vol="GetRealPos()"?>
		<?macroins volume name="ds3" vol="GetRealPos()"?>
		<?macroins volume name="fs3" vol="GetRealPos()"?>
		<?macroins volume name="gs3" vol="GetRealPos()"?>
		<?macroins volume name="c4" vol="GetRealPos()"?>
	</script>
	<script name="OnInit">
		:console.Echo(GetOffset()[0]);
		:console.Echo(GetOffset()[1]);
		:console.Echo(GetOffset()[2]);
		:console.Echo(GetOffset()[3]);
		SetRealPos( :sonique.players.default.GetVolume() );
		<?macroins volume name="a1" vol="GetRealPos()" ?>
		<?macroins volume name="b1" vol="GetRealPos()"?>
		<?macroins volume name="c1" vol="GetRealPos()"?>
		<?macroins volume name="d1" vol="GetRealPos()"?>
		<?macroins volume name="e1" vol="GetRealPos()"?>
		<?macroins volume name="f1" vol="GetRealPos()"?>
		<?macroins volume name="g1" vol="GetRealPos()"?>
		<?macroins volume name="as1" vol="GetRealPos()"?>
		<?macroins volume name="cs1" vol="GetRealPos()"?>
		<?macroins volume name="ds1" vol="GetRealPos()"?>
		<?macroins volume name="fs1" vol="GetRealPos()"?>
		<?macroins volume name="gs1" vol="GetRealPos()"?>
		<?macroins volume name="a2" vol="GetRealPos()"?>
		<?macroins volume name="b2" vol="GetRealPos()"?>
		<?macroins volume name="c2" vol="GetRealPos()"?>
		<?macroins volume name="d2" vol="GetRealPos()"?>
		<?macroins volume name="e2" vol="GetRealPos()"?>
		<?macroins volume name="f2" vol="GetRealPos()"?>
		<?macroins volume name="g2" vol="GetRealPos()"?>
		<?macroins volume name="as2" vol="GetRealPos()"?>
		<?macroins volume name="cs2" vol="GetRealPos()"?>
		<?macroins volume name="ds2" vol="GetRealPos()"?>
		<?macroins volume name="fs2" vol="GetRealPos()"?>
		<?macroins volume name="gs2" vol="GetRealPos()"?>
		<?macroins volume name="a3" vol="GetRealPos()"?>
		<?macroins volume name="b3" vol="GetRealPos()"?>
		<?macroins volume name="c3" vol="GetRealPos()"?>
		<?macroins volume name="d3" vol="GetRealPos()"?>
		<?macroins volume name="e3" vol="GetRealPos()"?>
		<?macroins volume name="f3" vol="GetRealPos()"?>
		<?macroins volume name="g3" vol="GetRealPos()"?>
		<?macroins volume name="as3" vol="GetRealPos()"?>
		<?macroins volume name="cs3" vol="GetRealPos()"?>
		<?macroins volume name="ds3" vol="GetRealPos()"?>
		<?macroins volume name="fs3" vol="GetRealPos()"?>
		<?macroins volume name="gs3" vol="GetRealPos()"?>
		<?macroins volume name="c4" vol="GetRealPos()"?>
	</script>	
     </window>