Пример #1
0
dirToCopy = "/PartySlots/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(srcDir + "/AppIcon*.png", trgDir + dirToCopy)
reskinutils.copyFilesByGlob(srcDir + "/iTunesArtwork*.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(srcDir + "/icon-ipad.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + dirToCopy + "/AppIcon29x29.png", trgDir + dirToCopy + "/AppIcon29x29-1.png")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]", trgDir + dirToCopy + "/[email protected]")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]", trgDir + dirToCopy + "/[email protected]")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]", trgDir + dirToCopy + "/icon1024.png")
reskinutils.checkCopy(21)
print("Done.")

# replace simpleslots/artwork/reskin
print("Replacing reskin assets in artwork...")

dirToCopy = "/SimpleSlots/artwork/reskin"
reskinutils.copyTree(srcDir + dirToCopy, trgDir + dirToCopy)
reskinutils.checkCopy(1)
print("Done.")

# replace simpleslots/artwork/feature_overlay*
print("Replacing feature overlay in artwork...")
dirToCopy = "/SimpleSlots/artwork"
reskinutils.copyFilesByGlob(srcDir + dirToCopy + "/feature_overlay*.png", trgDir + dirToCopy)
reskinutils.checkCopy(2)
print("Done.")

# replace simpleslots/artwork/icon*
print("Replacing icons on assets dir...")

srcIconFiles = ["/AppIcon57x57.png", "/[email protected]", "/AppIcon72x72.png", "/[email protected]"]
trgIconFiles = ["/SimpleSlots/artwork/icon.png", "/SimpleSlots/artwork/[email protected]", "/SimpleSlots/artwork/icon-ipad.png", "/SimpleSlots/artwork/[email protected]"]
Пример #2
0
    print("Replacing worlds assets...")
    for i in range(1, 5):
        reskinutils.copyFilesByGlob(srcAssets + "/game" + str(i) + "*.png",
                                    trgAssets)
    reskinutils.checkCopy(2 * (4 + 3))
    print("Done.")

    # replace reels
    print("Replacing reels assets...")
    reelsDict = ["gems", "horse", "mega", "slot"]
    for i in range(0, len(reelsDict)):
        reskinutils.copyFilesByGlob(srcAssets + "/" + reelsDict[i] + "*.png",
                                    trgAssets)
    reskinutils.checkCopy(len(reelsDict) * 10)
    for i in range(0, len(reelsDict)):
        reskinutils.copyTree(srcAssets + "/" + reelsDict[i],
                             trgAssets + "/" + reelsDict[i])
    reskinutils.checkCopy(len(reelsDict))
    print("Done.")

    # replace icons
    print("Replacing icons...")
    iconsDict = [
        "drawable-hdpi/icon.png", "drawable-mdpi/icon.png",
        "drawable-xhdpi/icon.png"
    ]
    for i in range(0, len(iconsDict)):
        reskinutils.copyFilesByGlob(srcRes + "/" + iconsDict[i],
                                    trgRes + "/" + iconsDict[i])
    reskinutils.checkCopy(len(iconsDict))
    print("Done.")
Пример #3
0
reskinutils.copyFilesByName(trgDir + dirToCopy + "/AppIcon29x29.png",
                            trgDir + dirToCopy + "/AppIcon29x29-1.png")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]",
                            trgDir + dirToCopy + "/[email protected]")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]",
                            trgDir + dirToCopy + "/[email protected]")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]",
                            trgDir + dirToCopy + "/icon1024.png")
reskinutils.checkCopy(21)
print("Done.")

# replace simpleslots/artwork/reskin
print("Replacing reskin assets in artwork...")

dirToCopy = "/SimpleSlots/artwork/reskin"
reskinutils.copyTree(srcDir + dirToCopy, trgDir + dirToCopy)
reskinutils.checkCopy(1)
print("Done.")

# replace simpleslots/artwork/feature_overlay*
print("Replacing feature overlay in artwork...")
dirToCopy = "/SimpleSlots/artwork"
reskinutils.copyFilesByGlob(srcDir + dirToCopy + "/feature_overlay*.png",
                            trgDir + dirToCopy)
reskinutils.checkCopy(2)
print("Done.")

# replace simpleslots/artwork/icon*
print("Replacing icons on assets dir...")

srcIconFiles = [
Пример #4
0
    # replace worlds
    print("Replacing worlds assets...")
    for i in range(1, 5):
        reskinutils.copyFilesByGlob(srcAssets + "/game" + str(i) + "*.png", trgAssets)
    reskinutils.checkCopy(2 * (4 + 3))
    print("Done.")

    # replace reels
    print("Replacing reels assets...")
    reelsDict = ["gems", "horse", "mega", "slot"]
    for i in range(0, len(reelsDict)):
        reskinutils.copyFilesByGlob(srcAssets + "/" + reelsDict[i] + "*.png", trgAssets)
    reskinutils.checkCopy(len(reelsDict) * 10)
    for i in range(0, len(reelsDict)):
        reskinutils.copyTree(srcAssets + "/" + reelsDict[i], trgAssets + "/" + reelsDict[i])
    reskinutils.checkCopy(len(reelsDict))
    print("Done.")

    # replace icons
    print("Replacing icons...")
    iconsDict = ["drawable-hdpi/icon.png", "drawable-mdpi/icon.png", "drawable-xhdpi/icon.png"]
    for i in range(0, len(iconsDict)):
        reskinutils.copyFilesByGlob(srcRes + "/" + iconsDict[i], trgRes + "/" + iconsDict[i])
    reskinutils.checkCopy(len(iconsDict))
    print("Done.")

    # CODE REPLACEMENT
    # ----------------
    # replace game name
    print("Replacing game name...")