rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=78e3de595fc6f765fb5ca5c7cdd53e437c0eb3a1
commit 78e3de595fc6f765fb5ca5c7cdd53e437c0eb3a1 Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Fri Dec 30 09:08:13 2016 +0200 Example: add group for test Image sets with border. --- example/example.edc | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/example/example.edc b/example/example.edc index b8393f8..4e0d221 100644 --- a/example/example.edc +++ b/example/example.edc @@ -40,6 +40,13 @@ images { image { image: "tux.png" RAW; size: 80 80 89 89; } image { image: "tux-sailor.svg" RAW; size: 90 90 99 99; } } + set { name: "image_set_three"; + image { image: "horse.jpg" RAW; size: 30 30 39 39; } + image { image: "map.png" RAW; size: 40 40 49 49; } + image { image: "treasure-chest.png" RAW; size: 50 50 59 59; } + image { image: "horse.jpg" RAW; size: 400 400 690 690; } + image { image: "horse.jpg" RAW; size: 700 700 990 990; border: 50 50 50 50;} + } } color_classes { @@ -267,7 +274,49 @@ collections { } } } - group { "test/parts/IMAGE/set"; + group { "test/parts/IMAGE/set2"; + parts { + part { name: "image_with_set"; type: IMAGE; + description { state: "default" 0.0; + min: 30 30; + max: 30 30; + image.normal: "image_set_three"; + } + description { state: "state2" 0.0; + inherit: "default" 0.0; + min: 40 40; + max: 40 40; + } + description { state: "state3" 0.0; + inherit: "default" 0.0; + min: 50 50; + max: 50 50; + } + } + } + programs { + program { name: "to_state2"; + signal: "mouse,down,1"; + source: "*"; + action: STATE_SET "state2" 0.0; + transition: LINEAR 0.5 CURRENT; + target: "image_with_set"; + after: "to_state3"; + } + program { name: "to_state3"; + action: STATE_SET "state3" 0.0; + transition: LINEAR 0.5 CURRENT; + target: "image_with_set"; + after: "to_default"; + } + program { name: "to_default"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5 CURRENT; + target: "image_with_set"; + } + } + } +group { "test/parts/IMAGE/set"; parts { part { name: "image_with_set"; type: IMAGE; description { state: "default" 0.0; @@ -353,7 +402,8 @@ collections { } } } - group { name: "test/sounds"; + + group { name: "test/sounds"; parts { part { name: "click_me_wav"; type: TEXT; description { state: "default"; color: 0 0 0 255; --