在EDC文件夹 tween图像部分调整代码
这段代码演示了如何使用 tween参数图像部分。您可以添加多个调整图像,他们将在声明顺序时,图像会改变给定的状态显示。images {
image: "image1.png" COMP;
image: "image2.png" COMP;
}
collections {
group {
name: "main";
parts{
part { name: "button";
type: IMAGE;
description { state: "default" 0;
align: 0 0;
rel1.relative: 0.1 0.3;
rel2.relative: 0.9 0.4;
image {
normal: "image1.png";
tween: "image2.png";
middle: DEFAULT;
}
}
}
}
programs {
program {
name: "animation";
signal: "mouse,down,*";
source: "button";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.1;
target: "button";
}
}
}
}
页:
[1]