On Tue, 19 Nov 2019 20:28:09 +0800 (CST) Jing <[email protected]> said:

I can't reproduce. using edje_player, modifying the start signal to tart
animating on:

signal: "show";
source: "";

so it starts animating as soon as shown.

BTW you can do your flipping of images so much simpler using tweens...

#define CAPTION_ICON_SIZE 128

images.image: "im0.png" COMP;
images.image: "im1.png" COMP;
images.image: "im2.png" COMP;
images.image: "im3.png" COMP;
images.image: "im4.png" COMP;
images.image: "im5.png" COMP;
images.image: "im6.png" COMP;
images.image: "im7.png" COMP;
images.image: "im8.png" COMP;

collections.group { "fresh_group";
    parts {
        image { "fresh"; repeat_events: 1;
            desc { "default"
                min: CAPTION_ICON_SIZE CAPTION_ICON_SIZE;
                max: CAPTION_ICON_SIZE CAPTION_ICON_SIZE;
                image.normal: "im0.png";
                image.tween:  "im1.png";
                image.tween:  "im2.png";
                image.tween:  "im3.png";
                image.tween:  "im4.png";
                image.tween:  "im5.png";
                image.tween:  "im6.png";
                image.tween:  "im7.png";
                image.tween:  "im8.png";
            }
        }
    }
    programs {
        program { name: "start";
            signal: "show"; source: "";
            action: STATE_SET "default";
            transition: LINEAR 1.8;
            target: "fresh";
            after: "start";
        }
        program { name: "stop";
            signal: "STOP_LOADING"; source: "cardstack";
            sequence {
                action: ACTION_STOP;
                target: "start";
                action: STATE_SET "default";
                target: "fresh";
            }
        }
   }
}


> Hi all,
> Below are my parts definition in EDC file,  i  find the memory leak issue
> when use signal "START_LOADING" and "STOP_LOADING" to start and stop the
> image loading. If there anything wrong ?  Please advise, thanks.
> 
> 
> collections.group { "fresh_group";
>     parts {
>     image { "fresh";
>             repeat_events: 1;
>             desc { "default"
>                 min: CAPTION_ICON_SIZE CAPTION_ICON_SIZE; 
>                 max: CAPTION_ICON_SIZE CAPTION_ICON_SIZE; 
>                 anchors.vertical_center: "refresh_weather" VERTICAL_CENTER;
>                 anchors.horizontal_center: "refresh_weather"
> HORIZONTAL_CENTER; image { normal: "refresh_default.png"; }
>             }
> desc { "loading1"
>                 inherit: "default";
>                 image { normal: "refresh_gif1.png"; }
>             }
> desc { "loading2"
>                 inherit: "default";
>                 image { normal: "refresh_gif2.png"; }
>             }
> desc { "loading3"
>                 inherit: "default";
>                 image { normal: "refresh_gif3.png"; }
>             }
> desc { "loading4"
>                 inherit: "default";
>                 image { normal: "refresh_gif4.png"; }
>             }
> desc { "loading5"
>                 inherit: "default";
>                 image { normal: "refresh_gif5.png"; }
>             }
> desc { "loading6"
>                 inherit: "default";
>                 image { normal: "refresh_gif6.png"; }
>             }
> desc { "loading7"
>                 inherit: "default";
>                 image { normal: "refresh_gif7.png"; }
>             }
> desc { "loading8"
>                 inherit: "default";
>                 image { normal: "refresh_gif8.png"; }
>             }
>         }
>     }
>     programs {
>         program {
>             name: "start";
>             signal: "START_LOADING";
>             source: "cardstack";
>             action: STATE_SET "default";
>             target: "fresh";
>             after: "img1";
>         }
>         program {
>             name: "img1";
>             action: STATE_SET "loading1";
>             target: "fresh";
>             transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img2";
>         }
>         program {
>             name: "img2";
>             action: STATE_SET "loading2";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img3";
>         }
> program {
>             name: "img3";
>             action: STATE_SET "loading3";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img4";
>         }
> program {
>             name: "img4";
>             action: STATE_SET "loading4";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img5";
>         }
> program {
>             name: "img5";
>             action: STATE_SET "loading5";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img6";
>         }
> program {
>             name: "img6";
>             action: STATE_SET "loading6";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img7";
>         }
> program {
>             name: "img7";
>             action: STATE_SET "loading7";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img8";
>         }
> program {
>             name: "img8";
>             action: STATE_SET "loading8";
>             target: "fresh";
> transition: LINEAR 0.1;
>             in: 0.1 0.0;
>             after: "img1";
>         }
>         program {
>             name: "stop";
> signal: "STOP_LOADING";
> source: "cardstack";
>             sequence {
>                 action: ACTION_STOP;
>  target: "start";
>             target: "img1";
>             target: "img2";
> target: "img3";
> target: "img4";
> target: "img5";
> target: "img6";
> target: "img7";
> target: "img8";
>                 action: STATE_SET "default";
> target: "fresh";
>             }
>         }
>    }
>  } 
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - [email protected]



_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to