找回密码
 立即注册
查看: 2560|回复: 0

在EDC文件夹 tween图像部分调整代码

[复制链接]
发表于 2015-8-12 13:31:36 | 显示全部楼层 |阅读模式
这段代码演示了如何使用 tween参数图像部分。您可以添加多个调整图像,他们将在声明顺序时,图像会改变给定的状态显示。
  1. images {
  2.    image: "image1.png" COMP;
  3.    image: "image2.png" COMP;
  4. }
  5.    
  6. collections {
  7.    group {
  8.                 name: "main";
  9.                 parts{
  10.          part { name: "button";
  11.             type: IMAGE;
  12.             description { state: "default" 0;
  13.                align: 0 0;
  14.                rel1.relative: 0.1 0.3;
  15.                rel2.relative: 0.9 0.4;
  16.                image {
  17.                   normal: "image1.png";
  18.                   tween: "image2.png";
  19.                   middle: DEFAULT;
  20.                }
  21.             }
  22.                         }
  23.                 }
  24.                 programs {
  25.             program {
  26.                 name: "animation";
  27.                 signal: "mouse,down,*";
  28.                 source: "button";
  29.                 action: STATE_SET "default" 0.0;
  30.                 transition: LINEAR 0.1;
  31.                 target: "button";
  32.             }
  33.         }   
  34.         }
  35. }
复制代码


欢迎来到泰泽网:http://www.tizennet.com/ 泰泽论坛:http://bbs.tizennet.com/ 好没有内涵哦,快到设置中更改这个无聊的签名吧!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|泰泽应用|泰泽论坛|泰泽网|小黑屋|Archiver|手机版|泰泽邮箱|泰泽网 ( 蜀ICP备13024062号-1 )

GMT+8, 2024-4-19 13:42 , Processed in 0.063544 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表