home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
audio-video
/
sonique
/
s2beta_103_install.exe
/
a6_file
/
index.mml
< prev
next >
Wrap
Text File
|
2003-12-19
|
20KB
|
574 lines
<?mml version="0.6" ?>
<mml>
<interface
unique_name ="teamsonique/development_orange_skin/alpha"
cosmetic_name ="Development Skin"
languages ="english,chinese"
author ="team sonique"
url ="http://www.sonique.com/"
url_title ="Visit Sonique.com"
>
<exports>
<sonique2_frame name="devskin" window="devwin" thumb_120="devskin.psd|thumb_120" thumb_60="devskin.psd|thumb_60" />
</exports>
<rect name="mainwindow"> devskin.psd|windowshape </rect>
<point name="mainwindow"> devskin.psd|windowshape </point>
<rect name="displaywindow"> devskin.psd|displayshape </rect>
<rect name="inner_resizerect"> devskin.psd|inner_resizerect </rect>
<point name="mycenter"> .5,.5 </point>
<color name="coolred"> 0xFFFF0000 </color>
<color name="red"> coolred </color>
<color name="blue"> 0xFF0000FF </color>
<palette name="chrome">
<cp x="0.0" value="0x8000FFFF" />
<cp x="0.5" value="0x80FFFFFF" />
<cp x="1.0" value="0x80FF0000" />
</palette>
<ImageStyle name ="nip_button">
<raster source ="devskin.psd|out_dimple"
alignment ="entire"
blendmode ="ps_normal"
source_offset ="devskin.psd|out_dimple @ devskin.psd|windowshape"
/>
<raster source ="devskin.psd|unlit_button"
source_offset ="devskin.psd|unlit_button @ devskin.psd|windowshape"
alignment ="entire"
blendmode ="ps_normal"
/>
<raster state ="HIT"
source ="devskin.psd|in_dimple"
source_offset ="devskin.psd|in_dimple @ devskin.psd|windowshape"
alignment ="entire"
blendmode ="ps_normal"
/>
<raster state ="HIT"
source ="devskin.psd|lit_button"
source_offset ="devskin.psd|lit_button @ devskin.psd|windowshape"
alignment ="entire"
blendmode ="ps_normal"
/>
</ImageStyle>
<ImageStyle name="nip_button_funky">
<blend_curve name="nip_curve" spline="false" >
<cp x="0.0" value="0.0" />
<cp x="0.6" value="0.0" />
<cp x="1.0" value="1.0" />
</blend_curve>
<blend_curve name="dimple_curve_out" spline="true" >
<cp x="0.0" value="0.0" />
<cp x="0.5" value="0.0" />
<cp x="1.0" value="1.0" />
</blend_curve>
<blend_curve name="dimple_curve_in" spline="true" >
<cp x="0.0" value="0.0" />
<cp x="0.5" value="0.0" />
<cp x="0.8" value="1.0" />
<cp x="1.0" value="0.5" />
</blend_curve>
<raster blend_curve ="dimple_curve_out"
source ="devskin.psd|out_dimple"
source_offset ="devskin.psd|out_dimple @ devskin.psd|windowshape"
blendmode ="ps_normal"
alignment ="entire"
/>
<raster state ="HIT"
blend_curve ="dimple_curve_out"
source ="devskin.psd|in_dimple"
source_offset ="devskin.psd|in_dimple @ devskin.psd|windowshape"
blendmode ="ps_normal"
alignment ="entire"
/>
<raster source ="devskin.psd|unlit_button"
source_offset ="devskin.psd|unlit_button @ devskin.psd|windowshape"
blendmode ="ps_normal"
alignment ="entire"
opacity =".8"
/>
<raster state ="HIT"
blend_curve ="nip_curve"
invert_blend ="true"
source ="devskin.psd|unlit_button"
source_offset ="devskin.psd|unlit_button @ devskin.psd|windowshape"
blendmode ="ps_normal"
alignment ="entire"
opacity =".8"
/>
<raster state ="HIT"
blend_curve ="nip_curve"
source ="devskin.psd|lit_button"
source_offset ="devskin.psd|lit_button @ devskin.psd|windowshape"
blendmode ="ps_normal"
alignment ="entire"
/>
</ImageStyle>
<ImageStyle name="OrangeMood">
<color_fill
color ="#333333"
offset ="0,0,0,0"
alignment ="entire"
/>
</ImageStyle>
<ImageStyle name="dropborder" >
<raster
source ="devskin.psd|rect_bevel"
blendmode ="ps_normal"
alignment ="entire"
fillmode ="resize"
inner_rect ="devskin.psd|rect_inner"
outer_rect ="devskin.psd|rect_bevel"
/>
</ImageStyle>
<window name="test" >
<imagestyle name="background">
<include source="OrangeMood" />
</imagestyle>
</window>
<!-- Window Bits!!!!!!! -->
<window name="devwin" transparent="false" min_size="120,150" default_size="435,435" max_size="1024,1024" shape="frame" hitstyle="frame" >
<dock_point type="master" name="Frame_UL" alignment="upperleft" />
<dock_point type="master" name="Frame_UR" alignment="upperright" />
<dock_point type="master" name="Frame_LL" alignment="lowerleft" />
<dock_point type="master" name="Frame_LR" alignment="lowerright" />
<dock_point type="slave" name="Frame_UR" alignment="upperleft" />
<dock_point type="slave" name="MonitorUL" alignment="upperleft" />
<dock_point type="slave" name="MonitorUR" alignment="upperright" />
<dock_point type="slave" name="MonitorLL" alignment="lowerleft" />
<dock_point type="slave" name="MonitorLR" alignment="lowerright" />
<Shape name="frame" >
<shape_raster
source ="devskin.psd|windowshape"
alignment ="0,0,1,1"
inner_rect ="inner_resizerect"
outer_rect ="mainwindow"
fillmode ="resize"
/>
</Shape>
<ImageStyle name="background">
<include source="OrangeMood" />
<raster
language ="english"
source ="devskin.psd|logo"
offset ="devskin.psd|logo @ devskin.psd|windowshape"
alignment ="lowerleft"
blendmode ="ps_normal"
/>
<raster
language ="chinese"
source ="devskin.psd|logo_chinese"
offset ="devskin.psd|logo_chinese @ devskin.psd|windowshape"
alignment ="lowerleft"
blendmode ="ps_normal"
/>
<raster
source ="devskin.psd|resizehandle_image"
offset ="devskin.psd|resizehandle_image @ mainwindow"
alignment ="lowerright"
blendmode ="ps_normal"
/>
<raster
source ="devskin.psd|bevel"
fillmode ="resize"
blendmode ="ps_normal"
inner_rect ="inner_resizerect"
outer_rect ="mainwindow"
offset ="0,0,0,0"
alignment ="0,0,1,1"
source_offset ="devskin.psd|bevel @ mainwindow"
/>
</ImageStyle>
<HitStyle name="frame" default_hitcode="DRAG" >
<!-- resize handle -->
<hitcode type="BOTTOMRIGHT">
<shape>
<shape_raster source = "devskin.psd|resizehandle_shape" alignment = "lowerright"
offset ="devskin.psd|resizehandle_shape @ mainwindow" />
</shape>
</hitcode>
<!-- left edge -->
<hitcode type="LEFT"><shape><shape_rect alignment="0,0,0,1" offset="0,0,5,0" /></shape></hitcode>
<!-- bottom edge -->
<hitcode type="BOTTOM"><shape><shape_rect alignment="0,1,1,1" offset="0,-5,0,0" /></shape></hitcode>
<!-- top edge -->
<hitcode type="TOP"><shape><shape_rect alignment="0,0,1,0" offset="0,0,0,5" /></shape></hitcode>
<!-- right edge -->
<hitcode type="RIGHT"><shape><shape_rect alignment="1,0,1,1" offset="-5,0,0,0" /></shape></hitcode>
</HitStyle>
<script name="OnInit">
:sonique.InterfacePrefsCreateSection("main");
$size = :sonique.InterfacePrefsGetStringArray("main", "size");
if ($size.IsArray())
{
if ( $size[0] gt 0 and $size[1] gt 0 )
{
SetSize($size, 0, 1000, "linear_accel");
}
}
sizeState = 0;
$location = :sonique.InterfacePrefsGetStringArray("main", "location");
if ($location.IsArray())
{
$dim = :app.GetScreenDimensions();
if ( $location[0] gte $dim[0]["left"] and $location[1] gte $dim[0]["top"] )
{
if ( $location[0] lt $dim[0]["right"] and $location[1] lt $dim[0]["bottom"] )
{
SetLocation($location);
}
}
}
if( :sonique.InterfacePrefsGetString("main", "alwaysontop") )
{ SetAlwaysOnTop( 1 ); }
else
{ SetAlwaysOnTop( 0 ); }
$section = "sonique/gui/slate/hotkeys";
:sonique.prefs.CreateSection($section);
alwaysontop = :sonique.prefs.GetString($section, "alwaysontop");
if (alwaysontop) { :app.RegisterWindowKeyScript( alwaysontop, "SetAlwaysOnTop(!GetAlwaysOnTop());", this ); }
</script>
<script name="OnDestroy">
$size = GetSize();
:sonique.InterfacePrefsSetStringArray("main", "size", $size);
$location = GetLocation();
:sonique.InterfacePrefsSetStringArray("main", "location", $location );
:sonique.InterfacePrefsSetString("main", "alwaysontop", GetAlwaysOnTop());
if (alwaysontop) { :app.UnregisterWindowKeyScript( alwaysontop, "SetAlwaysOnTop(!GetAlwaysOnTop());", this ); }
</script>
<script name="OnDoubleClick">
// thanks travelian...
if (sizeState == 1) {
SetSize(size, 0, 1000, "linear_accel");
sizeState = 0;
}
else {
size = GetSize();
if (size != {435,435}) {
SetSize({435,435}, 0, 1000, "linear_accel");
sizeState = 1;
}
}
</script>
<window name="drawer" transparent="false" alignment="0,1,1,1" offset="6 -145 -6 -20" belowparent="true" popout="true" hitstyle="DRAG" >
<ImageStyle name="background">
<include source="OrangeMood" />
<include source="dropborder" />
</ImageStyle>
<script name="_movein">
SetOffset( {6, "-145", "-6", "-20"}, "0", "1000", "linear_decel" );
OnClick = "_moveout()";
return(1);
</script>
<script name="_moveout">
SetOffset( {6, "-20", "-6", 105}, "0", "1000", "linear_decel" );
OnClick = "_movein()";
</script>
<script name="OnClick">
_moveout();
</script>
<window name="eq" type="Sonique2_equalizer" alignment="entire" offset="5,25,-35,-5" hitstyle="ACTIVE" >
<Script name="GetNumBands">
:sonique.players.default.equalizer.GetNumBands()
</Script>
<Script name="GetBandFreqString">
$eqdata = :sonique.players.default.equalizer.GetEQData();
$val = $eqdata[$params[0]]["frequency"];
if( $val > 9999 )
{
$res = :math.Truncate($val/1000) | "KHz"
} else {
$res = :math.Truncate($val)
}
$res
</Script>
<Script name="GetBandGain">
:sonique.players.default.equalizer.GetBandGain($params[0]);
</Script>
<Script name="SetBandGain">
:sonique.players.default.equalizer.SetBandGain($params[0], $params[1]);
</Script>
<Script name="OnInit">
:sonique.players.default.equalizer.RegisterChangeCallback("", "if( $params[1] ) { UpdateDisplay(); } else { UpdateBands(); } :sonique.players.default.SendFilterMessage(\"equalizerReloadSettings\");", this);
</Script>
<Script name="OnDestroy">
:sonique.players.default.equalizer.UnregisterChangeCallback("", this);
</Script>
<ImageStyle name="background">
<color_fill color="0xFF000000" alignment="entire" />
</ImageStyle>
</window>
<?macrodef animation
<imagestyle name="background" >
<raster
source = "devskin.psd|spin_knob"
state = "hit,hover,normal"
num_frames = "36"
blendmode = "PS_NORMAL"
blend_frames ="true"
/>
</imagestyle>
?>
<window name="pitchknob" type="spinbutton" alignment="1,0,1,0" offset="-30,30,-15,45" transparent="true" hitstyle="ACTIVE" >
<?macroins animation ?>
<property
hover="true"
hoverhint="Pitch"
radial="true"
radialstartangle="45"
radialstopangle="315" />
<script name="OnInit">
:sonique.players.default.pitchampbal.RegisterChangeCallback("", "UpdateKnob()", this);
UpdateKnob();
</script>
<script name="OnDestroy">
:sonique.players.default.pitchampbal.UnregisterChangeCallback("", this);
</script>
<script name="UpdateKnob">
SetRealPos( (:math.Log( 2, :sonique.players.default.pitchampbal.GetPitch() )+3)/6 );
</script>
<script name="OnPosChange">
$val = :math.Power( 2, $params[0]["real"]*6-3 );
:sonique.players.default.pitchampbal.SetPitch( $val );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
:sonique.Status("Setting pitch:" | :math.Truncate($val*100) | "%");
</script>
<script name="OnDoubleClick">
:sonique.players.default.pitchampbal.SetPitch( 1.0 );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
:sonique.Status("Setting pitch: 100%");
</script>
</window>
<window name="ampknob" type="spinbutton" alignment="1,0,1,0" offset="-30,50,-15,65" transparent="true" hitstyle="ACTIVE" >
<?macroins animation ?>
<property
hover="true"
hoverhint="Amplification"
radial="true"
radialstartangle="45"
radialstopangle="315" />
<script name="OnInit">
:sonique.players.default.pitchampbal.RegisterChangeCallback("","UpdateKnob()", this);
UpdateKnob();
</script>
<script name="OnDestroy">
:sonique.players.default.pitchampbal.UnregisterChangeCallback("", this);
</script>
<script name="UpdateKnob">
SetRealPos( (:math.Log( 2, :sonique.players.default.pitchampbal.GetAmplification() )+3)/6 );
</script>
<script name="OnPosChange">
$val = :math.Power( 2, $params[0]["real"]*6-3 );
:sonique.players.default.pitchampbal.SetAmplification( $val );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
:sonique.Status("Setting amplification: " | :math.Truncate($val*100) | "%");
</script>
<script name="OnDoubleClick">
:sonique.players.default.pitchampbal.SetAmplification( 1.0 );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
:sonique.Status("Setting amplification: 100%");
</script>
</window>
<window name="balknob" type="spinbutton" alignment="1,0,1,0" offset="-30,70,-15,85" transparent="true" hitstyle="ACTIVE" >
<?macroins animation ?>
<property
hover="true"
hoverhint="Balance"
radial="true"
radialstartangle="45"
radialstopangle="315" />
<script name="OnInit">
:sonique.players.default.pitchampbal.RegisterChangeCallback("", "UpdateKnob()", this);
UpdateKnob();
</script>
<script name="OnDestroy">
:sonique.players.default.pitchampbal.UnregisterChangeCallback("", this);
</script>
<script name="UpdateKnob">
SetRealPos( (:sonique.players.default.pitchampbal.GetBalance()+1)/2 );
</script>
<script name="OnPosChange">
$val = $params[0]["real"]*2-1;
:sonique.players.default.pitchampbal.SetBalance( $val );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
if( $val == 0 )
{
:sonique.Status("Setting balance: center");
} else {
:sonique.Status("Setting balance: " | :math.Truncate($val*100) | "%");
}
</script>
<script name="OnDoubleClick">
:sonique.players.default.pitchampbal.SetBalance( 0.0 );
:sonique.players.default.SendFilterMessage("PitchAmpBalReloadSettings");
:sonique.Status("Setting balance: center");
</script>
</window>
<window name="resetbutton" type="button" alignment="1,0,1,0" offset="-36,90,-10,110" transparent="true" hitstyle="ACTIVE">
<script name="OnClick">
:sonique.players.default.equalizer.Reset();
</script>
<Property hoverhint="Reset equalizer to flat"
default_delay = "150" />
<ImageStyle name="state0">
<include source="nip_button_funky"/>
</ImageStyle>
</window>
</window>
<window name="shadow" alignment="0,1,1,1" offset="devskin.psd|windowshape_shadow @ devskin.psd|windowshape" belowparent="true" popup="true" transparent="true">
<ImageStyle name="background">
<raster
source ="devskin.psd|windowshape_shadow"
blendmode ="ps_normal"
alignment ="entire"
fillmode ="resize"
inner_rect ="inner_resizerect"
outer_rect ="devskin.psd|windowshape_shadow"
/>
</ImageStyle>
</window>
<window
name ="slate_display"
type ="Sonique2_Display"
transparent ="false"
alignment ="entire"
offset ="devskin.psd|displayshape @ devskin.psd|windowshape"
shape ="displayShape"
hitstyle ="displayHitStyle"
>
<Shape name="displayShape" >
<shape_raster
source ="devskin.psd|displayshape"
alignment ="entire"
inner_rect ="inner_resizerect"
outer_rect ="displaywindow"
fillmode ="resize"
/>
</Shape>
<HitStyle name="displayHitStyle">
<hitcode type="INACTIVE" shape="displayShape" />
</HitStyle>
<script name="OnInit" >
DisplayWindow("SQ2_OnlineWindow");
</script>
</window>
<window name="b1" type="button" transparent="true" alignment="lowerleft" offset="141,-27,165,-2" hitstyle="ACTIVE|DRAG" >
<property hoverhint = "Previous track"
default_delay = "150" />
<script name="OnClick" >
:sonique.players.default.Previous();
</script>
<ImageStyle name="state0">
<include source="nip_button_funky"/>
</ImageStyle>
</window>
<window name="b2" type="button" transparent="true" alignment="lowerleft" offset="171,-27,195,-2" hitstyle="ACTIVE" >
<property hoverhint = "Next track"
default_delay = "150" />
<ImageStyle name="state0">
<include source="nip_button"/>
</ImageStyle>
<script name="OnClick" >
:sonique.players.default.Next();
</script>
</window>
<script name="LaunchPill"> :sonique.LaunchRemote("ians/orange/pill/1.0","Pill"); </script>
<window name="b3" type="button" transparent="true" alignment="lowerleft" offset="201,-27,225,-2" hitstyle="ACTIVE" >
<script name="OnClick" > drawer.OnClick(); </script>
<property hoverhint = "Equalizer drawer"
default_delay = "150" />
<ImageStyle name="state0">
<include source="nip_button"/>
</ImageStyle>
</window>
<window name="b4" type="button" transparent="true" alignment="lowerleft" offset="231,-27,255,-2" hitstyle="ACTIVE" >
<script name="_movein">
MoveTo({20, 18}) ;
OnClick= "_moveout()";
</script>
<script name="_moveout">
MoveTo({40, 48}) ;
OnClick = "_movein()";
</script>
<script name="OnClick">
<include source="LaunchPill" />
</script>
<property hoverhint = "Open Pill remote"
default_delay = "150" />
<ImageStyle name="state0">
<include source="nip_button_funky"/>
</ImageStyle>
</window>
<window type="button" transparent="true" alignment="upperright" offset="-18, 0, 0, 18" hitstyle="ACTIVE">
<script name="OnClick">
parent.DestroyWindow();
</script>
<property hoverhint = "Close this window"
default_delay = "150" />
<ImageStyle name="state0">
<color_fill alignment="entire" blendmode="ps_normal" color="0x60FFFFFF"/>
<text color="#0" justification="h_center|v_center|single_line_only" alignment="entire" offset="-8,0,0,8">X</text>
</ImageStyle>
</window>
<window type="button" transparent="true" alignment="upperright" offset="-28, 0, -18, 18" hitstyle="ACTIVE">
<script name="OnClick">
parent.MinimizeWindow(true);
</script>
<property hoverhint = "Minimize this window"
default_delay = "150" />
<ImageStyle name="state0">
<color_fill alignment="entire" blendmode="ps_normal" color="0x60FFFFFF"/>
<text color="#0" justification="h_center|v_center|single_line_only" alignment="entire" offset="1,0,0,4">_</text>
</ImageStyle>
</window>
</window>
</interface>
</mml>