.plist 中各個key的含義

.plisthtml

[html] view plaincopyprint?app

<EMBED id=ZeroClipboardMovie_1 height=14 name=ZeroClipboardMovie_1 type=application/x-shockwave-flash align=middle pluginspage=http://www.macromedia.com/go/getflashplayer width=29 src=http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf wmode="transparent" flashvars="id=1&width=29&height=14" allowfullscreen="false" allowscriptaccess="always" bgcolor="#ffffff" quality="best" menu="false" loop="false">oop

  1. <key>scorIcon.png</key>  spa

  2.            <dict>  .net

  3.                <key>frame</key>  htm

  4.                <string>{{937,2},{56,63}}</string>  blog

  5.                <key>offset</key>  圖片

  6.                <string>{0,0}</string>  ip

  7.                <key>rotated</key>  get

  8.                <true/>  

  9.                <key>sourceColorRect</key>  

  10.                <string>{{0,0},{56,63}}</string>  

  11.                <key>sourceSize</key>  

  12.                <string>{56,63}</string>  

  13.            </dict>  

例如上面的一個key


frame:在大圖中的座標已經寬度,程序會根據這個來作剪輯。

offset:在合成大圖的過程當中texture-package會吧原圖透明的部分刪除,這張新的圖片與原圖它們的中心點之間的向量。

rotated:若是值爲true,圖片順時針旋轉90度

sourceColorRect:截取原圖透明部分的座標已經大小。

sourceSize:原圖的大小。也是sprite的大小

相關文章
相關標籤/搜索