I am attempting to learn edje edc by find example programs and fiddling with 
them.  Right now I am trying to determine where a mouse click is in a RECT and 
place an image there.  I don't NEED to do it all in edje edc, but I wanted to 
see if it's possible.  I started with a program by Jonathan Atton (watchwolf 
[at] fr).

from https://gitorious.org/btdrucke/explode/trees/master, this is my relatively 
small edc file.  I want to find the mouse click coordinates and use them to 
change the offset of the "expxlode1" image.  

Any thoughts?  Thanks!

Ben
-----------------

collections {
   group {
      name: "explode";
      min: 500 500;
      max: 500 500;

      images {
         image: "explode1_1.png" COMP;
         image: "explode1_2.png" COMP;
         image: "explode1_3.png" COMP;
         image: "explode1_4.png" COMP;
         image: "explode1_5.png" COMP;
         image: "explode1_6.png" COMP;
         image: "explode1_7.png" COMP;
         image: "explode1_8.png" COMP;
      }
      parts {
         part {
            name: "background";
            type: RECT;
            mouse_events: 1;
            description {
               state: "default" 0.0;
               color: 40 0 0 255;
            }
         }
         part {
            name: "explode1";
            type: IMAGE;
            mouse_events: 1;
            scale: 0;
            description {
               state: "default" 0.0;
               //the part is not visible
               visible: 0;
               //aspect: 1.0 1.0;
               min: 50 50;
               max: 50 50;
               rel1 { 
                  relative: -1.0 -1.0; 
                  to: background; 
                  offset: 0 0;
               }
               //the animation start and end with the image "normal"
               //in our case this image is empty.
               image {
                  tween: "explode1_1.png";
                  tween: "explode1_2.png";
                  tween: "explode1_3.png";
                  tween: "explode1_4.png";
                  tween: "explode1_5.png";
                  tween: "explode1_6.png";
                  tween: "explode1_7.png";
                  normal: "explode1_8.png";
               }
            }
            description {
               //the part is visible
               state: "explode" 0.0;
               inherit: "default" 0.0;
               visible: 1;
               color: 255 255 255 255;
            }
         }
      }

      program {
         name: "position_explode";
         source, "background";
         signal, "mouse,clicked,1";
         //action: PARAM_SET "explode1" ???
         after: "start_explode";
      }

      program {
         name: "start_explode";
         action: STATE_SET "explode" 0.0;
         transition: LINEAR 0.5;
         target: "explode1";
         after: "end_explode";
      }
      program {
         name: "end_explode";
         action: STATE_SET "default" 0.0;
         target: "explode1";
       }
}
}


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to