return strOut;
}
--(NSImage*)readNSImage:(FILE*)fp imgOut:(NSImage*)imgOut dcnt:(int)dcnt dfix:(int)dfix{
+-(NSImage*)readNSImage:(FILE*)fp imgOut:(NSImage*)imgOut dcnt:(int*)dcnt dfix:(int*)dfix{
unsigned char idat[1024];
int size = 0;
+ *dcnt = [self readInt:fp];
+ *dfix = [self readInt:fp];
+
NSMutableData *binaryData = [NSMutableData dataWithCapacity:sizeof(idat)];
fpos_t fpt = 0;
- for(int i = 0;i < dcnt;i++){
+ for(int i = 0;i < *dcnt;i++){
size += fread(idat, 1, 1024, fp);
- if(dcnt-1 == i){
- fpt += dfix;
+ if(*dcnt-1 == i){
+ fpt += *dfix;
fsetpos(fp, &fpt);
}
sdd2[datRow].dB[r].dead = (int)[self readInt:fp];
/*
- sdd2[datRow].dB[r].imgAdCnt = (int)[self readInt:fp];
- sdd2[datRow].dB[r].imgAdFix = (int)[self readInt:fp];
+
sdd2[datRow].dB[r].img = [self readNSImage:fp imgOut:sdd2[datRow].dB[r].img dcnt:sdd2[datRow].dB[r].imgAdCnt dfix:sdd2[datRow].dB[r].imgAdFix];
*/
[self readBuildChipD:fp val:&sdd2[datRow].dB[r].C];
sdd2[datRow].dU[r].army = [[self readNSString:fp strOut:sdd2[datRow].dU[r].army] retain];
/*
- sdd2[datRow].dU[r].imgAdCnt = (int)[self readInt:fp];
- sdd2[datRow].dU[r].imgAdFix = (int)[self readInt:fp];
+
sdd2[datRow].dU[r].img = [self readNSImage:fp imgOut:sdd2[datRow].dU[r].img dcnt:sdd2[datRow].dU[r].imgAdCnt dfix:sdd2[datRow].dU[r].imgAdFix];
*/
sdd2[datRow].name = [[self readNSString:fpi strOut:sdd2[datRow].name] retain];
-
- sdd2[datRow].imgAdressCnt = (int)[self readInt:fpi];
- sdd2[datRow].imgAdressFix = (int)[self readInt:fpi];
- sdd2[datRow].img = [[self readNSImage:fpi imgOut:sdd2[datRow].img dcnt:sdd2[datRow].imgAdressCnt dfix:sdd2[datRow].imgAdressFix] retain];
+
+ sdd2[datRow].img = [[self readNSImage:fpi imgOut:sdd2[datRow].img dcnt:&sdd2[datRow].imgAdressCnt dfix:&sdd2[datRow].imgAdressFix] retain];
sdd2[datRow].MFselectedRow = (int)[self readInt:fpi];
sdd2[datRow].storyNumb = (int)[self readInt:fpi];
wtfom.onlyOnceOpening = (int)[self readInt:fpi];
wtfom.newOpeningIsShown = (int)[self readInt:fpi];
- wtfom.adCntIT = (int)[self readInt:fpi];
- wtfom.adFixIT = (int)[self readInt:fpi];
- wtfom.imgTitle = [[self readNSImage:fpi imgOut:wtfom.imgTitle dcnt:wtfom.adCntIT dfix:wtfom.adFixIT] retain];
+ wtfom.imgTitle = [[self readNSImage:fpi imgOut:wtfom.imgTitle dcnt:&wtfom.adCntIT dfix:&wtfom.adFixIT] retain];
directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
fclose(fpi);
}
+
+
+-(void)saveStandImages{
+
+ int cntSTAND = 0;
+ int cntBASE = 0;
+ int cntLAYER = 0;
+
+ I = Itop;
+ cntSTAND = 0;
+ while (I) {
+ IBtop = I->B;
+
+
+
+ cntBASE = 0;
+ while(I->B){
+ IBLtop = I->B->L;
+
+
+
+
+ cntLAYER = 0;
+ while(I->B->L){
+
+
+
+
+
+ I->B->L = I->B->L->next;
+ cntLAYER++;
+ }I->B->L = IBLtop;
+ I->B->cntLAYER = cntLAYER;
+ I->B = I->B->next;
+ cntBASE++;
+ }I->B = IBtop;
+ I->cntBASE = cntBASE;
+ I = I->next;
+ cntSTAND++;
+ }I = Itop;
+
+
+ while(I){
+ stand.cntSTAND = cntSTAND;
+ I = I->next;
+ }I = Itop;
+
+
+ NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+
+ NSString *Cpath = @"data/Scenario/";
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath];
+
+ FILE *fp;
+
+ fp = fopen(STANDFILE_NAME, "wb");
+ if(!fp)
+ return;
+
+ [self writeInt:fp val:stand.cntSTAND];
+ while (I) {
+ [self writeInt:fp val:I->index];
+ [self writeNSString:fp str:I->name];
+ [self writeInt:fp val:I->registerNum];
+
+
+ [self writeInt:fp val:I->cntBASE];
+ IBtop = I->B;
+ while(I->B){
+ [self writeInt:fp val:I->B->index];
+ [self writeNSString:fp str:I->B->name];
+ [self writeNSImage:fp str:I->B->img adCnt:&I->B->imgAdCnt adFix:&I->B->imgAdFix];
+ [self writeInt:fp val:I->B->x];
+ [self writeInt:fp val:I->B->y];
+ [self writeInt:fp val:I->B->z];
+
+ [self writeInt:fp val:I->B->cntLAYER];
+ IBLtop = I->B->L;
+ while(I->B->L){
+ [self writeInt:fp val:I->B->L->index];
+ [self writeNSString:fp str:I->B->L->name];
+ [self writeNSImage:fp str:I->B->L->img adCnt:&I->B->L->imgAdCnt adFix:&I->B->L->imgAdFix];
+ [self writeInt:fp val:I->B->L->x];
+ [self writeInt:fp val:I->B->L->y];
+ [self writeInt:fp val:I->B->L->z];
+ [self writeInt:fp val:I->B->L->visible];
+ [self writeInt:fp val:I->B->L->visibleInstant];
+
+ I->B->L = I->B->L->next;
+ }I->B->L = IBLtop;
+ I->B = I->B->next;
+ }I->B = IBtop;
+ I = I->next;
+ }I = Itop;
+
+ fclose(fp);
+}
+
+-(void)loadStandImages{
+
+
+ NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+
+ NSString *Cpath = @"data/Scenario/";
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath];
+
+ FILE *fp;
+
+ fp = fopen(STANDFILE_NAME, "rb");
+ if(!fp)
+ return;
+
+ stand.cntSTAND = (int)[self readInt:fp];
+ for (int i = 0;i < stand.cntSTAND;i++){
+
+ if(i == 0){
+ stand.S = calloc(1, sizeof(STAND));
+ if(i + 1 < stand.cntSTAND)
+ stand.S->next = calloc(1, sizeof(STAND));
+ Itop = stand.S;
+ }else if(i + 1 < stand.cntSTAND)
+ stand.S->next = calloc(1, sizeof(STAND));
+
+ stand.S->index = (int)[self readInt:fp];
+ stand.S->name = [[self readNSString:fp strOut:stand.S->name] retain];
+ stand.S->registerNum = (int)[self readInt:fp];
+
+ stand.S->cntBASE = (int)[self readInt:fp];
+ IBtop = stand.S->B;
+ for (int j = 0;j < stand.S->cntBASE;j++){
+ if(j == 0){
+ stand.S->B = calloc(1, sizeof(BASE));
+ if(j + 1 < stand.S->cntBASE)
+ stand.S->B->next = calloc(1, sizeof(BASE));
+ IBtop = stand.S->B;
+ }else if(j + 1 < stand.S->cntBASE)
+ stand.S->B->next = calloc(1, sizeof(BASE));
+
+ stand.S->B->index = (int)[self readInt:fp];
+ stand.S->B->name = [[self readNSString:fp strOut:stand.S->B->name] retain];
+ stand.S->B->img = [[self readNSImage:fp imgOut:stand.S->B->img dcnt:&stand.S->B->imgAdCnt dfix:&stand.S->B->imgAdFix] retain];
+ stand.S->B->x = (int)[self readInt:fp];
+ stand.S->B->y = (int)[self readInt:fp];
+ stand.S->B->z = (int)[self readInt:fp];
+
+ stand.S->B->cntLAYER = (int)[self readInt:fp];
+ IBLtop = stand.S->B->L;
+ for (int k = 0;k < stand.S->B->cntLAYER;k++){
+ if(k == 0){
+ stand.S->B->L = calloc(1, sizeof(LAYER));
+ if(k + 1 < stand.S->B->cntLAYER)
+ stand.S->B->L->next = calloc(1, sizeof(LAYER));
+ IBLtop = stand.S->B->L;
+ }else if(k + 1 < stand.S->B->cntLAYER)
+ stand.S->B->L->next = calloc(1, sizeof(LAYER));
+
+
+ stand.S->B->L->index = (int)[self readInt:fp];
+ stand.S->B->L->name = [[self readNSString:fp strOut:stand.S->B->L->name] retain];
+ stand.S->B->L->img = [[self readNSImage:fp imgOut:stand.S->B->L->img dcnt:&stand.S->B->L->imgAdCnt dfix:&stand.S->B->L->imgAdFix] retain];
+ stand.S->B->L->x = (int)[self readInt:fp];
+ stand.S->B->L->y = (int)[self readInt:fp];
+ stand.S->B->L->z = (int)[self readInt:fp];
+ stand.S->B->L->visible = (int)[self readInt:fp];
+ stand.S->B->L->visibleInstant = (int)[self readInt:fp];
+
+ stand.S->B->L = stand.S->B->L->next;
+ }stand.S->B->L = IBLtop;
+ stand.S->B = stand.S->B->next;
+ }stand.S->B = IBtop;
+ stand.S = stand.S->next;
+ }stand.S = Itop;
+
+ I = stand.S;
+
+ fclose(fp);
+}
+
+
-(void)openingAVPVfunc{
if(openingAVP && openingAVPVisActive){
[TV1 setTarget:self];
[TV1 setAction:@selector(TV1sgl:)];
+ [TV1 setDoubleAction:@selector(TV1dbl:)];
MA1 = [NSMutableArray new];
[TV2 setTarget:self];
[TV2 setAction:@selector(TV2sgl:)];
+ [TV2 setDoubleAction:@selector(TV2dbl:)];
MA2 = [NSMutableArray new];
deletedName = [NSMutableArray new];
baseListDC = @{@"1":baseListMA};
+
+ [self loadStandData];
+ [self loadData];
}
-(id)init{
TXCPY[i].fileName = NULL;
}
- OMFGflag = true;
[self initText];
[self addLineList];
[self initFileDirectory];
- [self loadStandData];
- [self loadData];
+
+ OMFGflag = true;
Irow = -1;
IBrow = -1;
IBLrow = -1;
st = -1;
[textListAC setSelectionIndex:9999];
+ /*
I = Itop;
while(I){
I = I->next;
}I = Itop;
-
+ */
SEMArow = -1;
TXCPYcpy = true;
return self;
}
+-(void)TV1dbl:(id)sender{
+
+ TVCrow1 = -1;
+ TVCrow2 = -1;
+ IBrow = -1;
+ IBLrow = -1;
+ [AC1 setSelectionIndex:9999];
+
+}
+
+-(void)TV2dbl:(id)sender{
+
+ TVCrow2 = -1;
+ IBLrow = -1;
+ [AC2 setSelectionIndex:9999];
+}
+
+-(void)setTFpos{
+
+ [TFposX setStringValue:[NSString stringWithFormat:@"%d",imgGx]];
+ [TFposX setStringValue:[NSString stringWithFormat:@"%d",imgGy]];
+}
-(void)ClickSETV:(id)sender{
-(void)TV1sgl:(id)sender{
- static NSInteger postClicedrow;
- postClicedrow = TVCrow1;
+ IBrow = (int)[TV1 clickedRow];
+ if(!b) return;
- I = Itop;
+ TV1sglFlag = true;
+ TV2sglFlag = false;
- for(int i = 0;i < Irow;i++){
+ TVCrow1 = [TV1 clickedRow];
+ TVCrow2 = [TV2 clickedRow];
+
+ [self initMA2];
+
+ layerClickedFlag = false;
+ baseClickedFlag = true;
+
+ IBrow = (int)[TV1 clickedRow];
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
I = I->next;
}
- b = I->B;
+ if(!I)
+ return;
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
- if(!b) return;
+ if(!I->B)
+ return;
+ [TFposX setStringValue:[NSString stringWithFormat:@"%d", I->B->x]];
+ [TFposY setStringValue:[NSString stringWithFormat:@"%d", I->B->y]];
- TV1sglFlag = true;
- TV2sglFlag = false;
- TVCrow1 = [TV1 clickedRow];
- TVCrow2 = [TV2 clickedRow];
+ I->B = IBtop;
+ I = Itop;
+}
+
+-(void)initMA2{
[self willChangeValueForKey:@"MA2"];
[MA2 removeAllObjects];
[self didChangeValueForKey:@"MA2"];
- BASE *bTop = b;
+ I = Itop;
+
+ for(int i = 0;i < Irow;i++){
+ I = I->next;
+ }
+
+ b = I->B;
+
+ BASE *bTop = I->B;
b = bTop;
- for (int i = 0;i < TVCrow1;i++) {
+ for (int i = 0;i < IBrow;i++) {
b = b->next;
}
- if(TVCrow1 >= 0 && b){
+ if(IBrow >= 0 && b){
LAYER *lTop = b->L;
}
b = bTop;
+ [AC2 setSelectionIndex:9999];
I = Itop;
- if(TVCrow1 != postClicedrow) layerLoadOver = true;
}
-(void)TV2sgl:(id)sender{
+ IBLrow = (int)[TV2 clickedRow];
+
TVCrow2 = [TV2 clickedRow];
//if(!b->L) return;
TV2sglFlag = true;
TV1sglFlag = false;
+ layerClickedFlag = true;
+ baseClickedFlag = false;
+
+ IBLrow = (int)[TV2 clickedRow];
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
+ I = I->next;
+ }
+
+ if(!I)
+ return;
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
+ if(!I->B)
+ return;
+ IBLtop = I->B->L;
+ for (int j = 0;j < IBLrow;j++) {
+ I->B->L = I->B->L->next;
+ }
+ if(!I->B->L)
+ return;
+
+ [TFposX setStringValue:[NSString stringWithFormat:@"%d",I->B->L->x]];
+ [TFposY setStringValue:[NSString stringWithFormat:@"%d",I->B->L->y]];
+
+ I->B->L = IBLtop;
+ I->B = IBtop;
+ I = Itop;
+
}
-(void)DoubleClickSTAND:(id)sender{
if(Irow < 0) return;
+
+ /*
+ I = Itop;
+ for(int i = 0;i < [standListMA count];i++){
+ I->name = [[standListMA[i] valueForKey:@"name"] retain];
+
+ I = I->next;
+ }I = Itop;
+ */
- if(![standListMA[Irow] valueForKey:@"file"])
- return;
- if([[standListMA[Irow] valueForKey:@"file"] isEqualToString:@""])
- return;
- if([[standListMA[Irow] valueForKey:@"file"] isEqualToString:@"(null)"])
- return;
- [self initLineBaseLayer];
+ //[self initLineBaseLayer];
IBrow = -1;
IBLrow = -1;
[baseListAC setSelectionIndex:9999];
[self loadStandData];
[self loadData];
[self initMA1MA2];
+
+ [AC1 setSelectionIndex:9999];
+ [AC2 setSelectionIndex:9999];
[standEditorPanel makeKeyAndOrderFront:nil];
}
-(void)ClickSTAND:(id)sender{
Irow = (int)[standListTV clickedRow];
+
}
-(void)DoubleClickBASE:(id)sender{
}
-(void)ClickBASE:(id)sender{
+
+
+
/*
IBrow = (int)[baseListTV clickedRow];
[layerListAC setSelectionIndex:9999];
*/
}
+-(IBAction)TFposXsubmit:(id)sender{
+
+ if(baseClickedFlag && IBrow >= 0){
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
+ I = I->next;
+ }
+
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
+
+ I->B->x = [TFposX intValue];
+
+ I->B = IBtop;
+
+ I = Itop;
+
+ }else if(layerClickedFlag && IBrow >= 0){
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
+ I = I->next;
+ }
+
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
+
+ IBLtop = I->B->L;
+ for (int j = 0;j < IBLrow;j++) {
+ I->B->L = I->B->L->next;
+ }
+
+
+ I->B->L->x = [TFposX intValue];
+
+ I->B->L = IBLtop;
+ I->B = IBtop;
+ I = Itop;
+
+ }else{
+
+
+
+ }
+
+}
+-(IBAction)TFposYsubmit:(id)sender{
+
+ if(baseClickedFlag && IBrow >= 0){
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
+ I = I->next;
+ }
+
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
+
+ I->B->y = [TFposY intValue];
+
+ I->B = IBtop;
+
+ I = Itop;
+
+ }else if(layerClickedFlag && IBrow >= 0){
+
+ I = Itop;
+ for (int i = 0;i < Irow;i++) {
+ I = I->next;
+ }
+
+ IBtop = I->B;
+ for (int j = 0;j < IBrow;j++) {
+ I->B = I->B->next;
+ }
+
+ IBLtop = I->B->L;
+ for (int j = 0;j < IBLrow;j++) {
+ I->B->L = I->B->L->next;
+ }
+
+
+ I->B->L->y = [TFposY intValue];
+
+ I->B->L = IBLtop;
+ I->B = IBtop;
+ I = Itop;
+
+ }else{
+
+
+
+ }
+}
+
-(void)ClickLAYER:(id)sender{
+
+
+
/*
IBLrow = (int)[layerListTV clickedRow];
-(void)EventLoop2:(NSTimer *)timer{
+ [SESTIV setImage:I->B->img];
+
TX[st].S = STRtop[st];
if (st >= 0 && LLrow >= 0) {
if(SEstandImgST)
[SESTIV setImage:SEstandImgST];
- if(standEditorFlag){
+ while(standEditorFlag){
I = Itop;
for(int i = 0;i < Irow;i++){
if(!I) {
I = Itop;
- return;
+ break;
}
b = b->next;
}
- if(TVCrow1 == -1) TVCrow2 = -1;
+ if(TVCrow1 == -1) {
+ TVCrow2 = -1;
+ break;
+ }
if(TVCrow1 >= 0 && b && [MA1 count] > 0){
int value = [[[MA1 objectAtIndex:TVCrow1] valueForKeyPath:@"z"] intValue];
b->z = value;
b->img = [IV1 image];
}
- if(TVCrow2 == -1) {b = bTop; return;}
+ if(TVCrow2 == -1) {b = bTop; break;}
LAYER *lTop;
if(b) lTop = b->L;
I = Itop;
layerLoadOver = false;
+ break;
}
STRtop[st] = STRtop[st];
[[NSFileManager defaultManager] createDirectoryAtPath:pathFOLDER withIntermediateDirectories:YES attributes:nil error:nil];
}
+ InitialData = [NSData dataWithContentsOfFile:@"data/StringList/preset2.txt"];
+
+ if(!InitialData){
+ [[NSFileManager defaultManager] createDirectoryAtPath:@"data/StringList/preset2.txt" withIntermediateDirectories:YES attributes:nil error:nil];
+ }
+
NSArray *Farray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pathFOLDER error:nil];
NSMutableArray *MA = [NSMutableArray new];
}
-(IBAction)backStand:(id)sender{
+ I = Itop;
+ for(int i = 0;i < [standListMA count];i++){
+ I->name = [[standListMA[i] valueForKey:@"name"] retain];
+
+ I = I->next;
+ }I = Itop;
+
[self saveStandData];
[self saveData];
[self loadStandData];
-(IBAction)submitStand:(id)sender{
[standEditorPanel close];
//[self saveDataStand];
- [self saveStandData];
+ I = Itop;
[self loadStandData];
+ IBrow = -1;
+ IBLrow = -1;
TVCrow1 = -1;
TVCrow2 = -1;
[standPanel makeKeyAndOrderFront:nil];
}
-(IBAction)removeLineStand:(id)sender{
- /*
- Itop = I;
+
+
+
+
+ NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+ NSString *path = @"data/Scenario/img/";
+
+
+ I = Itop;
if(Irow == -1){
Irow = (int)[standListMA count] - 1;
if(Irow == 0){
I = Itop;
+ for(int i = 0;i < Irow;i++){
+ I= I->next;
+ }
+ IBtop = I->B;
+ while (I->B) {
+
+ IBLtop = I->B->L;
+ while (I->B->L) {
+
+
+ I->B->L = I->B->L->next;
+ }I->B->L = IBLtop;
+
+ I->B = I->B->next;
+ }I->B = IBtop;
+
+ I = Itop;
+
I = I->next;
Itop = I;
+
}else if(Irow == [standListMA count] - 1){
I = Itop;
while(I->next->next){
I = I->next;
}
+
+ IBtop = I->next->B;
+ while (I->next->B) {
+
+ IBLtop = I->next->B->L;
+ while (I->next->B->L) {
+
+ I->next->B->L = I->next->B->L->next;
+ }I->next->B->L = IBLtop;
+
+ I->next->B = I->next->B->next;
+ }I->next->B = IBtop;
+
+
I->next = NULL;
}else{
I = Itop;
for (int i = 0; i < Irow - 1;i++)
I = I->next;
+
+ IBtop = I->next->B;
+ while (I->next->B) {
+
+ IBLtop = I->next->B->L;
+ while (I->next->B->L) {
+
+
+ I->next->B->L = I->next->B->L->next;
+ }I->next->B->L = IBLtop;
+
+
+ I->next->B = I->next->B->next;
+ }I->next->B = IBtop;
+
I->next = I->next->next;
}
Inumb--;
}
I = Itop;
- */
- NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
- [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
- NSString *path = @"data/Scenario/";
+ /*
I = Itop;
if(1){
}
Inumb--;
Irow = -1;
-
+ */
[self saveStandData];
[self saveData];
[self loadStandData];
bTop = calloc(1, sizeof(BASE));
b = bTop;
b->name = [@"新キャラ" retain];
- b->postName = NULL;
b->z = 100;
b->L = NULL;
[dict setValue:[NSString stringWithFormat:@"%@", b->name] forKey:@"name"];
[MA1 insertObject:dict atIndex:[MA1 count]];
[self didChangeValueForKey:@"MA1"];
[AC1 setSelectionIndex:999];
- }else if(TVCrow1 == -1){
+ }else if(IBrow == -1){
while (b->next) {
b = b->next;
}
b->next = calloc(1, sizeof(BASE));
b = b->next;
b->name = [@"新キャラ" retain];
- b->postName = NULL;
+
b->z = 100;
b->L = NULL;
[dict setValue:[NSString stringWithFormat:@"%@", b->name] forKey:@"name"];
[self didChangeValueForKey:@"MA1"];
[AC1 setSelectionIndex:999];
- }else if(TVCrow1 > 0){
- for (int i = 0; i < TVCrow1-1; i++) {
+ }else if(IBrow > 0){
+ for (int i = 0; i < IBrow-1; i++) {
b = b->next;
}
b->next->next = tmp;
b = b->next;
b->name = [@"新キャラ" retain];
- b->postName = NULL;
+
b->z = 100;
b->L = NULL;
[dict setValue:[NSString stringWithFormat:@"%@", b->name] forKey:@"name"];
[dict setValue:[NSString stringWithFormat:@"%d", b->z] forKey:@"z"];
[self willChangeValueForKey:@"MA1"];
- [MA1 insertObject:dict atIndex:TVCrow1];
+ [MA1 insertObject:dict atIndex:IBrow];
[self didChangeValueForKey:@"MA1"];
- [AC1 setSelectionIndex:999];
+ [AC1 setSelectionIndex:IBrow];
}else{
bTop = b;
tmp = *b;
//LAYER *tmp2 = (LAYER*)malloc(sizeof(LAYER));
b->name = [@"新キャラ" retain];
- b->postName = NULL;
+
b->z = 100;
b->L = NULL;
b->next = calloc(1, sizeof(BASE));
[dict setValue:[NSString stringWithFormat:@"%d", b->z] forKey:@"z"];
[self willChangeValueForKey:@"MA1"];
- [MA1 insertObject:dict atIndex:TVCrow1];
+ [MA1 insertObject:dict atIndex:IBrow];
[self didChangeValueForKey:@"MA1"];
- [AC1 setSelectionIndex:999];
+ [AC1 setSelectionIndex:IBrow];
+
}
b = bTop;
I = Itop;
}
I = Itop;
+
+ [self initMA2];
}
-(IBAction)insert2:(id)sender{
LAYER *l = b->L;
blTop = l;
- if(TVCrow1 == -1) return;
+ if(IBrow == -1) return;
if(1){
NSMutableDictionary *dict = [NSMutableDictionary new];
blTop = calloc(1, sizeof(LAYER));
l = blTop;
l->name = [@"新規レイヤー" retain];
- l->postName = NULL;
+
l->z = 150;
[dict setValue:[NSString stringWithFormat:@"%@", l->name] forKey:@"name"];
[MA2 insertObject:dict atIndex:[MA2 count]];
[self didChangeValueForKey:@"MA2"];
[AC2 setSelectionIndex:999];
- }else if(TVCrow2 == -1){
+ }else if(IBLrow == -1){
while (l->next) {
l = l->next;
}
l->next = calloc(1, sizeof(LAYER));
l = l->next;
l->name = [@"新規レイヤー" retain];
- l->postName = NULL;
+
l->z = 150;
[dict setValue:[NSString stringWithFormat:@"%@", l->name] forKey:@"name"];
[self didChangeValueForKey:@"MA2"];
[AC2 setSelectionIndex:999];
- }else if(TVCrow2 > 0){
- for (int i = 0; i < TVCrow2-1; i++) {
+ }else if(IBLrow > 0){
+ for (int i = 0; i < IBLrow-1; i++) {
l = l->next;
}
l->next->next = tmp;
l = l->next;
l->name = [@"新規レイヤー" retain];
- l->postName = NULL;
+
l->z = 150;
[dict setValue:[NSString stringWithFormat:@"%@", l->name] forKey:@"name"];
[dict setValue:[NSString stringWithFormat:@"%d", l->z] forKey:@"z"];
[self willChangeValueForKey:@"MA2"];
- [MA2 insertObject:dict atIndex:TVCrow2];
+ [MA2 insertObject:dict atIndex:IBLrow];
[self didChangeValueForKey:@"MA2"];
- [AC2 setSelectionIndex:999];
+ [AC2 setSelectionIndex:IBLrow];
}else{
blTop = l;
LAYER tmp = *l;
l->next = calloc(1, sizeof(LAYER));
l->name = [@"新規レイヤー" retain];
- l->postName = NULL;
+
l->z = 150;
l = l->next;
*l = tmp;
[dict setValue:[NSString stringWithFormat:@"%d", l->z] forKey:@"z"];
[self willChangeValueForKey:@"MA2"];
- [MA2 insertObject:dict atIndex:TVCrow2];
+ [MA2 insertObject:dict atIndex:IBLrow];
[self didChangeValueForKey:@"MA2"];
- [AC2 setSelectionIndex:999];
+ [AC2 setSelectionIndex:IBLrow];
}
}
-(IBAction)remove1:(id)sender{
+
+ /*
int cnt = 0;
int coun = 0;
}b = bbTop;
}
+
BASE *bTop = b;
+ */
+ if([MA1 count] <= 0)
+ return;
+
+ NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+ NSString *path = @"data/Scenario/img/";
+
+ if(Irow == -1){
+ Irow = (int)[standListMA count] - 1;
+ }
+
+ for(int i = 0;i < Irow;i++)
+ I = I->next;
+
+ if([MA1 count] > 0){
+
+ if(IBrow == 0){
+ IBtop = I->B;
+ for(int i = 0;i < IBrow;i++){
+ I->B = I->B->next;
+ }
+
+
+ I->B = I->B->next;
+ IBtop = I->B;
+
+ }else if(IBrow == [MA1 count] - 1 || (IBrow < 0 && [MA1 count] > 0)){
+ IBtop = I->B;
+ if(I->B->next)
+ while(I->B->next->next){
+ I->B = I->B->next;
+ }
+
+
+ I->B->next = NULL;
+
+ I->B = IBtop;
+
+ }else{
+ IBtop = I->B;
+ for (int i = 0; i < IBrow-1;i++)
+ I->B = I->B->next;
+
+ I->B->next = I->B->next->next;
+
+ I->B = IBtop;
+
+ }
+
+ [self willChangeValueForKey:@"MA1"];
+ if(IBrow >= 0) [MA1 removeObjectAtIndex:IBrow];
+ else
+ [MA1 removeObjectAtIndex:[MA1 count] - 1];
+ [self didChangeValueForKey:@"MA1"];
+ [AC1 setSelectionIndex:IBrow];
+
+
+ if(IBrow >= 0)
+ TVCrow1--;
+
+ [self initMA2];
+
+ if(IBrow < 0) [AC1 setSelectionIndex:9999];
+ if(IBrow == 0) [AC1 setSelectionIndex:0];
+ if(IBrow > 0) IBrow--;
+ }
+ I->B = IBtop;
+ I = Itop;
+ /*
if(1){
if([MA1 count] == 0){
return;
I = Itop;
}
-
+ */
}
-(IBAction)remove2:(id)sender{
+
+
+ if([MA2 count] <= 0)
+ return;
+ /*
int cnt = 0;
int coun = 0;
}b = bbTop;
}
+ /*
BASE *bTop = b;
for(int i = 0;i < TVCrow1;i++){
b = b->next;
}
LAYER *blTop = b->L;
- /*
+
for(int i = 0;i < TVCrow2;i++){
b->L = b->L->next;
}
- */
+
LAYER *l = b->L;
blTop = l;
I->B = b;
b = bTop;
I = Itop;
+ */
+
+ NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+ [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+ NSString *path = @"data/Scenario/img/";
+
+
+ I = Itop;
+
+ if(Irow == -1){
+ Irow = (int)[standListMA count] - 1;
+ }
+
+ if(Irow < 0)
+ return;
+
+ for(int i = 0;i < Irow;i++)
+ I = I->next;
+
+ if(IBrow == -1){
+ IBrow = (int)[MA1 count] - 1;
+ }
+
+ if(IBrow < 0)
+ return;
+
+ IBtop = I->B;
+ for(int i = 0;i < IBrow;i++)
+ I->B = I->B->next;
+
+ if([MA2 count] > 0){
+
+ if(IBLrow == 0){
+ IBLtop = I->B->L;
+ for(int i = 0;i < IBLrow;i++){
+ I->B->L = I->B->L->next;
+ }
+
+
+ I->B->L = I->B->L->next;
+ IBLtop = I->B->L;
+
+ }else if(IBLrow == [MA2 count] - 1 || (IBLrow < 0 && [MA2 count] > 0)){
+ IBLtop = I->B->L;
+ if(I->B->L->next)
+ while(I->B->L->next->next){
+ I->B->L = I->B->L->next;
+ }
+
+
+ I->B->L->next = NULL;
+
+ I->B->L = IBLtop;
+
+ }else{
+ IBLtop = I->B->L;
+ for (int i = 0; i < IBLrow-1;i++)
+ I->B->L = I->B->L->next;
+
+
+
+ I->B->L->next = I->B->L->next->next;
+
+ I->B->L = IBLtop;
+
+ }
+
+ [self willChangeValueForKey:@"MA2"];
+ if(IBLrow >= 0) [MA2 removeObjectAtIndex:IBLrow];
+ else
+ [MA2 removeObjectAtIndex:[MA2 count] - 1];
+ [self didChangeValueForKey:@"MA2"];
+ [AC2 setSelectionIndex:IBLrow];
+ if(IBLrow < 0) [AC2 setSelectionIndex:9999];
+ if(IBLrow == 0) [AC2 setSelectionIndex:0];
+ if(IBLrow > 0) IBLrow--;
+ }
+ I->B->L = IBLtop;
+ I->B = IBtop;
+ I = Itop;
+
+ if(IBLrow >= 0)
+ TVCrow2--;
+
+
}
-(IBAction)saveBtn:(id)sender{
-(void)saveData{
+
+ [fieldScene saveStandImages];
+ I = Itop;
+
+ /*
NSString *directoryPath;
directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
NSString *fdata = @"data/Scenario/";
NSString *direct = @"data/Scenario/";
- /*
+
+
+
+
+
+
+
+
+
+
+
+
[[NSFileManager defaultManager] createDirectoryAtPath:direct
withIntermediateDirectories:YES
attributes:nil
error:nil];
- */
+
+
NSString *fileData = @"";
+ /*
for(int i = 0;i < [deletedName count];i++){
NSString *dlPath = @"data/Scenario/img/";
f2Data = [brep representationUsingType:NSPNGFileType properties:nil];
NSString *dlPath = @"data/Scenario/img/";
- dlPath = [dlPath stringByAppendingFormat:@"%@#%d", b->postName, Standcount];
+ dlPath = [dlPath stringByAppendingFormat:@"%@", b->postName];
[[NSFileManager defaultManager] removeItemAtPath:dlPath error:nil];
NSString *bcPath = @"data/Scenario/img/";
- bcPath = [bcPath stringByAppendingFormat:@"%@#%d", b->name, Standcount];
+ bcPath = [bcPath stringByAppendingFormat:@"%@", b->name];
[f2Data writeToFile:bcPath atomically:YES];
f2Data = [brep representationUsingType:NSPNGFileType properties:nil];
NSString *dlPath = @"data/Scenario/img/";
- dlPath = [dlPath stringByAppendingFormat:@"%@#%d", b->L->postName, Standcount];
+ dlPath = [dlPath stringByAppendingFormat:@"%@", b->L->postName];
[[NSFileManager defaultManager] removeItemAtPath:dlPath error:nil];
NSString *bcPath = @"data/Scenario/img/";
- bcPath = [bcPath stringByAppendingFormat:@"%@#%d", b->L->name, Standcount];
+ bcPath = [bcPath stringByAppendingFormat:@"%@", b->L->name];
[f2Data writeToFile:bcPath atomically:YES];
f2Data = [brep representationUsingType:NSPNGFileType properties:nil];
NSString *dlPath = @"data/Scenario/img/";
- dlPath = [dlPath stringByAppendingFormat:@"%@#%d", b->postName, Standcount];
+ dlPath = [dlPath stringByAppendingFormat:@"%@", b->postName];
[[NSFileManager defaultManager] removeItemAtPath:dlPath error:nil];
NSString *bcPath = @"data/Scenario/img/";
- bcPath = [bcPath stringByAppendingFormat:@"%@#%d", b->name, Standcount];
+ bcPath = [bcPath stringByAppendingFormat:@"%@", b->name];
[f2Data writeToFile:bcPath atomically:YES];
f2Data = [brep representationUsingType:NSPNGFileType properties:nil];
NSString *dlPath = @"data/Scenario/img/";
- dlPath = [dlPath stringByAppendingFormat:@"%@#%d", b->L->postName, Standcount];
+ dlPath = [dlPath stringByAppendingFormat:@"%@", b->L->postName];
[[NSFileManager defaultManager] removeItemAtPath:dlPath error:nil];
NSString *bcPath = @"data/Scenario/img/";
- bcPath = [bcPath stringByAppendingFormat:@"%@#%d", b->L->name, Standcount];
+ bcPath = [bcPath stringByAppendingFormat:@"%@", b->L->name];
[f2Data writeToFile:bcPath atomically:YES];
}
I = Itop;
- Standcount = 0;
+ Standcount = 0;*/
}
-(void)saveStandData{
I = Itop;
for (int i = 0;i < Inumb && I && [standListMA count] > 0;i++) {
I->name = [standListMA[i] valueForKey:@"name"];
- I->fName = [standListMA[i] valueForKey:@"file"];
I = I->next;
}I = Itop;
+ [fieldScene saveStandImages];
+ I = Itop;
-
-
-
+ /*
NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
[[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
}I = Itop;
[string writeToFile:pathI atomically:YES encoding:NSUTF8StringEncoding error:nil];
-
+ */
}
-(void)loadStandData{
+ /*
NSString *directoryPath;
directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
NSArray *IList = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pathID error:nil];
Inumb = 0;
- /*
+
for(NSString *path in IList){
if([path isEqualToString:@".DS_Store"]){
*/
-
+ /*
fileData = [NSString stringWithContentsOfFile:pathI encoding:NSUTF8StringEncoding error:nil];
fileDataArrayFirst = [fileData componentsSeparatedByString:@"\n"];
I = I->next;
}
I = Itop;
-
+*/
+
+ [fieldScene loadStandImages];
+
I = Itop;
[self willChangeValueForKey:@"standListMA"];
NSMutableDictionary *dict = [NSMutableDictionary new];
[dict setValue:[NSString stringWithFormat:@"%@", I->name] forKey:@"name"];
- [dict setValue:[NSString stringWithFormat:@"%@", I->fName] forKey:@"file"];
[self willChangeValueForKey:@"standListMA"];
[standListMA addObject:dict];
-(void)loadData{
+ [fieldScene loadStandImages];
+ /*
NSString *directoryPath;
directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
I = I->next;
} I = Itop;
Standcount = 0;
-
+ */
}
-(void)initMA1MA2{
I = I->next;
}
+ if(!I)
+ return;
+
b = I->B;
int layerIndex = 0;
TX[st].S->i = SItop;
TX[st].S = STRtop[st];
+
+
}
- (void)drawRect:(NSRect)dirtyRect
-(void)EventLoopSV:(NSTimer*)time{
+
if(!initMapFlag){
static int omfg = 0;
-(void)IMGfnc{
- static int TXCPYS0 = 0;
- static int TXCPYSI0 = 0;
-
- if(!allowTXcpy){
- if(TXCPYS0 == 0){
- TXCPY[STSNUM] = TX[STSNUM];
- TXCPYStop = TXCPY[STSNUM].S;
- }
- if(TXCPYS0 > 0){
- if(TXCPY[STSNUM].S){
-
- if(TXCPYSI0 == 0){
- TXCPYSItop = TXCPY[STSNUM].S->i;
- }
-
- if(TXCPY[STSNUM].S->i){
- TXCPY[STSNUM].S->i = TXCPY[STSNUM].S->i->next;
- TXCPYSI0++;
- }else{
- TXCPY[STSNUM].S->i = TXCPYSItop;
- TXCPY[STSNUM].S = TXCPY[STSNUM].S->next;
- TXCPYSI0 = 0;
- }
+ static int initCnt = 0;
- }else{
- TXCPY[STSNUM].S = TXCPYStop;
- STSNUM++;
- TXCPYS0 = -1;
- for(int i = 0;i < TEXTMAX;i++){
- TX[i] = TXCPY[i];
- }
- }
-
+ if(initCnt == 0){
+ TXCPY[STSNUM] = TX[STSNUM];
+ initCnt++;
}
- TXCPYS0++;
-
+
if(!TXCPY[STSNUM].fileName){
STSNUM = 0;
+ txNumb = -1;
allowTXcpy = true;
NSLog(@"TXCPY LoadComplete");
}else if(STSNUM > TEXTMAX){
STSNUM = 0;
+ txNumb = -1;
allowTXcpy = true;
NSLog(@"TXCPY LoadComplete");
}
- }
- TXCPY[STSNUM] = TXCPY[STSNUM];
+ //TXCPY[STSNUM] = TXCPY[STSNUM];
}
-(void)GetImageFromImageView2{
SEstandImgST = [[NSImage alloc] initWithData:fdata2];
+ STRING *txtop = TXCPY[STSNUM].S;
+ for (int i = 0;i < txNumb;i++){
+
+ TXCPY[STSNUM].S = TXCPY[STSNUM].S->next;
+ }
+
+ STANDIMAGE *txitop = TXCPY[STSNUM].S->i;
+ for(int i = 0;i < txiNumb;i++){
+
+ TXCPY[STSNUM].S->i = TXCPY[STSNUM].S->i->next;
+ }
+
+ if(!TXCPY[STSNUM].fileName){
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+
+ return;
+ }
+ if(!TXCPY[STSNUM].S){
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ return;
+ }
+ if(!TXCPY[STSNUM].S->i){
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ return;
+ }
TXCPY[STSNUM].S->i->imgStand = SEstandImgST;
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
[testScenarioEditor testSEtest];
+
+ TXimgCaptured = true;
+
return;
}
{
- if(TX[STSNUM].fileName)
- if(TX[STSNUM].S)
- if(TX[STSNUM].S->i){
+ if(txNumb < 0)
+ return;
+
+ STRING *txtop = TXCPY[STSNUM].S;
+
+ if(TXCPY[STSNUM].fileName){
+
+ if(!TXCPY[STSNUM].S){
+ TXCPY[STSNUM].S = txtop;
+ STSNUM++;
+ txiNumb = 0;
+ txNumb = 0;
+
+ return;
+ }
+
+ for (int i = 0;i < txNumb;i++){
+
- if(TX[STSNUM].S->i->SEMA1row-1 < 0)
+ TXCPY[STSNUM].S = TXCPY[STSNUM].S->next;
+ }
+
+ if(!TXCPY[STSNUM].S){
+ TXCPY[STSNUM].S = txtop;
+ STSNUM++;
+ txiNumb = 0;
+ txNumb = 0;
+ return;
+ }
+
+ STANDIMAGE *txitop = TXCPY[STSNUM].S->i;
+
+ if(!TXCPY[STSNUM].S->i){
+ if(TXCPY[STSNUM].S->next){
+ txNumb++;
+ TXimgIsNull = true;
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ return;
+ }else{
+ TXCPY[STSNUM].S = txtop;
+ STSNUM++;
+ txNumb = 0;
+ TXimgCaptured = false;
+ return;
+ }
+ }else{
+ for(int i = 0;i < txiNumb;i++){
+
+ TXCPY[STSNUM].S->i = TXCPY[STSNUM].S->i->next;
+ }
+
+ if((TXCPY[STSNUM].S->i->imgStand && TXimgCaptured) || (!TXCPY[STSNUM].S->i->name)){
+ TXimgCaptured = false;
+ if(TXCPY[STSNUM].S->i->next) {
+ txiNumb++;
+ TXimgIsNull = true;
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ return;
+ }else{
+ txiNumb = 0;
+
+ if(TXCPY[STSNUM].S->next){
+ txNumb++;
+ TXimgIsNull = true;
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ return;
+ }
+ else{
+ txNumb = 0;
+ TXimgIsNull = true;
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
+ STSNUM++;
+ return;
+ }
+ }
+ }
+ }
+
+
+
+ if(TXCPY[STSNUM].fileName)
+ if(TXCPY[STSNUM].S)
+ if(TXCPY[STSNUM].S->i){
+
+ if(TXCPY[STSNUM].S->i->SEMA1row-1 < 0){
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
return;
- if(TX[STSNUM].S->i->SEMA2row-1 < 0)
+ }
+ if(TXCPY[STSNUM].S->i->SEMA2row-1 < 0){
+ TXCPY[STSNUM].S->i = txitop;
+ TXCPY[STSNUM].S = txtop;
return;
+ }
I = Itop;
for(int i = 0;i < TXCPY[STSNUM].S->i->SEMA1row-1;i++){
}
b = I->B;
-
+
+ TXimgIsNull = true;
int layerIndex = 0;
BASE *bTop = b;
while(layerIndex <= 999){
-
+
for (int i = 0;b && i <= TXCPY[STSNUM].S->i->SEMA2row-1; i++) {
- if(i == TX[STSNUM].S->i->SEMA2row-1){
+ if(i == TXCPY[STSNUM].S->i->SEMA2row-1){
- if(layerIndex == b->z && b->img) [self DrawImage:b->img x:b->x y:b->y];
+ if(layerIndex == b->z && b->img) {
+ [self DrawImage:b->img x:b->x y:b->y];
+ TXimgIsNull = false;
+ }
if(1){
LAYER *l = b->L;
if(1/*l->visibleInstant*/){
//NSLog(@"%d[%d]", i0, *(TX[STSNUM].S->i->SEMA3flag + i0));
- if(TX[STSNUM].S->i->SEMA3flag)
- if(*(TX[STSNUM].S->i->SEMA3flag + i0) > 1)
+ if(TXCPY[STSNUM].S->i->SEMA3flag)
+ if(*(TXCPY[STSNUM].S->i->SEMA3flag + i0) > 1)
if(layerIndex == l->z && l->img){
[self DrawImage:l->img x:l->x y:l->y];
+ TXimgIsNull = false;
}
b = bTop;
layerIndex++;
}
-
+
I = Itop;
}
-
-
+ TXCPY[STSNUM].S->i = txitop;
+ }
+ TXCPY[STSNUM].S = txtop;
}
@end
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" headerView="2xe-Ys-y8C" id="14153">
- <rect key="frame" x="0.0" y="0.0" width="465" height="19"/>
+ <rect key="frame" x="0.0" y="0.0" width="468" height="19"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
- <tableColumn width="209.33203125" minWidth="40" maxWidth="1000" id="14157">
+ <tableColumn width="464.69921875" minWidth="40" maxWidth="1000" id="14157">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="立ち絵名">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
</binding>
</connections>
</tableColumn>
- <tableColumn width="250.18359375" minWidth="40" maxWidth="1000" id="14158">
- <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="ファイル名">
- <font key="font" metaFont="smallSystem"/>
- <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
- </tableHeaderCell>
- <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="14159">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
- <connections>
- <binding destination="14319" name="value" keyPath="arrangedObjects.file" id="QXD-E9-NPZ">
- <dictionary key="options">
- <bool key="NSConditionallySetsEditable" value="YES"/>
- <bool key="NSCreatesSortDescriptor" value="NO"/>
- </dictionary>
- </binding>
- </connections>
- </tableColumn>
</tableColumns>
</tableView>
</subviews>
<action selector="remove2:" target="9720" id="sHK-hz-RtB"/>
</connections>
</button>
- <textField verticalHuggingPriority="750" id="14235">
- <rect key="frame" x="62" y="164" width="50" height="22"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="14236">
- <font key="font" metaFont="system"/>
- <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
- <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
- </textFieldCell>
- </textField>
<textField verticalHuggingPriority="750" id="14241">
<rect key="frame" x="169" y="164" width="50" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
+ <connections>
+ <action selector="TFposYsubmit:" target="9720" id="Nls-8O-2WQ"/>
+ </connections>
</textField>
<textField verticalHuggingPriority="750" id="14250">
<rect key="frame" x="18" y="167" width="39" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="none" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" headerView="14194" id="14196">
- <rect key="frame" x="0.0" y="0.0" width="199" height="19"/>
+ <rect key="frame" x="0.0" y="0.0" width="199" height="82"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
+ <textField verticalHuggingPriority="750" id="14235">
+ <rect key="frame" x="62" y="164" width="50" height="22"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="14236">
+ <font key="font" metaFont="system"/>
+ <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
+ <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+ </textFieldCell>
+ <connections>
+ <action selector="TFposXsubmit:" target="9720" id="oTE-RL-3bj"/>
+ </connections>
+ </textField>
</subviews>
</view>
</window>
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" animationBehavior="default" id="3Ku-FI-rgF" userLabel="立ち絵バック" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" utility="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" topStrut="YES"/>
- <rect key="contentRect" x="196" y="112" width="0.0" height="0.0"/>
+ <rect key="contentRect" x="196" y="112" width="670" height="506"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
<view key="contentView" id="eXV-Dc-9AN">
+ <rect key="frame" x="0.0" y="0.0" width="670" height="506"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<customView id="uNw-Ue-ALs" customClass="SEstandViewST">
- <rect key="frame" x="382" y="-480" width="418" height="480"/>
+ <rect key="frame" x="237" y="26" width="418" height="480"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
</customView>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="oRP-UT-PmY">
- <rect key="frame" x="206" y="-489" width="127" height="136"/>
+ <rect key="frame" x="61" y="17" width="127" height="136"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" imageFrameStyle="grayBezel" id="D68-hm-Hwt"/>
</imageView>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="z4m-ym-FIw">
- <rect key="frame" x="177" y="-173" width="156" height="156"/>
+ <rect key="frame" x="32" y="333" width="156" height="156"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" imageFrameStyle="grayBezel" id="XYe-Fg-Rbf"/>
</imageView>
</subviews>
</view>
- <point key="canvasLocation" x="-82" y="2185"/>
+ <point key="canvasLocation" x="-275" y="2229"/>
</window>
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="3Dx-MW-c2q" userLabel="シナリオ選択途中から" customClass="NSPanel">
<windowStyleMask key="styleMask" utility="YES"/>