redo infos programs to be more unified and animate more effectively

This commit is contained in:
zmike 2014-03-01 01:50:09 -05:00
parent 67faa1ee2e
commit 6e6c105532
1 changed files with 30 additions and 27 deletions

View File

@ -361,47 +361,51 @@ collections {
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";
script {
set_state(PART:"info_clip", "visible", 0.0);
set_int(info_visible, 1);
}
after: "info_show2";
}
program { signal: "empc,album,change,*"; source: "empc";
after: "info_show";
}
program { name: "info_hide";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.2;
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";
filter: "info_clip" "visible";
in: 3.0 0.0;
script {
set_int(info_visible, 0);
run_program(get_program_id("info_hide"));
}
action: ACTION_STOP;
target: "info_hide_timed";
after: "info_hide_timed";
}
program { signal: "artist_done"; source: "empc";
filter: "info_clip" "visible";
in: 3.0 0.0;
script {
set_int(info_visible, 0);
run_program(get_program_id("info_hide"));
}
action: ACTION_STOP;
target: "info_hide_timed";
after: "info_hide_timed";
}
program { signal: "empc,artist,change,*"; source: "empc";
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
script {
set_state(PART:"info_clip", "visible", 0.0);
set_int(info_visible, 1);
}
after: "info_show";
}
program { signal: "empc,album,change,*"; source: "empc";
filter: EMPC_BASE_SWALLOW_PLAYLIST "default";
script {
set_state(PART:"info_clip", "visible", 0.0);
set_int(info_visible, 1);
}
after: "info_show";
}
part { name: EMPC_BASE_TEXT_ARTIST; type: TEXT; mouse_events: 0;
clip_to: "artist_clip";
@ -705,10 +709,9 @@ collections {
script {
if ((!get_int(playlist_visible)) && (!get_int(bg_chooser))) {
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);
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"));
}
}