fixed: 1 1;
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ }
description { state: "anim_1" 0.0;
inherit: "default" 0.0;
color: 255 255 255 200;
rel1.offset: (45/2 + 10) -45/2;
rel2.offset: (45/2 +10) 45/2;
}
+ description { state: "anim_1" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ color: 255 255 255 200;
+ rel1.offset: (45/2 + 10) -45/2;
+ rel2.offset: (45/2 +10) 45/2;
+ }
description { state: "anim_2" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
rel1.offset: (45/2 + 20) -45/2;
rel2.offset: (45/2 + 20) 45/2;
}
+ description { state: "anim_2" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ color: 255 255 255 0;
+ rel1.offset: (45/2 + 20) -45/2;
+ rel2.offset: (45/2 + 20) 45/2;
+ }
}
part {
name: "arrow_left";
fixed: 1 1;
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ }
description { state: "anim_1" 0.0;
inherit: "default" 0.0;
color: 255 255 255 200;
rel1.offset: (-45/2 - 10) -45/2;
rel2.offset: (-45/2 - 10) 45/2;
}
+ description { state: "anim_1" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ color: 255 255 255 200;
+ rel1.offset: (-45/2 - 10) -45/2;
+ rel2.offset: (-45/2 - 10) 45/2;
+ }
description { state: "anim_2" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
rel1.offset: (-45/2 - 20) -45/2;
rel2.offset: (-45/2 - 20) 45/2;
}
+ description { state: "anim_2" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ color: 255 255 255 0;
+ rel1.offset: (-45/2 - 20) -45/2;
+ rel2.offset: (-45/2 - 20) 45/2;
+ }
}
part {
name: "movement.decider";
//arrows animation
program {
name: "arrow_anim_start";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ run_program(PROGRAM:"arrow_anim_start_ltr");
+ }
+ else {
+ run_program(PROGRAM:"arrow_anim_start_rtl");
+ }
+ }
+ }
+ program {
+ name: "arrow_anim_stop";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ run_program(PROGRAM:"arrow_anim_stop_ltr");
+ }
+ else {
+ run_program(PROGRAM:"arrow_anim_stop_rtl");
+ }
+ }
+ }
+ program {
+ name: "arrow_anim_start_ltr";
action: STATE_SET "anim_1" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: LINEAR 0.6;
- after: "arrow_anim_1";
+ after: "arrow_anim_1_ltr";
}
program {
- name: "arrow_anim_1";
+ name: "arrow_anim_1_ltr";
action: STATE_SET "anim_2" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: LINEAR 0.6;
- after: "arrow_anim_2";
+ after: "arrow_anim_2_ltr";
}
program {
- name: "arrow_anim_2";
+ name: "arrow_anim_2_ltr";
action: STATE_SET "default" 0.0;
target: "arrow_right";
target: "arrow_left";
- after: "arrow_anim_start";
+ after: "arrow_anim_start_ltr";
}
program {
- name: "arrow_anim_stop";
+ name: "arrow_anim_stop_ltr";
action: ACTION_STOP;
- target: "arrow_anim_start";
- target: "arrow_anim_1";
- target: "arrow_anim_2";
- after: "arrow_anim_stop_1";
+ target: "arrow_anim_start_ltr";
+ target: "arrow_anim_1_ltr";
+ target: "arrow_anim_2_ltr";
+ after: "arrow_anim_stop_1_ltr";
}
program {
- name: "arrow_anim_stop_1";
+ name: "arrow_anim_stop_1_ltr";
action: STATE_SET "default" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: DECELERATE 0.4;
}
+ program {
+ name: "arrow_anim_start_rtl";
+ action: STATE_SET "anim_1" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: LINEAR 0.6;
+ after: "arrow_anim_1_rtl";
+ }
+ program {
+ name: "arrow_anim_1_rtl";
+ action: STATE_SET "anim_2" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: LINEAR 0.6;
+ after: "arrow_anim_2_rtl";
+ }
+ program {
+ name: "arrow_anim_2_rtl";
+ action: STATE_SET "default" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ after: "arrow_anim_start_rtl";
+ }
+ program {
+ name: "arrow_anim_stop_rtl";
+ action: ACTION_STOP;
+ target: "arrow_anim_start_rtl";
+ target: "arrow_anim_1_rtl";
+ target: "arrow_anim_2_rtl";
+ after: "arrow_anim_stop_1_rtl";
+ }
+ program {
+ name: "arrow_anim_stop_1_rtl";
+ action: STATE_SET "default" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: DECELERATE 0.4;
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow_left", st, 0.1);
+ }
+ get_state(PART:"arrow_right", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow_right", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow_left", st, 0.0);
+ }
+ get_state(PART:"arrow_right", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow_right", st, 0.0);
+ }
+ }
+ }
//fix the pane
program {
name: "panes_fixed";
}
}
+
group {
name: "elm/panes/horizontal/default";
images {