}
*/
+ if(!MS.D) return;
+
if([EDswitch1Btn state] != 0){
MS.D->switch1f = true;
}else{
MS.D = msdtop;
+ if(!MS.D) return;
+
MAPSCRIPT0 *MSDPt = MS.D->P;
MAPSCRIPT0 *MS0 = MS.D->P;
for (int i = 0;i < eventListRow-1;i++) {
MS.D = MS.D->next;
}
- msdtop = MS.D;
if([eventListMA count] == 1){
MS.D->type = -1;
msdtop = MS.D;
+ mdTop = MS.D;
+ MSDTOPP = MS.D;
if(!MS.SCRPTname) MS.SCRPTname = [NSMutableArray new];
[MS.SCRPTname addObject:@"新規イベント"];
+ [EDnameTF setStringValue:[MS.SCRPTname objectAtIndex:[eventListTV clickedRow]]];
+
+ [self initEDlist];
+ [eventDetailWindow makeKeyAndOrderFront:nil];
+
+
}else if([eventListTV clickedRow] >= 0){
if([eventListTV clickedRow] == [eventListMA count]-1){
//MSDTOP = mdTop;
if(!MS.SCRPTname) MS.SCRPTname = [NSMutableArray new];
[MS.SCRPTname addObject:@"新規イベント"];
+
+
+ [EDnameTF setStringValue:[MS.SCRPTname objectAtIndex:[eventListTV clickedRow]]];
+
+ [self initEDlist];
+ [eventDetailWindow makeKeyAndOrderFront:nil];
}else if([eventListTV clickedRow] == 0){
if(MS.D){
- MS.D->type = -1;
+ MS.D = MS.D;
msdtop = MS.D;
}
- }else{
+
+ [EDnameTF setStringValue:[MS.SCRPTname objectAtIndex:[eventListTV clickedRow]]];
+
+ [self initEDlist];
+ [eventDetailWindow makeKeyAndOrderFront:nil];
+ }else if([eventListTV clickedRow] > 0){
+
if(MS.D->next){
MS.D = MS.D->next;
- MS.D->type = -1;
msdtop = MS.D;
}
-
+
+ [EDnameTF setStringValue:[MS.SCRPTname objectAtIndex:[eventListTV clickedRow]]];
+
+ [self initEDlist];
+ [eventDetailWindow makeKeyAndOrderFront:nil];
}
-
[EDnameTF setStringValue:[MS.SCRPTname objectAtIndex:[eventListTV clickedRow]]];
[self initEDlist];
[eventDetailWindow makeKeyAndOrderFront:nil];
}
MS.D = mdTop;
+
MF[MFselectedRow+1].MS.D = MS.D;
- MF[MFselectedRow+1].MS.D = MSDTOPP;
+ MF[MFselectedRow+1].MS = MS;
+ MF[MFselectedRow+1].MS.D = msdtop;
EDproceedFlag = true;
}
MF[MFselectedRow+1].MS.D = MSDTOPP;
+ //[self initEventList];
+
EDproceedFlag = false;
[eventDetailWindow close];
}