Changeset 87


Ignore:
Timestamp:
06/03/09 15:37:05 (10 years ago)
Author:
maximinus_parpg
Message:

Grrrr. Fixed for barra

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/utilities/gfxsplit.py

    r86 r87  
    9494    x_offset = 0 
    9595    for t in data: 
     96        print t 
    9697        if((t[1] != 0)and(last_x == True)): 
    9798            # switchback, so this tile must fill the whole width 
     
    153154            # make the data a bit easier to understand 
    154155            if(i[0] == 'x'): 
    155                 ndata.append(int(i[1]),0) 
     156                ndata.append([int(i[1]),0]) 
    156157            else: 
    157                 ndata.append(0,int(i[1])) 
     158                ndata.append([0,int(i[1])]) 
    158159    # then load the file 
    159160    try: 
     
    168169    # split into seperate files 
    169170    # the [:-4] is used to split off the .png from the filename 
    170     images = splitImage(image, filename[:-4], txt_data) 
     171    images = splitImage(image, filename[:-4], ndata) 
    171172    # save it and we are done 
    172173    if(images == []): 
Note: See TracChangeset for help on using the changeset viewer.