new Float:vl; \
get_state(PART:"base", st, 30, vl); \
if (strcmp(st, "disabled")) \
- run_program(PROGRAM:"play_button_press"SRC); \
+ play_sample("touch_sound", 1.0); \
} \
- } \
- program { name: "play_button_press"SRC; \
- action: PLAY_SAMPLE "touch_sound" 1.0; \
}
#define GENLIST_PROGRAM_REORDER_SOUND( SRC ) \
}
#define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
- program { name: "selected"; \
+ program { name: "selected_dialog"; \
signal: "elm,state,selected"; \
source: "elm"; \
script { \
run_program(PROGRAM:"target_selected"); \
} \
} \
- program { name: "unselected"; \
+ program { name: "unselected_dialog"; \
signal: "elm,state,unselected"; \
source: "elm"; \
script { \
#define GENLIST_PROGRAMS_NORMAL( TARGET ) \
programs { \
GENLIST_PROGRAM_DEFAULT( TARGET \
+ target: "base"; \
target: "bg"; \
target: "bg_clip"; \
target: "bottom_line"; \
#define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
programs { \
GENLIST_PROGRAM_DEFAULT( TARGET \
+ target: "base"; \
target: "bg_dialogue"; \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
#define GENLIST_PROGRAMS_ENTRY( TARGET ) \
GENLIST_PROGRAM_DEFAULT( TARGET \
+ target: "base"; \
target: "bg"; \
target: "bg_clip"; \
target: "bottom_line"; \
color: GENLIST_LIST_BG_POPUP_COLOR; \
} \
) \
+ GENLIST_PART_RECT("bottom_line", \
+ description { state: "default" 0.0; \
+ color: GENLIST_LIST_LINE1_POPUP_COLOR; \
+ } \
+ description { state: "disabled" 0.0; \
+ color: GENLIST_LIST_LINE1_POPUP_COLOR; \
+ } \
+ ) \
+ GENLIST_PART_RECT("bottom_line2", \
+ description { state: "default" 0.0; \
+ color: GENLIST_LIST_LINE2_POPUP_COLOR; \
+ } \
+ description { state: "disabled" 0.0; \
+ color: GENLIST_LIST_LINE2_POPUP_COLOR; \
+ } \
+ ) \
} \
}