}
group {
- name: "elm/button/base/video_btn_settings";
- data.item, "focus_highlight" "on";
- images {
- image: IMAGE_VIDEO_BTN_SETTING_NORMAL COMP;
- image: IMAGE_VIDEO_BTN_SETTING_FOCUS COMP;
- image: IMAGE_VIDEO_BTN_SETTING_HIGHLIGHT COMP;
- }
- script {
- public cur_state;
- }
- parts {
- part {
- name: "bg";
- scale: 1;
- description {
- state: "default" 0.0;
- min: 110 110;
- image.normal: IMAGE_VIDEO_BTN_SETTING_NORMAL;
- }
- description {
- state: "selected" 0.0;
- inherit: "default" 0.0;
- image.normal: IMAGE_VIDEO_BTN_SETTING_FOCUS;
- }
- description {
- state: "selected_in" 0.0;
- inherit: "selected" 0.0;
- min: 60 60;
- max: 60 60;
- }
- description {
- state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: IMAGE_VIDEO_BTN_SETTING_HIGHLIGHT;
- }
- }
- }
- programs {
- program {
- name: "load";
- signal: "load";
- source: "";
- script {
- set_int(cur_state, STATE_NORMAL);
- }
- }
- program {
- name: "button_down";
- signal: "mouse,down,1";
- source: "bg";
- action: SIGNAL_EMIT "elm,action,press" "";
- }
- program {
- name: "button_mouseup";
- signal: "mouse,up,1";
- source: "bg";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- }
- program {
- name: "button_clicked";
- signal: "mouse,clicked,1";
- source: "bg";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program {
- name: "focused";
- signal: "elm,action,focus";
- source: "elm";
- script {
- set_int(cur_state, STATE_NORMAL);
- set_state(PART:"bg", "selected", 0.0);
- }
- }
- program {
- name: "unfocused";
- signal: "elm,action,unfocus";
- source: "elm";
- script {
- new state;
- state = get_int(cur_state);
- if (state == STATE_HIGHLIGHT)
- set_state(PART:"bg", "highlight", 0.0);
- else
- set_state(PART:"bg", "default", 0.0);
- }
- }
- program {
- name: "mouse,anim,start";
- signal: "mouse,anim,start";
- source: "";
- action: STATE_SET "selected_in" 0.0;
- target: "bg";
- transition: LINEAR 0.1;
- after: "mouse,anim,end";
- }
- program {
- name: "mouse,anim,end";
- action: STATE_SET "highlight" 0.0;
- target: "bg";
- transition: LINEAR 0.1;
- after: "emit,signal";
- }
- program {
- name: "emit,signal";
- action: SIGNAL_EMIT "btn,anim,finish" "settings";
- }
- program {
- name: "highlight";
- signal: "elm,action,highlight";
- source: "elm";
- script {
- set_int(cur_state, STATE_HIGHLIGHT);
- set_state(PART:"bg", "highlight", 0.0);
- }
- }
- }
-}
-
-group {
name: "elm/button/base/shorttext";
images {
image: IMAGE_ICON_CHECK_HIGH COMP;