e-modules/engage: add option for mouse-over animation. without zoom it has the same effect as ibar now (but no clipping :)
SVN revision: 58570
This commit is contained in:
parent
bb373b8daf
commit
1f2813e8ee
|
@ -827,10 +827,10 @@ group {
|
||||||
}
|
}
|
||||||
|
|
||||||
programs {
|
programs {
|
||||||
#if HOVER_EFFECT == 1
|
|
||||||
program {
|
program {
|
||||||
name: "go_active";
|
name: "go_active";
|
||||||
signal: "e,state,mouse,in";
|
signal: "e,state,animate,in";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
target: "background";
|
target: "background";
|
||||||
|
@ -845,7 +845,7 @@ group {
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
name: "go_passive";
|
name: "go_passive";
|
||||||
signal: "e,state,mouse,out";
|
signal: "e,state,animate,out";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: ACTION_STOP;
|
action: ACTION_STOP;
|
||||||
target: "go_active";
|
target: "go_active";
|
||||||
|
@ -857,7 +857,7 @@ group {
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
target: "background";
|
target: "background";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
program {
|
program {
|
||||||
name: "go_big";
|
name: "go_big";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
|
|
|
@ -198,6 +198,9 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
||||||
ob = e_widget_check_add(evas, D_("Show Background Box"), &(cfdata->show_background));
|
ob = e_widget_check_add(evas, D_("Show Background Box"), &(cfdata->show_background));
|
||||||
e_widget_framelist_object_append(of, ob);
|
e_widget_framelist_object_append(of, ob);
|
||||||
|
|
||||||
|
ob = e_widget_check_add(evas, D_("Show Mouse-Over Animation"), &(cfdata->mouse_over_anim));
|
||||||
|
e_widget_framelist_object_append(of, ob);
|
||||||
|
|
||||||
e_widget_list_object_append(ol, of, 1, 0, 0.0);
|
e_widget_list_object_append(ol, of, 1, 0, 0.0);
|
||||||
|
|
||||||
of = e_widget_framelist_add(evas, D_("Orientation"), 0);
|
of = e_widget_framelist_add(evas, D_("Orientation"), 0);
|
||||||
|
|
|
@ -174,6 +174,9 @@ ngi_item_mouse_in(Ngi_Item *it)
|
||||||
|
|
||||||
ngi_item_signal_emit(it,"e,state,mouse,in");
|
ngi_item_signal_emit(it,"e,state,mouse,in");
|
||||||
|
|
||||||
|
if (it->box->ng->cfg->mouse_over_anim)
|
||||||
|
ngi_item_signal_emit(it,"e,state,animate,in");
|
||||||
|
|
||||||
if (it->cb_mouse_in)
|
if (it->cb_mouse_in)
|
||||||
it->cb_mouse_in(it);
|
it->cb_mouse_in(it);
|
||||||
}
|
}
|
||||||
|
@ -185,6 +188,9 @@ ngi_item_mouse_out(Ngi_Item *it)
|
||||||
|
|
||||||
ngi_item_signal_emit(it,"e,state,mouse,out");
|
ngi_item_signal_emit(it,"e,state,mouse,out");
|
||||||
|
|
||||||
|
if (it->box->ng->cfg->mouse_over_anim)
|
||||||
|
ngi_item_signal_emit(it,"e,state,animate,out");
|
||||||
|
|
||||||
if (it->cb_mouse_out)
|
if (it->cb_mouse_out)
|
||||||
it->cb_mouse_out(it);
|
it->cb_mouse_out(it);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue