資源簡介
功能: 將由TexturePacker打包的png文件和plist文件解析出對應位置并顯示名字,方便查看。同時也可以將合成的png圖裁剪為小png圖保存。 使用方法: 1.將同名png和plist文件放置在同一目錄下。 2.點擊“導入png”按鈕選擇png圖,或者直接拖拽png/plist/pack進對話框。 3.鼠標在png圖上滑動,右上角即可顯示對應的png圖名字。 4.單擊png圖即可復制名字到剪切板。 5.雙擊列表選項,PNG中自動顯示紅框。 6.點擊“裁剪PNG”,選擇存放目錄,即可進行剪裁。 v1.7更新 修復: 1.移除聯網檢測更新,避免崩潰。 作者:偶爾e網事 blog:http://blog.csdn.net/ja ckystudio/article/details/12867863
基于1.7版本,使用wine打包,mac版本
代碼片段和文件信息
#
#?Both?libxml2mod?and?libxsltmod?have?a?dependancy?on?libxml2.so
#?and?they?should?share?the?same?module?try?to?convince?the?python
#?loader?to?work?in?that?mode?if?feasible
#
import?sys
if?not?hasattr(sys‘getdlopenflags‘):
????import?libxml2mod
????import?libxsltmod
????import?libxml2
else:
????try:
????????from?dl?import?RTLD_GLOBAL?RTLD_NOW
????except?ImportError:
????????RTLD_GLOBAL?=?-1
????????RTLD_NOW?=?-1
????????try:
????????????import?os
????????????osname?=?os.uname()[0]
????????????if?osname?==?‘Linux‘?or?osname?==?‘SunOS‘:
????????????????RTLD_GLOBAL?=?0x00100
????????????????RTLD_NOW?=?0x00002
????????????elif?osname?==?‘Darwin‘:
????????????????RTLD_GLOBAL?=?0x8
????????????????RTLD_NOW?=?0x2
????????????#
????????????#?is?there?a?better?method??
????????????#
#????????????else:
#????????????????print?“libxslt?could?not?guess?RTLD_GLOBAL?and?RTLD_NOW?“?+?\
#??????????????????????“on?this?platform:?%s“?%?(osname)
????????except:
?????????????pass
#????????????print?“libxslt?could?not?guess?RTLD_GLOBAL?and?RTLD_NOW?“?+?\
#??????????????????“on?this?platform:?%s“?%?(osname)
????except:
????????RTLD_GLOBAL?=?-1
????????RTLD_NOW?=?-1
????if?RTLD_GLOBAL?!=?-1?and?RTLD_NOW?!=?-1:
????????try:
????????????flags?=?sys.getdlopenflags()?
????????????sys.setdlopenflags(RTLD_GLOBAL?|?RTLD_NOW)
????????????try:
????????????????import?libxml2mod
????????????????import?libxsltmod
????????????????import?libxml2
????????????finally:
????????????????sys.setdlopenflags(flags)
????????except:
????????????import?libxml2mod
????????????import?libxsltmod
????????????import?libxml2
????else:
????????import?libxml2mod
????????import?libxsltmod
????????import?libxml2
class?transformCtxtbase:
????def?__init__(self?_obj=None):
????????if?_obj?!=?None:?
????????????self._o?=?_obj;
????????????return
????????self._o?=?None
????def?__hash__(self):
????????v?=?libxsltmod.xsltGetTransformContextHashCode(self._o)
????????return?v
????def?__eq__(self?other):
????????if?other?==?None:
????????????return?0
????????v?=?libxsltmod.xsltCompareTransformContextsEqual(self._o?other._o)
????????return?v
????????
class?stylesheetbase:
????def?__init__(self?_obj=None):
????????if?_obj?!=?None:?
????????????self._o?=?_obj;
????????????return
????????self._o?=?None
????def?__hash__(self):
????????v?=?libxsltmod.xsltGetstylesheetHashCode(self._o)
????????return?v
????def?__eq__(self?other):
????????if?other?==?None:
????????????return?0
????????v?=?libxsltmod.xsltComparestylesheetsEqual(self._o?other._o)
????????return?v
class?extensionModule:
????def?_styleInit(self?style?URI):
????????return?self.styleInit(stylesheet(_obj=style)?URI)
????def?_styleShutdown(self?style?URI?data):
????????return?self.styleShutdown(stylesheet(_obj=style)?URI?data)
????def?_ctxtInit(self?ctxt?URI):
????????return?self.ctxtInit(transformCtxt(_obj=ctxt)?URI)
????def?_ctxtShutdown(self?ctxt?URI?data):
????????return?self.ctxtShutdown(transformCtxt(_obj=ctxt)?URI?data)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\Contents\
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\Contents\MacOS\
?????文件????????2415??2019-06-24?17:21??Anti_TexturePacker.app\Contents\MacOS\startwine
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\Contents\Resources\
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\Contents\Resources\English.lproj\
?????目錄???????????0??2019-06-24?17:21??Anti_TexturePacker.app\Contents\Resources\English.lproj\main.nib\
?????文件???????82395??2019-06-24?17:21??Anti_TexturePacker.app\Contents\Resources\Icon.icns
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\_CodeSignature\
?????文件????????4543??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\_CodeSignature\CodeResources
?????目錄???????????0??2019-06-24?17:39??__MACOSX\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\_CodeSignature\
?????文件?????????212??2018-04-29?20:55??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\_CodeSignature\._CodeResources
?????文件?????????212??2018-04-29?20:55??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\.__CodeSignature
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\MacOS\
?????文件???????72080??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\MacOS\Winetricks
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\MacOS\
?????文件?????????212??2018-04-29?20:55??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\MacOS\._Winetricks
?????文件?????????212??2018-04-29?20:55??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\._MacOS
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\Resources\
?????目錄???????????0??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\Resources\English.lproj\
?????文件?????????318??2018-04-29?20:55??Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\Resources\English.lproj\Localizable.strings
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\Resources\
?????目錄???????????0??2019-06-24?17:39??__MACOSX\Anti_TexturePacker.app\Contents\Resources\Winetricks.app\Contents\Resources\English.lproj\
............此處省略12462個文件信息
評論
共有 條評論