|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
collections { |
|
|
|
|
|
|
|
|
|
#define CTRLSIZE 26 |
|
|
|
|
group { name: "rage/core"; |
|
|
|
|
images.image: "pm_fill.png" COMP; |
|
|
|
|
images.image: "vg1.png" COMP; |
|
|
|
@ -49,6 +50,17 @@ collections { |
|
|
|
|
public novideo; |
|
|
|
|
public browser; |
|
|
|
|
|
|
|
|
|
public message(Msg_Type:type, id, ...) { |
|
|
|
|
if ((type == MSG_FLOAT) && (id == 1)) { // volume 0.0->1.0 |
|
|
|
|
new Float:val = getfarg(2); |
|
|
|
|
|
|
|
|
|
if (val < 0.0) val = 0.0; |
|
|
|
|
else if (val > 1.0) val = 1.0; |
|
|
|
|
custom_state(PART:"vol_indicator_fg", "default", 0.0); |
|
|
|
|
set_state_val(PART:"vol_indicator_fg", STATE_REL2, val, 1.0); |
|
|
|
|
set_state(PART:"vol_indicator_fg", "custom", 0.0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public pos_timeout(val) { |
|
|
|
|
set_int(pos_timer, 0); |
|
|
|
|
if (get_int(pos_visible)) { |
|
|
|
@ -633,7 +645,7 @@ collections { |
|
|
|
|
rel1.to: "rage.dragable.pos"; |
|
|
|
|
rel2.to: "rage.dragable.pos"; |
|
|
|
|
align: 0.5 1.0; |
|
|
|
|
min: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "posevent"; type: RECT; |
|
|
|
@ -646,7 +658,7 @@ collections { |
|
|
|
|
rel1.to: "rage.pos.swallow"; |
|
|
|
|
rel2.to: "rage.pos.swallow"; |
|
|
|
|
color: 0 0 0 0; |
|
|
|
|
min: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; |
|
|
|
|
align: 0.5 1.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -658,7 +670,7 @@ collections { |
|
|
|
|
rel1.to_y: "dragover_event"; |
|
|
|
|
rel2.relative: 0.0 0.0; |
|
|
|
|
rel2.to_y: "dragover_event"; |
|
|
|
|
min: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; |
|
|
|
|
align: 0.0 1.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -672,7 +684,7 @@ collections { |
|
|
|
|
rel2.to_x: "rage.pos.prev.swallow"; |
|
|
|
|
rel2.to_y: "dragover_event"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
min: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; |
|
|
|
|
align: 0.0 1.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -686,19 +698,20 @@ collections { |
|
|
|
|
rel2.to_x: "rage.pos.play.swallow"; |
|
|
|
|
rel2.to_y: "dragover_event"; |
|
|
|
|
rel2.relative: 1.0 0.0; |
|
|
|
|
min: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; |
|
|
|
|
align: 0.0 1.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "rage.vol.swallow"; type: SWALLOW; |
|
|
|
|
scale: 1; |
|
|
|
|
clip_to: "controlbar_clip"; |
|
|
|
|
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; |
|
|
|
|
min: (CTRLSIZE*4) CTRLSIZE; |
|
|
|
|
align: 1.0 1.0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -710,7 +723,7 @@ collections { |
|
|
|
|
rel1.to: "rage.pos.prev.swallow"; |
|
|
|
|
rel2.to: "rage.pos.prev.swallow"; |
|
|
|
|
image.normal: "icon_prev.png"; |
|
|
|
|
min: 20 20; max: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
@ -754,15 +767,14 @@ collections { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
part { name: "pos_pause"; |
|
|
|
|
scale: 1; |
|
|
|
|
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; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
@ -788,14 +800,13 @@ collections { |
|
|
|
|
target: "pos_pause"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
part { name: "pos_play"; |
|
|
|
|
scale: 1; |
|
|
|
|
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; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
image.normal: "icon_pause.png"; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
@ -835,15 +846,14 @@ collections { |
|
|
|
|
target: "playpause2"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
part { name: "pos_next"; |
|
|
|
|
scale: 1; |
|
|
|
|
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; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
@ -868,37 +878,92 @@ collections { |
|
|
|
|
target: "pos_next"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
part { name: "vol"; scale: 1; |
|
|
|
|
part { name: "volmuteb"; type: RECT; |
|
|
|
|
clip_to: "controlbar_clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
description { state: "mute" 0.0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "volmuteb2"; type: RECT; |
|
|
|
|
clip_to: "controlbar_clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "mute" 0.0; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { |
|
|
|
|
signal: "action,mute"; source: "rage"; |
|
|
|
|
action: STATE_SET "mute" 0.0; |
|
|
|
|
target: "volmuteb"; |
|
|
|
|
target: "volmuteb2"; |
|
|
|
|
} |
|
|
|
|
program { |
|
|
|
|
signal: "action,unmute"; source: "rage"; |
|
|
|
|
action: STATE_SET "default" 0.0; |
|
|
|
|
target: "volmuteb"; |
|
|
|
|
target: "volmuteb2"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
part { name: "vol"; scale: 1; |
|
|
|
|
clip_to: "volmuteb"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "rage.vol.swallow"; |
|
|
|
|
rel2.to: "rage.vol.swallow"; |
|
|
|
|
rel2.relative: 0.0 1.0; |
|
|
|
|
align: 1.0 0.5; |
|
|
|
|
image.normal: "icon_volume.png"; |
|
|
|
|
min: 20 20; max: 20 20; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
color: 160 160 160 255; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "volev"; type: RECT; |
|
|
|
|
clip_to: "controlbar_clip"; |
|
|
|
|
part { name: "vol2"; scale: 1; |
|
|
|
|
clip_to: "volmuteb2"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "rage.vol.swallow"; |
|
|
|
|
rel2.to: "rage.vol.swallow"; |
|
|
|
|
color: 0 0 0 0; |
|
|
|
|
rel2.relative: 0.0 1.0; |
|
|
|
|
align: 1.0 0.5; |
|
|
|
|
image.normal: "icon_mute.png"; |
|
|
|
|
min: CTRLSIZE CTRLSIZE; max: CTRLSIZE CTRLSIZE; |
|
|
|
|
} |
|
|
|
|
description { state: "active" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
color: 160 160 160 255; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "volev"; type: RECT; |
|
|
|
|
clip_to: "controlbar_clip"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
rel1.to: "vol"; |
|
|
|
|
rel2.to: "vol"; |
|
|
|
|
color: 0 0 0 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
program { |
|
|
|
|
signal: "mouse,down,1"; source: "volev"; |
|
|
|
|
action: STATE_SET "active" 0.0; |
|
|
|
|
target: "vol"; |
|
|
|
|
target: "vol2"; |
|
|
|
|
} |
|
|
|
|
program { |
|
|
|
|
signal: "mouse,up,1"; source: "volev"; |
|
|
|
|
action: STATE_SET "default" 0.0; |
|
|
|
|
target: "vol"; |
|
|
|
|
target: "vol2"; |
|
|
|
|
} |
|
|
|
|
program { |
|
|
|
|
signal: "mouse,clicked,1"; source: "volev"; |
|
|
|
|
action: SIGNAL_EMIT "pos,action,vol" "rage"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
program { |
|
|
|
@ -984,11 +1049,11 @@ collections { |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to_y: "pos_next"; |
|
|
|
|
rel1.to_x: "vol"; |
|
|
|
|
rel1.to_x: "rage.pos.swallow"; |
|
|
|
|
rel1.relative: 0.0 0.0; |
|
|
|
|
rel1.offset: -1 0; |
|
|
|
|
rel2.to_y: "pos_next"; |
|
|
|
|
rel2.to_x: "vol"; |
|
|
|
|
rel2.to_x: "rage.pos.swallow"; |
|
|
|
|
rel2.relative: 0.0 1.0; |
|
|
|
|
rel2.offset: -1 -1; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
@ -1001,19 +1066,19 @@ collections { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#define STATE_FADE_PROG(_name) \ |
|
|
|
|
#define STATE_FADE_PROG(_name, _part) \ |
|
|
|
|
program { \ |
|
|
|
|
signal: "action,"_name; source: "rage"; \ |
|
|
|
|
action: STATE_SET "visible" 0.0; \ |
|
|
|
|
transition: SINUSOIDAL 0.2 CURRENT; \ |
|
|
|
|
target: _name; \ |
|
|
|
|
target: _part; \ |
|
|
|
|
after: _name"2"; \ |
|
|
|
|
} \ |
|
|
|
|
program { name: _name"2"; \ |
|
|
|
|
action: STATE_SET "default" 0.0; \ |
|
|
|
|
in: 1.0 0.0; \ |
|
|
|
|
transition: SINUSOIDAL 1.0 CURRENT; \ |
|
|
|
|
target: _name""; \ |
|
|
|
|
target: _part; \ |
|
|
|
|
} |
|
|
|
|
part { name: "mute"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
@ -1034,7 +1099,45 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("mute") |
|
|
|
|
STATE_FADE_PROG("mute", "mute") |
|
|
|
|
part { name: "vol_indicator_bg"; type: RECT; mouse_events: 0; |
|
|
|
|
clip_to: "vol_indicator"; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel1.to: "mute"; |
|
|
|
|
rel1.relative: 0.0 1.0; |
|
|
|
|
rel1.offset: 0 4; |
|
|
|
|
rel2.to: "mute"; |
|
|
|
|
rel2.relative: 0.0 1.0; |
|
|
|
|
rel2.offset: 0 4; |
|
|
|
|
align: 0.0 0.0; |
|
|
|
|
min: 40 5; max: 40 5; |
|
|
|
|
color: 255 255 255 128; |
|
|
|
|
offscale; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "vol_indicator_fg"; type: RECT; mouse_events: 0; |
|
|
|
|
clip_to: "vol_indicator"; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
fixed: 1 1; |
|
|
|
|
rel.to: "vol_indicator_bg"; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
part { name: "vol_indicator"; type: RECT; mouse_events: 0; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
|
color: 255 255 255 0; |
|
|
|
|
visible: 0; |
|
|
|
|
} |
|
|
|
|
description { state: "visible" 0.0; |
|
|
|
|
inherit: "default" 0.0; |
|
|
|
|
color: 255 255 255 255; |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("volume_up", "vol_indicator") |
|
|
|
|
STATE_FADE_PROG("volume_down", "vol_indicator") |
|
|
|
|
part { name: "unmute"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1054,7 +1157,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("unmute") |
|
|
|
|
STATE_FADE_PROG("unmute", "unmute") |
|
|
|
|
part { name: "loop"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1078,7 +1181,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("loop") |
|
|
|
|
STATE_FADE_PROG("loop", "loop") |
|
|
|
|
part { name: "sequential"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1102,7 +1205,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("sequential") |
|
|
|
|
STATE_FADE_PROG("sequential", "sequential") |
|
|
|
|
|
|
|
|
|
part { name: "statusloc"; type: SPACER; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1137,7 +1240,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("play") |
|
|
|
|
STATE_FADE_PROG("play", "play") |
|
|
|
|
part { name: "pause"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1158,7 +1261,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("pause") |
|
|
|
|
STATE_FADE_PROG("pause", "pause") |
|
|
|
|
part { name: "stop"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1179,7 +1282,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("stop") |
|
|
|
|
STATE_FADE_PROG("stop", "stop") |
|
|
|
|
part { name: "eject"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1200,7 +1303,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("eject") |
|
|
|
|
STATE_FADE_PROG("eject", "eject") |
|
|
|
|
part { name: "forward"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1221,7 +1324,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("forward") |
|
|
|
|
STATE_FADE_PROG("forward", "forward") |
|
|
|
|
part { name: "next"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1242,7 +1345,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("next") |
|
|
|
|
STATE_FADE_PROG("next", "next") |
|
|
|
|
part { name: "rewind"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1263,7 +1366,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("rewind") |
|
|
|
|
STATE_FADE_PROG("rewind", "rewind") |
|
|
|
|
part { name: "prev"; mouse_events: 0; |
|
|
|
|
scale: 1; |
|
|
|
|
description { state: "default" 0.0; |
|
|
|
@ -1284,7 +1387,7 @@ collections { |
|
|
|
|
visible: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
STATE_FADE_PROG("prev") |
|
|
|
|
STATE_FADE_PROG("prev", "prev") |
|
|
|
|
|
|
|
|
|
part { name: "rage.options.swallow"; type: SWALLOW; |
|
|
|
|
scale: 1; |
|
|
|
|