Hi All,
Based on my understanding Currently we do not have a possibility to relatively
rotate parts in edc.
for e.g.: There is a base edc part to which multiple parts are relative to and
base part is rotated, now I expect other parts
also to rotate along with base part, but they wont rotate as the actual
position of base object is not changed.
But If we have a requirement In which we need multiple relative objects to also
rotate along with base object how will we do?
Currently we have to rotate those objects also by changing the state, but still
the output may not be exactly desired output + too much of code also needed for
the same.
so why not have an option in map say for e.g: map.rel_to: "base part"; based on
which the relative parts also will rotate along with base part? Does this make
sense? and Does it have the possibility to be realized based on current code?
Sample edc: below we have 2 rectangles, rectangle 2 is relative to rectangle 1
but when rectangle 1 is rotated only rectangle 1 gets rotated and not rectangle
2.
so how about I add a param like above in rectangle 2 and expect rectangle 2
also to rotate?
collections {
group {
name: "main";
parts{
part {
name: "rectangle";
type: RECT;
mouse_events: 1;
description {
state: "default" 0.0;
rel1.relative: 0.25 0.25;
rel2.relative: 0.75 0.75;
color: 130 130 200 255;
map {
on: 1;
rotation.z: 0;
perspective_on: 1;
}
}
description {
state: "rotated" 0.0;
inherit: "default" 0.0;
color: 130 130 200 255;
map {
rotation.z: 90;
}
}
}
part {
name: "rectangle2";
type: RECT;
mouse_events: 1;
description {
state: "default" 0.0;
rel1.to:"rectangle";
rel2.to:"rectangle";
rel1.relative: 0.25 0.25;
rel2.relative: 0.75 0.75;
map {
on: 1;
rotation.z: 0;
perspective_on: 1;
map.rel_to: "rectangle"; //Possible? Make's sense?
}
color: 0 255 0 255;
}
}
programs {
program {
name: "animation";
signal: "mouse,down,*";
source: "rectangle";
action: STATE_SET "rotated" 0.0;
transition: LINEAR 1.0;
target: "rectangle";
}
}
}
}
Best Regards,
Shilpa Singh
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel