The config dialog is now accessable. A bit more work done on the slide_in tab, but it still a bit glitchy.

This commit is contained in:
Jaime Thomas
2009-02-21 01:23:34 +00:00
parent 1a603cbd3a
commit 7e5df4ed70
6 changed files with 292 additions and 60 deletions

View File

@ -4,12 +4,14 @@ group {
min: 640 390;
script {
public settings_time_id = 0;
const Float:show_timeout = 1.0;
public settings_time_id;
public in_transition;
const Float:show_timeout = 1.5;
public show_settings(val) {
set_int(in_transition, 1);
run_program(PROGRAM:"settings,show");
run_program(PROGRAM:"about_icon,show");
run_program(PROGRAM:"icons,show");
if (get_int(settings_time_id) != 0) {
cancel_timer(get_int(settings_time_id));
}
@ -374,8 +376,8 @@ group {
description {
state: "visible" 0.0;
inherit: "default" 0.0;
min: 72 72;
max: 72 72;
min: 140 72;
max: 140 72;
color: 0 0 0 128;
}
}
@ -392,6 +394,47 @@ group {
min: 0 0;
max: 0 0;
color: 255 255 255 0;
align: 0.0 0.0;
rel1 {
to: "config_icon";
relative: 1.0 0.0;
offset: 4 4;
}
rel2 {
to: "config_icon";
relative: 1.0 1.0;
offset: -5 -5;
}
image {
normal: "icon_about.png";
}
}
description {
state: "visible" 0.0;
inherit: "default" 0.0;
min: 64 64;
max: 64 64;
color: 255 255 255 255;
}
}
part {
name: "config_icon";
type: IMAGE;
mouse_events: 1;
repeat_events: 1;
scale: 1;
description {
state: "default" 0.0;
min: 0 0;
max: 0 0;
color: 255 255 255 0;
align: 0.0 0.0;
rel1 {
to: "settings_tab";
@ -418,6 +461,7 @@ group {
color: 255 255 255 255;
}
}
}
programs {
@ -433,8 +477,6 @@ group {
program {
name: "settings,deactivate";
signal: "mouse,out";
source: "settings_tab";
action: STATE_SET "default" 0.0;
target: "settings_tab";
transition: DECELERATE 0.3;
@ -445,40 +487,61 @@ group {
signal: "mouse,out";
source: "settings_tab";
script {
run_program(PROGRAM:"about_icon,hide");
if (get_int(settings_time_id) != 0) {
cancel_timer(get_int(settings_time_id));
set_int(settings_time_id, 0);
if (!get_int(in_transition))
{
run_program(PROGRAM:"settings,deactivate")
run_program(PROGRAM:"icons,hide");
if (get_int(settings_time_id) != 0) {
cancel_timer(get_int(settings_time_id));
set_int(settings_time_id, 0);
}
}
}
}
program {
name: "about_icon,hide";
name: "icons,hide";
action: STATE_SET "default" 0.0;
target: "about_icon";
target: "config_icon";
transition: DECELERATE 0.3;
}
program {
name: "about_icon,show";
name: "icons,show";
action: STATE_SET "visible" 0.0;
target: "about_icon";
target: "config_icon";
transition: DECELERATE 0.3;
}
program {
name: "icon,clicked";
name: "about_icon,clicked";
signal: "mouse,clicked,1";
source: "about_icon";
action: SIGNAL_EMIT "ecdb/about/show" "ecdb";
}
program {
name: "config_icon,clicked";
signal: "mouse,clicked,1";
source: "config_icon";
action: SIGNAL_EMIT "ecdb/config/show" "ecdb";
}
program {
name: "settings,show";
action: STATE_SET "visible" 0.0;
target: "settings_tab";
transition: DECELERATE 0.3;
after: "settings,after";
}
program {
name: "settings,after";
script {
set_int(in_transition, 0);
}
}
program {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -31,4 +31,5 @@ images {
image: "progress_trough.png" COMP;
image: "logo.png" COMP;
image: "icon_config.png" COMP;
image: "icon_about.png" COMP;
}