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

EDC文件目录的地址映射代码

[复制链接]
发表于 2015-8-12 13:27:48 | 显示全部楼层 |阅读模式
这段代码演示了如何转动.edc使用文件映射。它使用鼠标触发一个基本的动画单击显示旋转处理。
  1. collections {
  2.    group {
  3.                 name: "main";
  4.                 parts{
  5.                          part {
  6.                                  name: "rectangle";
  7.             type: RECT;
  8.             mouse_events: 1;
  9.             description {
  10.                     state: "default" 0.0;
  11.                rel1.relative: 0.25 0.25;
  12.                rel2.relative: 0.75 0.75;
  13.                color: 130 130 200 255;
  14.                map {
  15.                                on: 1;
  16.                                rotation.x: 0;
  17.                                perspective_on: 1;
  18.                }
  19.             }
  20.             description {
  21.                     state: "rotated" 0.0;
  22.                                         inherit: "default" 0.0;
  23.                                         color: 130 130 200 255;
  24.                map {
  25.                                rotation.x: 65;
  26.                }
  27.             }
  28.          }
  29.            }
  30.       programs {
  31.          program {
  32.             name: "animation";
  33.             signal: "mouse,down,*";
  34.             source: "rectangle";
  35.             action: STATE_SET "rotated" 0.0;
  36.             transition: LINEAR 1.0;
  37.             target: "rectangle";
  38.          }
  39.       }      
  40.         }
  41. }
复制代码


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 04:52 , Processed in 0.060626 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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