home *** CD-ROM | disk | FTP | other *** search
- <?mml version="0.5" ?>
- <mml>
- <interface cosmetic_name="orange pill" unique_name="ians/orange/pill/1.0">
- <exports>
- <remote name="Pill" window="pill" />
- </exports>
- <FontStyle name="pill_display_font" face="Arial Bold" size="9" style="normal" />
- <FontStyle name="track_display_font" type="raster" source="pill.psd|track_display_font" monochrome="true">
- <glyphlist>0123456789</glyphlist>
- </FontStyle>
- <FontStyle name="time_display_font" type="raster" source="pill.psd|time_display_font" monochrome="true">
- <glyphlist>0123456789:.e001;e000;e002;</glyphlist>
- </FontStyle>
-
- <?macrodef "btnImageStyle3State"
- <ImageStyle name="$(name)">
- <raster
- source ="pill.psd|$(norm)"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- source_offset ="pill.psd|$(norm) @ pill.psd|$(base)"
-
- />
- <raster
- state ="HIT"
- source ="pill.psd|$(hit)"
- source_offset ="pill.psd|$(hit) @ pill.psd|$(base)"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
-
- />
- <raster
- state ="Hover"
- source ="pill.psd|$(hover)"
- source_offset ="pill.psd|$(hover) @ pill.psd|$(base)"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- ?>
-
- <?macrodef "btnImageStyle2State"
- <ImageStyle name="$(name)">
- <raster
- source ="pill.psd|$(norm)"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- source_offset ="pill.psd|$(norm) @ pill.psd|$(base)"
-
- />
- <raster
- state ="HIT"
- source ="pill.psd|$(hit)"
- source_offset ="pill.psd|$(hit) @ pill.psd|$(base)"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- ?>
- <!-- This block should replace the next, in order to use OS transparency. It's disabled because of our 95 & 98 users. -->
- <!-- <window name="pill" default_size = "pill.psd" transparent="true" hitstyle="pillhitstyle">
- <ImageStyle name="background">
- <raster
- source = "pill.psd|shadow"
- source_offset = "pill.psd|shadow"
- blendmode = "BM_PIXELCOPY"
- alignment = "entire"
- />
- <raster
- source = "pill.psd|chassis"
- source_offset = "pill.psd|chassis"
- alignment = "entire"
- blendmode = "ps_normal"
- />
-
- </ImageStyle>
- -->
-
- <!-- Without transparency use this: -->
- <window name="pill" default_size = "pill.psd" hitstyle="pillhitstyle" shape="pillshape">
- <shape name="pillshape">
- <shape_raster source="pill.psd|chassis" source_offset="pill.psd|chassis"/>
- </shape>
- <ImageStyle name="background">
- <raster source = "pill.psd|chassis" source_offset="pill.psd|chassis" />
- </ImageStyle>
-
- <!-- End of non-transparency specific block -->
-
- <dock_point type="slave" name="MonitorUL" alignment="upperleft" offset="6,0" />
- <dock_point type="slave" name="MonitorUR" alignment="upperright" offset="-8,0"/>
- <dock_point type="slave" name="MonitorLL" alignment="lowerleft" offset="6,-10" />
- <dock_point type="slave" name="MonitorLR" alignment="lowerright" offset="-8,-10"/>
-
- <hitstyle name="pillhitstyle" default_hitcode="DRAG" >
- <hitcode type="INACTIVE">
- <shape>
- <shape_raster
- source ="pill.psd|door_region"
- offset ="pill.psd|door_region @ pill.psd"
- />
- </shape>
- </hitcode>
- </hitstyle>
-
-
- <script name="OnVolumeChanged">
- volume.SetRealPos( :sonique.players.default.GetVolume() );
- </script>
-
- <script name="OnInit">
- SetDesiredFPS(45);
- :sonique.players.default.RegisterCallback("VolumeChanged","OnVolumeChanged()", this);
- OnVolumeChanged();
- </script>
-
- <script name="OpenDoor" >
- door_frame.door_open();
- OpenDoor="";
- </script>
-
- <window name="eep" type="Sonique2_StatusBar" offset="pill.psd|status_bg" shape="eepshape" >
- <shape name="eepshape" >
- <shape_raster source="pill.psd|status_bg" alignment="entire" />
- </shape>
- <ImageStyle name="background">
- <color_fill color = "0xFF3FBBEF" alignment = "entire" />
- </ImageStyle>
-
- <ImageStyle name="progress_empty">
- <color_fill color="#7BCBFB" />
- </ImageStyle>
- <ImageStyle name="progress_fill">
- <color_fill color="#0074BB" />
- </ImageStyle>
-
- <property
- font_style="pill_display_font"
- font_color="0xFF00537B"
- font_justification="trim_pixels"
- scroll_mode="horizontal,pingpong"
- scroll_speed="100"
- pause_delay="500"
- whitespace="0"
- rect_status_offset="5,0,-15,0"
- rect_progress_offset="8,3,-8,-3"
- />
- </window>
- <window name="track_display" transparent="true" type="Sonique2_TrackDisplay" offset="pill.psd|track_box" >
- <property font_style="track_display_font" font_color="0xFF00537B" font_justification="v_center|right" hoverhint="Current track number" />
- </window>
- <window name="time_display" transparent="true" type="Sonique2_TimeDisplay" offset="pill.psd|time_box" hitstyle="ACTIVE" >
- <ImageStyle name="background"></ImageStyle>
- <property font_style="time_display_font" font_color="0xFFC2EBFE" font_justification="v_center" updateinterval="100" hovertext="true" />
- </window>
-
- <window name="progress" transparent="true" type="Sonique2_Progress" offset="pill.psd|progress_bar" hitstyle="ACTIVE" >
- <ImageStyle name="background">
- <raster
- source ="pill.psd|progress_bar_background"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- <ImageStyle name="barempty">
- <color_fill color="0xFF0179B3"
- blendmode = "COPY|RGB"
- alignment = "entire"
- />
- </ImageStyle>
- <ImageStyle name="barfilled">
- <color_fill color="0xFF00537B"
- blendmode = "COPY|RGB"
- alignment = "entire"
- />
- </ImageStyle>
- <Property type="LoadProgress"
- orientation="left_to_right"
- bar_offset_rect="2,2,-2,-2"
- bar_align_rect ="0,0,1,1" />
- </window>
- <window name="progress_handle" transparent="true" type="Sonique2_Progress" offset="pill.psd|progress_bar" hitstyle="ACTIVE" >
- <ImageStyle name="handle">
- <raster
- source ="pill.psd|progress_bar_handle"
- alignment ="entire"
- blendmode ="COPY|RGB"
- />
- </ImageStyle>
- <Property type="SongProgress"
- orientation="left_to_right"
- bar_offset_rect="1,0,-1,0"
- bar_align_rect ="0,0,1,1"
- outer_handle_offset_rect="-3,1,3,6"
- outer_handle_align_rect="0,0,0,0"
- hovertext="true" />
- </window>
- <window name="volume" transparent="true" type="fillbar" offset="pill.psd|volume_mask" hitstyle="ACTIVE" >
- <script name="OnPosChange">
- :sonique.players.default.SetVolume( GetRealPos() );
- </script>
-
- <ImageStyle name="barfilled">
- <raster
- source ="pill.psd|volume_bg"
- alignment ="upperleft"
- offset ="pill.psd|volume_mask@pill.psd|volume_mask"
- blendmode ="COPY|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- <ImageStyle name="barempty">
- <raster
- source ="pill.psd|volume_fg"
- alignment ="lowerleft"
- offset ="pill.psd|volume_mask@pill.psd|volume_mask"
- blendmode ="COPY|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- <Property orientation="bottom_to_top" relative="true" />
- </window>
-
- <?macrodef btn_start
- <window name="$(name)" type="button" transparent="true" offset = "pill.psd|$(name)a" hitstyle="ACTIVE" >
- <property default_delay = "150" hover="true" hoverhint="$(hint)" />
- <?macroins "btnImageStyle3State" name="state0" norm="$(name)a" hit="$(name)b" hover="$(name)ha" base="$(name)a" ?$>
- ?>
-
- <?macrodef cornerbtn_start
- <window name="$(name)" type="button" transparent="true" offset = "pill.psd|$(name)a" hitstyle="ACTIVE" >
- <property default_delay= "150" hoverhint="$(hint)" />
- <?macroins "btnImageStyle2State" name="state0" norm="$(name)a" hit="$(name)b" base="$(name)a" ?$>
- ?>
-
- <?macrodef btn_end </window> ?>
-
-
- <?macroins btn_start name="b1" hint="Previous Track" ?>
- <script name="OnClick" > :sonique.players.default.Previous(); </script>
- <?macroins btn_end ?>
- <?macroins btn_start name="b2" hint="Play" ?>
- <script name="OnClick" > :sonique.players.default.Play(); </script>
- <?macroins btn_end ?>
- <?macroins btn_start name="b3" hint="Stop" ?>
- <script name="OnClick" > :sonique.players.default.Stop(); </script>
- <?macroins btn_end ?>
- <?macroins btn_start name="b4" hint="Pause" ?>
- <script name="OnClick" > :sonique.players.default.TogglePause(); </script>
- <?macroins btn_end ?>
- <?macroins btn_start name="b5" hint="Next track" ?>
- <script name="OnClick" >
- :sonique.players.default.Next();
- </script>
- <?macroins btn_end ?>
- <?macroins btn_start name="b6" hint="Cycle through repeat modes" ?>
- <script name="OnClick" >
- $currentstate = :sonique.players.default.GetRepeat();
- :sonique.players.default.SetRepeat( { off: "one", one: "all", all: "off" }[$currentstate] );
- </script>
- <script name="OnInit">
- :sonique.players.default.RegisterCallback("RepeatChanged","OnRepeatChange()", this);
- OnRepeatChange();
- </script>
- <script name="OnRepeatChange">
- SetButtonState( { off: 0, one: 1, all: 2 }[:sonique.players.default.GetRepeat()] );
- </script>
- <?macroins "btnImageStyle3State" name="state1" norm="b6a_loop1" hit="b6b" hover="b6ha_loop1" base="b6a" $?>
- <?macroins "btnImageStyle3State" name="state2" norm="b6a_loopall" hit="b6b" hover="b6ha_loopall" base="b6a" $?>
- <?macroins btn_end ?>
-
- <?macroins btn_start name="b7" hint="Toggle shuffle" ?>
- <script name="OnInit">
- :sonique.players.default.RegisterCallback("ShuffleChanged","OnShuffleChange()", this);
- OnShuffleChange();
- </script>
- <script name="OnClick">
- $currentstate = :sonique.players.default.GetShuffle();
- :sonique.players.default.SetShuffle( { "false": "true", "true": "false" }[$currentstate] );
- </script>
- <script name="OnShuffleChange">
- SetButtonState( { "false": 0, "true": 1 }[:sonique.players.default.GetShuffle()] );
- </script>
- <?macroins "btnImageStyle3State" name="state1" norm="b7a_shuffleon" hit="b7b" hover="b7ha_shuffleon" base="b7a" $?>
- <?macroins btn_end ?>
-
- <?macroins btn_start name="b8" hint="Open audio" ?>
- <script name="OnClick">
- :sonique.OpenFiles();
- </script>
- <?macroins btn_end ?>
- <?macroins cornerbtn_start name="b9" hint="Minimize window" ?>
- <script name="OnClick">
- parent.MinimizeWindow(1);
- </script>
- <?macroins btn_end ?>
- <?macroins cornerbtn_start name="b10" hint="Close window" ?>
- <script name="OnClick" >
- parent.DestroyWindow();
- </script>
- <?macroins btn_end ?>
-
-
-
-
- <window name="door_frame" transparent="true" alignment="upperleft" offset="pill.psd|door_region @ pill.psd" shape="doorshape" hitstyle="NONE" >
- <shape name="doorshape" > <shape_raster alignment="entire" source="pill.psd|door_region" threshold="255" /> </shape>
-
- <script name="OnInit">
- left_door_pos = left_door.GetOffset();
- left_door_shadow_pos = left_door_shadow.GetOffset();
- right_door_pos = right_door.GetOffset();
- </script>
- <script name="door_open">
- left_door.SetOffset({-125,0,-125,0}+left_door_pos,0,1200,"linear_accel");
- left_door_shadow.SetOffset({-125,0,-125,0}+left_door_shadow_pos,0,1200,"linear_accel");
- right_door.SetOffset({125,0,125,0}+right_door_pos,0,1200,"linear_accel");
- left_door_cover.SetOffset({0,0,-125,0}+left_door_pos,0,1200,"linear_accel");
- right_door_cover.SetOffset({125,0,0,0}+right_door_pos,0,1200,"linear_accel");
- </script>
- <script name="door_close">
- left_door.SetOffset(left_door_pos,0,1200,"linear_decel");
- left_door_shadow.SetOffset(left_door_shadow_pos,0,1200,"linear_decel");
- right_door.SetOffset(right_door_pos,0,1200,"linear_decel");
- left_door_cover.SetOffset(left_door_pos,0,1200,"linear_decel");
- right_door_cover.SetOffset(right_door_pos,0,1200,"linear_decel");
- </script>
-
- <window name="left_door_shadow" transparent="true" offset="pill.psd|left_door_shadow @ pill.psd|door_region">
- <ImageStyle name="background">
- <raster
- source ="pill.psd|left_door_shadow"
- alignment ="entire"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- opacity =".75"
- />
- </ImageStyle>
- </window>
-
- <window name="left_door" transparent="false" offset="pill.psd|left_door @ pill.psd|door_region">
- <ImageStyle name="background">
- <raster
- source ="pill.psd|left_door"
- alignment ="entire"
- blendmode ="COPY|PIXEL"
- source_offset ="pill.psd|left_door @ pill.psd|left_door"
- />
- </ImageStyle>
- </window>
-
- <window name="right_door" transparent="false" offset="pill.psd|right_door @ pill.psd|door_region">
- <ImageStyle name="background">
- <raster
- source ="pill.psd|right_door"
- alignment ="entire"
- blendmode ="COPY|PIXEL"
- source_offset ="pill.psd|right_door @ pill.psd|right_door"
- />
- </ImageStyle>
- </window>
-
- <window name="left_door_cover" transparent="true" offset="pill.psd|left_door @ pill.psd|door_region" hitstyle="ACTIVE" >
- <ImageStyle name="background">
- <gradient_fourpoint
- color_ul ="0x60000000"
- color_lr ="0x60FFFFFF"
- color_ur ="0x00000000"
- color_ll ="0x00000000"
- alignment ="upperleft"
- offset ="pill.psd|door_region @ pill.psd|left_door"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
-
- />
- </ImageStyle>
- <script name="OnMouseOver">
- OpenDoor();
- </script>
- </window>
-
- <window name="right_door_cover" transparent="true" offset="pill.psd|right_door @ pill.psd|door_region" hitstyle="ACTIVE" >
- <ImageStyle name="background">
- <gradient_fourpoint
- color_ul ="0x40653807"
- color_lr ="0x40FFFFB7"
- color_ur ="0x00000000"
- color_ll ="0x00000000"
- alignment ="upperright"
- offset ="pill.psd|door_region @ pill.psd|right_door"
- blendmode ="COPY|RGB|ALPHA_SRCALPHA"
- />
- </ImageStyle>
- <script name="OnMouseOver">
- OpenDoor();
- </script>
- </window>
- </window>
- </window>
- </interface>
- </mml>
-