Rage video and audio player https://www.enlightenment.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2285 lines
73 KiB

collections {
group { name: "rage/core";
images.image: "bg_bevel.png" COMP;
images.image: "bevel_dark_out.png" COMP;
images.image: "pm_fill.png" COMP;
images.image: "pm_overlay.png" COMP;
images.image: "pm_shadow.png" COMP;
images.image: "glow_exclam.png" COMP;
images.image: "icon_eject.png" COMP;
images.image: "icon_mute.png" COMP;
images.image: "icon_volume.png" COMP;
images.image: "icon_prev.png" COMP;
images.image: "icon_next.png" COMP;
images.image: "icon_rewind.png" COMP;
images.image: "icon_forward.png" COMP;
images.image: "icon_stop.png" COMP;
images.image: "icon_pause.png" COMP;
images.image: "icon_play.png" COMP;
images.image: "icon_refresh.png" COMP;
images.image: "icon_arrow_right.png" COMP;
images.image: "icon_spanner.png" COMP;
images.image: "icon_fullscreen.png" COMP;
images.image: "icon_unfullscreen.png" COMP;
images.image: "icon_close.png" COMP;
images.image: "win_shadow.png" COMP;
images.image: "bg_shine.png" COMP;
images.image: "bg_glint.png" COMP;
images.image: "vgrad-dark-inv.png" COMP;
images.image: "vgrad-dark-inv-trans.png" COMP;
images.image: "posglow.png" COMP;
images.image: "speaker-base.png" COMP;
images.image: "speaker-bevel-hi.png" COMP;
images.image: "speaker-bevel-lo.png" COMP;
images.image: "speaker-over.png" COMP;
images.image: "speaker-shadow.png" COMP;
images.image: "icon_next2.png" COMP;
images.image: "icon_prev2.png" COMP;
images.image: "icon_play2.png" COMP;
images.image: "icon_pause2.png" COMP;
images.image: "icon_volume2.png" COMP;
images.image: "icon_spanner2.png" COMP;
images.image: "icon_fullscreen2.png" COMP;
images.image: "icon_unfullscreen2.png" COMP;
images.image: "icon_close2.png" COMP;
images.image: "tv-bg.png" COMP;
images.image: "tv-over.png" COMP;
images.image: "r-0.png" COMP;
images.image: "r-1.png" COMP;
images.image: "r-2.png" COMP;
images.image: "r-3.png" COMP;
images.image: "r-4.png" COMP;
script {
public pos_visible;
public pos_timer;
public drag_is_down;
public novideo;
public pos_timeout(val) {
set_int(pos_visible, 0);
set_int(pos_timer, 0);
stop_program(PROGRAM:"posshow");
run_program(PROGRAM:"poshide");
if (!get_int(novideo)) {
stop_program(PROGRAM:"cbarshow");
run_program(PROGRAM:"cbarhide");
}
}
}
parts {
//// -- BACKGROUND
part { name: "fill"; mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "pm_fill.png";
fill {
size.relative: 0.0 0.0;
size.offset: 64 64;
}
}
}
part { name: "popmedia_overlay"; mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "pm_overlay.png";
fill.smooth: 0;
}
}
part { name: "bevel2";
description { state: "default" 0.0;
image.normal: "bg_bevel.png";
image.border: 1 1 1 1;
image.middle: 0;
fill.smooth: 0;
}
}
part { name: "shadow"; mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.content";
rel2.to: "rage.content";
image.normal: "pm_shadow.png";
image.border: 64 64 64 64;
rel1.offset: -32 -32;
rel2.offset: 31 31;
fill.smooth: 0;
visible: 0;
}
description { state: "video" 0.0;
inherit: "default" 0.0;
visible: 1;
}
description { state: "novideo" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "black"; type: RECT; mouse_events: 0;
description { state: "default" 0.0;
color: 0 0 0 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 0 0 0 255;
visible: 1;
}
}
program {
signal: "state,win,fullscreen"; source: "rage";
action: STATE_SET "visible" 0.0;
transition: SINUSOIDAL 0.2;
target: "black";
}
program {
signal: "state,win,normal"; source: "rage";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 1.0;
target: "black";
}
part { name: "base"; type: RECT; mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "rage.content";
rel2.to: "rage.content";
color: 0 0 0 255;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 32 32 32 255;
}
description { state: "play" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "base_bevel";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
image.normal: "bevel_dark_out.png";
image.border: 1 1 1 1;
image.middle: 0;
fill.smooth: 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
}
description { state: "play" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "exclam"; mouse_events: 0;
scale: 1;
clip_to: "novid_clip";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
fixed: 1 1;
image.normal: "glow_exclam.png";
max: 24 24;
aspect: 1.0 1.0; aspect_preference: BOTH;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
visible: 1;
}
description { state: "play" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
program {
signal: "action,newvid"; source: "rage";
action: STATE_SET "default" 0.0;
target: "exclam";
target: "base";
target: "base_bevel";
after: "newvid2";
}
program { name: "newvid2";
action: STATE_SET "visible" 0.0;
in: 2.0 0.0;
transition: SINUSOIDAL 1.0;
target: "exclam";
target: "base";
target: "base_bevel";
}
program {
signal: "action,frame"; source: "rage";
action: STATE_SET "play" 0.0;
target: "exclam";
target: "base";
target: "base_bevel";
}
part { name: "rage.content"; type: SWALLOW;
description { state: "default" 0.0;
}
}
part { name: "controlbar_shadow_clip"; type: RECT;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
rel2.relative: 1.0 0.0;
rel2.to_y: "controlbar";
}
}
part { name: "controlbar_shadow"; mouse_events: 0;
clip_to: "controlbar_shadow_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "controlbar";
rel2.to: "controlbar";
image.normal: "pm_shadow.png";
image.border: 64 64 64 64;
rel1.offset: -32 -32;
rel2.offset: 31 31;
fill.smooth: 0;
}
}
part { name: "prefsize"; type: SPACER;
scale: 1;
description { state: "default" 0.0;
rel2.to: "controlbar";
rel2.relative: 1.0 0.0;
}
description { state: "pref" 0.0;
inherit: "default" 0.0;
min: 160 160;
}
}
program {
signal: "pref,size,on"; source: "rage";
action: STATE_SET "pref" 0.0;
target: "prefsize";
}
program {
signal: "pref,size,off"; source: "rage";
action: STATE_SET "default" 0.0;
target: "prefsize";
}
part { name: "novid_clip"; type: RECT;
description { state: "default" 0.0;
}
description { state: "novideo" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "speaker_clip"; type: RECT;
description { state: "default" 0.0;
visible: 0;
}
description { state: "novideo" 0.0;
inherit: "default" 0.0;
visible: 1;
}
description { state: "video" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "speaker_bg_shadow"; mouse_events: 0;
clip_to: "speaker_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
image.normal: "pm_shadow.png";
image.border: 64 64 64 64;
rel1.offset: -32 -32;
rel2.offset: 31 31;
fill.smooth: 0;
}
}
part { name: "speaker_base"; type: RECT;
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel2.to: "controlbar";
rel2.relative: 1.0 0.0;
aspect: 1.0 1.0; aspect_preference: BOTH;
max: 160 160;
color: 32 32 32 255;
}
}
part { name: "speaker_cone";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
image.normal: "speaker-base.png";
}
}
part { name: "art_clip"; type: RECT;
clip_to: "speaker_clip";
description { state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
rel1.relative: -0.5 -0.5;
rel2.relative: 1.5 1.5;
fixed: 1 1;
aspect: 1.0 1.0; aspect_preference: BOTH;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
visible: 1;
color: 255 255 255 255;
}
}
part { name: "art_clip2"; type: RECT;
clip_to: "art_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
fixed: 1 1;
}
}
part { name: "rage.art"; type: SWALLOW; mouse_events: 0;
clip_to: "art_clip2";
description { state: "default" 0.0;
rel1.to: "art_clip";
rel2.to: "art_clip";
}
}
part { name: "speaker_shadow";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
image.normal: "speaker-shadow.png";
}
}
part { name: "speaker_lo";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel1.offset: 0 1;
rel2.to: "speaker_base";
rel2.relative: 1.0 0.5;
rel2.offset: -1 0;
image.normal: "speaker-bevel-lo.png";
}
}
part { name: "speaker_hi";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel1.relative: 0.0 0.5;
rel1.offset: 0 -1;
rel2.to: "speaker_base";
rel2.offset: -1 -2;
image.normal: "speaker-bevel-hi.png";
}
}
part { name: "speaker_cover";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_base";
rel2.to: "speaker_base";
image.normal: "speaker-over.png";
}
}
part { name: "speaker_bevel";
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_cover";
rel2.to: "speaker_cover";
image.normal: "bg_bevel.png";
image.border: 1 1 1 1;
image.middle: 0;
fill.smooth: 0;
}
}
part { name: "speaker_glintclip"; type: RECT;
clip_to: "speaker_clip";
description { state: "default" 0.0;
rel1.to: "speaker_cover";
rel2.to: "speaker_cover";
rel1.offset: 0 -10;
}
}
part { name: "speaker_glint"; mouse_events: 0;
clip_to: "speaker_glintclip";
description { state: "default" 0.0;
fixed: 1 1;
min: 79 5;
max: 79 5;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
to: "speaker_cover";
}
rel2 {
relative: 1.0 0.0;
offset: -1 0;
to: "speaker_cover";
}
image.normal: "bg_glint.png";
}
}
program {
signal: "state,novideo"; source: "rage";
action: STATE_SET "novideo" 0.0;
target: "speaker_clip";
target: "shadow";
target: "statusloc";
}
program {
signal: "state,video"; source: "rage";
action: STATE_SET "video" 0.0;
target: "speaker_clip";
target: "shadow";
target: "statusloc";
}
program {
signal: "state,novideo"; source: "rage";
script {
set_int(novideo, 1);
}
}
program {
signal: "state,video"; source: "rage";
script {
set_int(novideo, 0);
}
}
program {
signal: "action,newvid"; source: "rage";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.2;
target: "art_clip";
}
program {
signal: "state,noart"; source: "rage";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 1.0;
target: "art_clip";
}
program {
signal: "state,art"; source: "rage";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 1.0;
target: "art_clip";
}
part { name: "rage.gesture"; type: SWALLOW;
description { state: "default" 0.0;
}
}
part { name: "rage.browser"; type: SWALLOW;
description { state: "default" 0.0;
rel1.relative: 1.0 0.0;
rel1.offset: 40 0;
rel2.relative: 2.0 0.0;
rel2.offset: -41 -1;
rel2.to_y: "controlbar";
fixed: 1 1;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 0.0;
color: 255 255 255 255;
visible: 1;
}
}
program {
signal: "browser,state,visible"; source: "rage";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.3;
target: "rage.browser";
}
program {
signal: "browser,state,hidden"; source: "rage";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.5;
target: "rage.browser";
after: "browser_hidden";
}
program { name: "browser_hidden";
action: SIGNAL_EMIT "browser,state,hidden,finished" "rage";
}
part { name: "rage.list"; type: SWALLOW;
description { state: "default" 0.0;
align: 0.0 0.5;
rel1.relative: 1.0 0.0;
rel2.relative: 1.0 0.0;
rel2.to_y: "controlbar";
fixed: 1 1;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
align: 1.0 0.5;
visible: 1;
}
}
program {
signal: "list,state,visible"; source: "rage";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.3;
target: "rage.list";
}
program {
signal: "list,state,hidden"; source: "rage";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.5;
target: "rage.list";
after: "list_hidden";
}
program { name: "list_hidden";
action: SIGNAL_EMIT "list,state,hidden,finished" "rage";
}
part { name: "controlbar_clip"; type: RECT;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
color: 255 255 255 255;
visible: 1;
}
}
part { name: "controlbar"; mouse_events: 0;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
image.normal: "vgrad-dark-inv-trans.png";
fill {
smooth: 0;
size.relative: 0.0 1.0;
size.offset: 160 0;
}
rel1.to: "rage.pos.prev.swallow";
}
description { state: "novideo" 0.0;
inherit: "default" 0.0;
image.normal: "vgrad-dark-inv.png";
}
}
program {
signal: "state,novideo"; source: "rage";
action: STATE_SET "novideo" 0.0;
target: "controlbar";
}
program {
signal: "state,video"; source: "rage";
action: STATE_SET "default" 0.0;
target: "controlbar";
}
part { name: "posclip"; type: RECT;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
color: 255 255 255 255;
visible: 1;
}
}
part { name: "bar_bg"; type: SPACER;
description { state: "default" 0.0;
fixed: 1 1;
rel1.offset: 0 -1;
rel1.relative: 0.0 1.0;
min: 1 1;
}
}
part { name: "rage.dragable.pos"; type: RECT; mouse_events: 0;
clip_to: "controlbar_clip";
dragable.x: 1 1 0;
dragable.y: 0 0 0;
dragable.confine: "bar_bg";
description { state: "default" 0.0;
min: 1 1;
max: 1 1;
rel1.relative: 0.5 0.0;
rel1.to_x: "bar_bg";
rel2.relative: 0.5 1.0;
rel2.to_x: "bar_bg";
color: 0 0 0 0;
fixed: 1 1;
}
}
part { name: "bar"; mouse_events: 0;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "posglow.png";
image.border: 7 7 7 0;
rel1.offset: -7 -9;
rel1.relative: 0.0 1.0;
rel1.to_x: "bar_bg";
rel2.offset: 6 -1;
rel2.to_x: "rage.dragable.pos";
min: 14 9;
fill.smooth: 0;
}
}
part { name: "rage.pos.swallow"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.dragable.pos";
rel2.to: "rage.dragable.pos";
align: 0.5 1.0;
min: 20 20;
}
}
part { name: "posevent"; type: RECT;
clip_to: "controlbar_clip";
scale: 1;
ignore_flags: ON_HOLD;
dragable.events: "rage.dragable.pos";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.pos.swallow";
rel2.to: "rage.pos.swallow";
color: 0 0 0 0;
min: 20 20;
align: 0.5 1.0;
}
}
part { name: "rage.pos.prev.swallow"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.relative: 0.0 0.0;
rel1.to_y: "dragover_event";
rel2.relative: 0.0 0.0;
rel2.to_y: "dragover_event";
min: 20 20;
align: 0.0 1.0;
}
}
part { name: "rage.pos.play.swallow"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to_x: "rage.pos.prev.swallow";
rel1.to_y: "dragover_event";
rel1.relative: 1.0 0.0;
rel2.to_x: "rage.pos.prev.swallow";
rel2.to_y: "dragover_event";
rel2.relative: 1.0 0.0;
min: 20 20;
align: 0.0 1.0;
}
}
part { name: "rage.pos.next.swallow"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to_x: "rage.pos.play.swallow";
rel1.to_y: "dragover_event";
rel1.relative: 1.0 0.0;
rel2.to_x: "rage.pos.play.swallow";
rel2.to_y: "dragover_event";
rel2.relative: 1.0 0.0;
min: 20 20;
align: 0.0 1.0;
}
}
part { name: "rage.vol.swallow"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to_y: "dragover_event";
rel1.relative: 1.0 0.0;
rel2.to_y: "dragover_event";
rel2.relative: 1.0 0.0;
min: 20 20;
align: 1.0 1.0;
}
}
part { name: "pos_prev";
scale: 1;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.pos.prev.swallow";
rel2.to: "rage.pos.prev.swallow";
image.normal: "icon_prev.png";
min: 20 20; max: 20 20;
}
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_prev2.png";
}
}
part { name: "pos_prevev"; type: RECT;
description { state: "default" 0.0;
rel1.to: "rage.pos.prev.swallow";
rel2.to: "rage.pos.prev.swallow";
color: 0 0 0 0;
}
}
program {
signal: "mouse,down,1"; source: "pos_prevev";
action: STATE_SET "active" 0.0;
target: "pos_prev";
}
program {
signal: "mouse,up,1"; source: "pos_prevev";
action: STATE_SET "default" 0.0;
target: "pos_prev";
}
part { name: "playpause"; type: RECT;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
visible: 0;
}
description { state: "pause" 0.0;
visible: 1;
}
}
part { name: "playpause2"; type: RECT;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
visible: 1;
}
description { state: "pause" 0.0;
visible: 0;
}
}
part { name: "pos_pause";
scale: 1;
clip_to: "playpause";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.pos.play.swallow";
rel2.to: "rage.pos.play.swallow";
image.normal: "icon_play.png";
min: 20 20; max: 20 20;
}
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_play2.png";
}
}
part { name: "pos_pauseev"; type: RECT;
clip_to: "playpause";
description { state: "default" 0.0;
rel1.to: "rage.pos.play.swallow";
rel2.to: "rage.pos.play.swallow";
color: 0 0 0 0;
}
}
program {
signal: "mouse,down,1"; source: "pos_pauseev";
action: STATE_SET "active" 0.0;
target: "pos_pause";
}
program {
signal: "mouse,up,1"; source: "pos_pauseev";
action: STATE_SET "default" 0.0;
target: "pos_pause";
}
part { name: "pos_play";
scale: 1;
clip_to: "playpause2";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.pos.play.swallow";
rel2.to: "rage.pos.play.swallow";
min: 20 20; max: 20 20;
image.normal: "icon_pause.png";
}
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_pause2.png";
}
}
part { name: "pos_playev"; type: RECT;
clip_to: "playpause2";
description { state: "default" 0.0;
rel1.to: "rage.pos.play.swallow";
rel2.to: "rage.pos.play.swallow";
color: 0 0 0 0;
}
}
program {
signal: "mouse,down,1"; source: "pos_playev";
action: STATE_SET "active" 0.0;
target: "pos_play";
}
program {
signal: "mouse,up,1"; source: "pos_playev";
action: STATE_SET "default" 0.0;
target: "pos_play";
}
program {
signal: "action,play"; source: "rage";
action: STATE_SET "default" 0.0;
target: "playpause";
target: "playpause2";
}
program {
signal: "action,pause"; source: "rage";
action: STATE_SET "pause" 0.0;
target: "playpause";
target: "playpause2";
}
part { name: "pos_next";
scale: 1;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.pos.next.swallow";
rel2.to: "rage.pos.next.swallow";
image.normal: "icon_next.png";
min: 20 20; max: 20 20;
}
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_next2.png";
}
}
part { name: "pos_nextev"; type: RECT;
description { state: "default" 0.0;
rel1.to: "rage.pos.next.swallow";
rel2.to: "rage.pos.next.swallow";
color: 0 0 0 0;
}
}
program {
signal: "mouse,down,1"; source: "pos_nextev";
action: STATE_SET "active" 0.0;
target: "pos_next";
}
program {
signal: "mouse,up,1"; source: "pos_nextev";
action: STATE_SET "default" 0.0;
target: "pos_next";
}
part { name: "vol"; scale: 1;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.vol.swallow";
rel2.to: "rage.vol.swallow";
image.normal: "icon_volume.png";
min: 20 20; max: 20 20;
}
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_volume2.png";
}
}
part { name: "volev"; type: RECT;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
rel1.to: "rage.vol.swallow";
rel2.to: "rage.vol.swallow";
color: 0 0 0 0;
}
}
program {
signal: "mouse,down,1"; source: "volev";
action: STATE_SET "active" 0.0;
target: "vol";
}
program {
signal: "mouse,up,1"; source: "volev";
action: STATE_SET "default" 0.0;
target: "vol";
}
program {
signal: "mouse,clicked,1"; source: "optev";
action: SIGNAL_EMIT "pos,action,options" "rage";
}
program {
signal: "mouse,clicked,1"; source: "fullscreenev";
action: SIGNAL_EMIT "win,fullscreen" "rage";
}
program {
signal: "mouse,clicked,1"; source: "unfullscreenev";
action: SIGNAL_EMIT "win,unfullscreen" "rage";
}
program {
signal: "mouse,clicked,1"; source: "closeev";
action: SIGNAL_EMIT "win,close" "rage";
}
program {
signal: "mouse,clicked,1"; source: "pos_prevev";
action: SIGNAL_EMIT "pos,action,prev" "rage";
}
program {
signal: "mouse,clicked,1"; source: "pos_nextev";
action: SIGNAL_EMIT "pos,action,next" "rage";
}
program {
signal: "mouse,clicked,1"; source: "pos_playev";
action: SIGNAL_EMIT "pos,action,pause" "rage";
}
program {
signal: "mouse,clicked,1"; source: "pos_pauseev";
action: SIGNAL_EMIT "pos,action,play" "rage";
}
part { name: "rage.pos"; type: TEXT; mouse_events: 0;
clip_to: "controlbar_clip";
effect: GLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "slash";
rel1.relative: 0.0 0.0;
rel1.offset: -1 0;
rel2.to: "slash";
rel2.relative: 0.0 1.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
color2: 51 153 255 128;
color3: 51 153 255 20;
align: 1.0 0.5;
text { font: "Sans"; size: 8;
align: 1.0 0.5;
min: 1 1;
elipsis: -1;
}
}
}
part { name: "slash"; type: TEXT; mouse_events: 0;
clip_to: "controlbar_clip";
effect: GLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "rage.length";
rel1.relative: 0.0 0.0;
rel1.offset: -1 0;
rel2.to: "rage.length";
rel2.relative: 0.0 1.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
color2: 51 153 255 128;
color3: 51 153 255 20;
align: 1.0 0.5;
text { font: "Sans"; size: 8;
align: 1.0 0.5;
min: 1 1;
text: "/";
elipsis: -1;
}
}
}
part { name: "rage.length"; type: TEXT; mouse_events: 0;
clip_to: "controlbar_clip";
effect: GLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to_y: "pos_next";
rel1.to_x: "vol";
rel1.relative: 0.0 0.0;
rel1.offset: -1 0;
rel2.to_y: "pos_next";
rel2.to_x: "vol";
rel2.relative: 0.0 1.0;
rel2.offset: -1 -1;
color: 255 255 255 255;
color2: 51 153 255 128;
color3: 51 153 255 20;
align: 1.0 0.5;
text { font: "Sans"; size: 8;
align: 1.0 0.5;
min: 1 1;
elipsis: -1;
}
}
}
part { name: "controlbar_bevel"; mouse_events: 0;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
image.normal: "bg_bevel.png";
image.border: 1 1 1 1;
image.middle: 0;
fill.smooth: 0;
rel1.to: "controlbar";
rel2.to: "controlbar";
}
}
part { name: "controlbar_glintclip"; type: RECT;
clip_to: "controlbar_clip";
description { state: "default" 0.0;
rel1.to: "controlbar";
rel2.to: "controlbar";
rel1.offset: 0 -10;
}
}
part { name: "controlbar_glint"; mouse_events: 0;
clip_to: "controlbar_glintclip";
description { state: "default" 0.0;
fixed: 1 1;
min: 79 5;
max: 79 5;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
to: "controlbar";
}
rel2 {
relative: 1.0 0.0;
offset: -1 0;
to: "controlbar";
}
image.normal: "bg_glint.png";
}
}
#define STATE_FADE_PROG(_name) \
program { \