redo infos programs to be more unified and animate more effectively
This commit is contained in:
parent
67faa1ee2e
commit
6e6c105532
|
@ -361,47 +361,51 @@ collections {
|
||||||
description { state: "visible";
|
description { state: "visible";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program { signal: "empc,album,change,*"; source: "empc";
|
program { name: "info_show2";
|
||||||
|
action: STATE_SET "visible" 0.0;
|
||||||
|
transition: LINEAR 0.2;
|
||||||
|
target: "info_clip";
|
||||||
|
target: "info.size";
|
||||||
|
}
|
||||||
|
program { name: "info_show";
|
||||||
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
|
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
|
||||||
script {
|
script {
|
||||||
set_state(PART:"info_clip", "visible", 0.0);
|
|
||||||
set_int(info_visible, 1);
|
set_int(info_visible, 1);
|
||||||
}
|
}
|
||||||
|
after: "info_show2";
|
||||||
|
}
|
||||||
|
program { signal: "empc,album,change,*"; source: "empc";
|
||||||
|
after: "info_show";
|
||||||
}
|
}
|
||||||
program { name: "info_hide";
|
program { name: "info_hide";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
transition: LINEAR 0.2;
|
transition: LINEAR 0.2;
|
||||||
target: "info_clip";
|
target: "info_clip";
|
||||||
|
target: "info.size";
|
||||||
|
}
|
||||||
|
program { name: "info_hide_timed";
|
||||||
|
filter: "info_clip" "visible";
|
||||||
|
in: 4.0 0.0;
|
||||||
|
script {
|
||||||
|
set_int(info_visible, 0);
|
||||||
|
run_program(get_program_id("info_hide"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
program { signal: "album_done"; source: "empc";
|
program { signal: "album_done"; source: "empc";
|
||||||
filter: "info_clip" "visible";
|
action: ACTION_STOP;
|
||||||
in: 3.0 0.0;
|
target: "info_hide_timed";
|
||||||
script {
|
after: "info_hide_timed";
|
||||||
set_int(info_visible, 0);
|
|
||||||
run_program(get_program_id("info_hide"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
program { signal: "artist_done"; source: "empc";
|
program { signal: "artist_done"; source: "empc";
|
||||||
filter: "info_clip" "visible";
|
action: ACTION_STOP;
|
||||||
in: 3.0 0.0;
|
target: "info_hide_timed";
|
||||||
script {
|
after: "info_hide_timed";
|
||||||
set_int(info_visible, 0);
|
|
||||||
run_program(get_program_id("info_hide"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
program { signal: "empc,artist,change,*"; source: "empc";
|
program { signal: "empc,artist,change,*"; source: "empc";
|
||||||
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
|
after: "info_show";
|
||||||
script {
|
|
||||||
set_state(PART:"info_clip", "visible", 0.0);
|
|
||||||
set_int(info_visible, 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
program { signal: "empc,album,change,*"; source: "empc";
|
program { signal: "empc,album,change,*"; source: "empc";
|
||||||
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
|
after: "info_show";
|
||||||
script {
|
|
||||||
set_state(PART:"info_clip", "visible", 0.0);
|
|
||||||
set_int(info_visible, 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
part { name: EMPC_BASE_TEXT_ARTIST; type: TEXT; mouse_events: 0;
|
part { name: EMPC_BASE_TEXT_ARTIST; type: TEXT; mouse_events: 0;
|
||||||
clip_to: "artist_clip";
|
clip_to: "artist_clip";
|
||||||
|
@ -705,9 +709,8 @@ collections {
|
||||||
script {
|
script {
|
||||||
if ((!get_int(playlist_visible)) && (!get_int(bg_chooser))) {
|
if ((!get_int(playlist_visible)) && (!get_int(bg_chooser))) {
|
||||||
if (get_int(info_visible))
|
if (get_int(info_visible))
|
||||||
run_program(get_program_id("info_hide"));
|
run_program(get_program_id("info_hide_timed"));
|
||||||
set_int(playlist_visible, 1);
|
set_int(playlist_visible, 1);
|
||||||
if (get_int(lyrics_visible))
|
|
||||||
run_program(get_program_id("lyrics_hide"));
|
run_program(get_program_id("lyrics_hide"));
|
||||||
run_program(get_program_id("playlist_show_start"));
|
run_program(get_program_id("playlist_show_start"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue