[ create a new paste ] login | about

Link: http://codepad.org/T5Zzcnbj    [ raw code | fork ]

C, pasted on Dec 7:
collections {
group {
      name: "tacho";
      images {
        image:  "plate.png" COMP;
        image:  "needle.png" COMP;
        image:  "needle_small.png" COMP;
      }
      parts {
        part {
            name: "plate";
            type: IMAGE;
            mouse_events: 0;
            description {
               state: "default" 0.0;

               visible: 1;
               aspect: 1.0 1.0;
               aspect_preference: BOTH;

               image {
                  normal: "plate.png";
               }
            }
         }
         part {
            name: "needle";
            type: IMAGE;
            mouse_events: 0;

            description {
               state: "default" 0.0;

               visible: 1;
               aspect: 1.0 1.0;
                aspect_preference: BOTH;

               image {
                  normal: "needle.png";
               }

                map {
                    perspective: "needle";
                    light: "needle";
                    on: 1;
                    smooth: 1;
                    perspective_on: 1;
                    backface_cull: 1;
                    alpha: 1;
                    
                    rotation {
                        center: "plate";
                        x: 0.0;
                        y: 0.0;
                        z: 0.0;
                    }
                }

            }
            description {
               state: "right" 0.0;

               inherit: "default" 0.0;

                map {
                    rotation {
                        x: 0.0;
                        y: 0.0;
                        z: 270.0;
                    }
                }
            }

         }

         /*part {
            name: "needle_small";
            type: IMAGE;
            mouse_events: 0;
            
            description {
               state: "default" 0.0;

               visible: 1;
               aspect: 1.0 1.0;

                aspect_preference: BOTH;

               image {
                  normal: "needle_small.png";
               }

                map {
                    perspective: "needle_small";
                    light: "needle_small";
                    on: 1;
                    smooth: 1;
                    perspective_on: 1;
                    backface_cull: 1;
                    alpha: 1;
                    
                    rotation {
                        center: "plate";
                        x: 0.0;
                        y: 0.0;
                        z: 0.0;
                    }
                }

            }
            description {
               state: "right" 0.0;

               inherit: "default" 0.0;

                map {
                    rotation {
                        x: 0.0;
                        y: 0.0;
                        z: 270.0;
                    }
                }
            }

         }*/
      }

    programs {
      program {
         name: "start";
         //the signal "show" is sent by evas_object_show()
         //consequently when the objet is show, this program is called
         signal: "show";
         after: "tacho_right";
      }
    
      program {
         name: "tacho_right";
         action: STATE_SET "right" 0.0;
         transition: DECELERATE 4.0; 
         target: "needle";
         //target: "needle_small";
         after: "tacho_left";
      }
      program {
         name: "tacho_left";
         action: STATE_SET "default" 0.0;
         transition: LINEAR 0.642; // 420° per second
         target: "needle";
         //target: "needle_small";
         after: "start";
      }

    }
}
}


Create a new paste based on this one


Comments: