예제 #1
0
# -*- coding: utf-8 -*-
# @Time    : 2019/2/20 下午8:20

import pymysql
from collections import OrderedDict
import os
import fileinput
import re
import xlrd
import xlwt

import easyGameTool.foreignTools.cocosPikachuTools.ExcelTools as et

allchilesexlsFile = et.getFileName(
    '/Users/admin/Documents/ljworkspace/local/egret/design/stone_age/RussianStone/peizhi',
    ["xls", "xlsx"], [])
for f in allchilesexlsFile:
    if not os.path.isfile(f.replace("xlsx", "xls")):
        et.copyfile(f, f.replace("xlsx", "xls"))

    fp, fn = os.path.split(f)
    ft = fn.split(".")[1]
    if ft == 'xlsx':
        os.remove(f)
# -*- coding: utf-8 -*-
# @Time    : 2018/12/19 下午6:01

# 冬季皮肤替换
import easyGameTool.foreignTools.cocosPikachuTools.ExcelTools as et
import os

isShenDan = True

shendanFile = '/Users/admin/Documents/ljworkspace/local/cocos/assets/pikachu/sanguo/art_pikachu/动画/替换怪物/节日精灵/圣诞'

baseFile = "/Users/admin/Documents/ljworkspace/local/cocos/assets/pikachu/sanguo/art_pikachu/动画/替换怪物"

projectFile = '/Users/admin/Documents/ljworkspace/local/cocos/project/pikachu_russion/app/static/res/unit'

if __name__ == '__main__':

    allImgFile = et.getFileOnlyName(shendanFile, ["png"])

    for f in allImgFile:
        fp, fn = os.path.split(f)
        if not isShenDan:
            shendanFile = baseFile

        et.copyfile(shendanFile + "/" + fn, projectFile + "/" + fn)

    pass
예제 #3
0
# -*- coding: utf-8 -*-
# @Time    : 2019/2/16 下午4:17

#把 所有的图片  放一块 找没翻译的...  c

import easyGameTool.foreignTools.cocosPikachuTools.ExcelTools as et
import easyGameTool.projectConfig as cf
import os

if __name__ == '__main__':
    allTsFile = et.getFileName(
        "/Users/admin/Documents/ljworkspace/local/egret/ProStoneAge/ProStoneAge/tools/sheets",
        ["png", "jpg"], [])
    allTsFile = et.getFileName(
        "/Users/admin/Documents/ljworkspace/local/egret/ProStoneAge/ProStoneAge/StoneAppPro/resource/images",
        ["png", "jpg"], allTsFile)
    for f in allTsFile:
        fp, fn = os.path.split(f)
        et.copyfile(f, "/Users/admin/Desktop/ffushiqitupian/" + fn)
    pass
예제 #4
0
# -*- coding: utf-8 -*-
# @Time    : 2018/12/19 下午6:01

# 冬季皮肤替换
import easyGameTool.foreignTools.cocosPikachuTools.ExcelTools as et
import os

ch = "/Users/admin/Documents/ljworkspace/local/cocos/project/Pikachu/tools/pikachuCCB/ccb"

en = "/Users/admin/Documents/ljworkspace/local/cocos/project/pikachu_englishGit/pikachu_english/tools/pikachuCCB/ccb"

ccbname = "FormChooseLevelPart"
#
#

if __name__ == '__main__':

    allImgFile = et.getFileName(ch, ["ccb"])

    for f in allImgFile:
        fp, fn = os.path.split(f)
        if fn == ccbname + ".ccb":
            et.copyfile(f, en + "/" + fn)

    pass

#ccbList_352
imgList = [
    'UI_VIP_zishebeijing.jpg',
    'cz_zti3.png',
    'ui_zhaunsdj.png',
    'zzz_yff.png',
    "qy_204k.png",
    "ui_dshoq.png",
    "doq_diksmgz.jpg",
]

if __name__ == '__main__':

    allPsdFile = et.getFileName(CF.MACMINI_COCOS_ALLPSDPATH, ["psd"], [])
    allImgDir = {}
    for _path in imgList:
        allImgDir[_path] = 0

    for _path in allPsdFile:
        fp, fn = os.path.split(_path)
        if fn.split('.').pop() == 'psd':
            if fn.replace("psd", "png") in imgList:
                et.copyfile(_path, '/Users/admin/Desktop/psd/' + fn)
                allImgDir[fn.replace("psd", "png")] = 1
            if fn.replace("psd", "jpg") in imgList:
                et.copyfile(_path, '/Users/admin/Desktop/psd/' + fn)
                allImgDir[fn.replace("psd", "jpg")] = 1

    for _name in allImgDir:
        if allImgDir[_name] == 0:
            print(_name + "不存在!!")