mild.edc: move all code about bell at the same place

This commit is contained in:
Boris Faure 2020-04-10 00:06:57 +02:00
parent ba6f571c5b
commit 70f6cfb612
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 64 additions and 62 deletions

View File

@ -124,68 +124,6 @@ collections {
}
}
part { name: "bellclip"; type: RECT;
description { state: "default" 0.0;
}
description { state: "pulse1" 0.0;
inherit: "default" 0.0;
color: 200 200 200 255;
}
description { state: "pulse2" 0.0;
inherit: "default" 0.0;
}
}
part { name: "belloverlay"; type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "pulse1" 0.0;
inherit: "default" 0.0;
}
description { state: "pulse2" 0.0;
inherit: "default" 0.0;
color: BELL_OVERLAY_COLOR;
visible: 1;
}
}
program {
signal: "bell,ring"; source: "terminology";
action: PLAY_SAMPLE "bell" 1.0 ALERT;
}
program {
signal: "bell";
source: "terminology";
action: STATE_SET "default" 0.0;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.2";
}
program {
name: "bellclip_bell.2";
action: STATE_SET "pulse1" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.3";
}
program {
name: "bellclip_bell.3";
action: STATE_SET "pulse2" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.4";
}
program {
name: "bellclip_bell.4";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
}
////////////////////////////////////////////////////////////////////
// actual text grid for chars, cursors, selectiond etc. goes here
part { name: "terminology.content"; type: SWALLOW;
@ -1338,6 +1276,33 @@ collections {
////////////////////////////////////////////////////////////////////
// visual bell - spinning red siren light {{{
part { name: "bellclip"; type: RECT;
description { state: "default" 0.0;
}
description { state: "pulse1" 0.0;
inherit: "default" 0.0;
color: 200 200 200 255;
}
description { state: "pulse2" 0.0;
inherit: "default" 0.0;
}
}
part { name: "belloverlay"; type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "pulse1" 0.0;
inherit: "default" 0.0;
}
description { state: "pulse2" 0.0;
inherit: "default" 0.0;
color: BELL_OVERLAY_COLOR;
visible: 1;
}
}
part { name: "bell_base";
mouse_events: 0;
description { state: "default" 0.0;
@ -1400,6 +1365,41 @@ collections {
map.rotation.z: 684.0;
}
}
program {
signal: "bell,ring"; source: "terminology";
action: PLAY_SAMPLE "bell" 1.0 ALERT;
}
program {
signal: "bell";
source: "terminology";
action: STATE_SET "default" 0.0;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.2";
}
program {
name: "bellclip_bell.2";
action: STATE_SET "pulse1" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.3";
}
program {
name: "bellclip_bell.3";
action: STATE_SET "pulse2" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
after: "bellclip_bell.4";
}
program {
name: "bellclip_bell.4";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.2;
target: "bellclip";
target: "belloverlay";
}
program { name: "bell0";
signal: "bell";
source: "terminology";
@ -1862,6 +1862,7 @@ collections {
// }}}
}
}
#if 0
group { name: "terminology/tabbar_back";
images {
@ -3037,4 +3038,5 @@ collections {
}
}
}
#endif
}