AwarsIVのリポジトリです
修订版 | 6190791a78330267af5c176c2a6f6fa1bfc84fe1 (tree) |
---|---|
时间 | 2016-07-23 10:50:04 |
作者 | Killery <Killery@kiri...> |
Commiter | Killery |
オプション機能を追加
@@ -48,6 +48,7 @@ | ||
48 | 48 | C65A72BC188F34B200FC1FF1 /* lc22.png in Resources */ = {isa = PBXBuildFile; fileRef = C65A72B9188F34B200FC1FF1 /* lc22.png */; }; |
49 | 49 | C65A72BD188F34B200FC1FF1 /* lc23.png in Resources */ = {isa = PBXBuildFile; fileRef = C65A72BA188F34B200FC1FF1 /* lc23.png */; }; |
50 | 50 | C6691619182B4F6600CB4D2A /* StandView.m in Sources */ = {isa = PBXBuildFile; fileRef = C6691618182B4F6600CB4D2A /* StandView.m */; }; |
51 | + C66C96081D429EB500D532C0 /* OptionMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = C66C96071D429EB500D532C0 /* OptionMenu.m */; }; | |
51 | 52 | C6774C22188DFEB9005CBE99 /* lc1.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C0E188DFEB9005CBE99 /* lc1.png */; }; |
52 | 53 | C6774C23188DFEB9005CBE99 /* lc2.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C0F188DFEB9005CBE99 /* lc2.png */; }; |
53 | 54 | C6774C24188DFEB9005CBE99 /* lc3.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C10188DFEB9005CBE99 /* lc3.png */; }; |
@@ -388,6 +389,8 @@ | ||
388 | 389 | C65A72BA188F34B200FC1FF1 /* lc23.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc23.png; sourceTree = "<group>"; }; |
389 | 390 | C6691617182B4F6600CB4D2A /* StandView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StandView.h; sourceTree = "<group>"; }; |
390 | 391 | C6691618182B4F6600CB4D2A /* StandView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StandView.m; sourceTree = "<group>"; }; |
392 | + C66C96061D429EB500D532C0 /* OptionMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OptionMenu.h; sourceTree = "<group>"; }; | |
393 | + C66C96071D429EB500D532C0 /* OptionMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OptionMenu.m; sourceTree = "<group>"; }; | |
391 | 394 | C6774C0E188DFEB9005CBE99 /* lc1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc1.png; sourceTree = "<group>"; }; |
392 | 395 | C6774C0F188DFEB9005CBE99 /* lc2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc2.png; sourceTree = "<group>"; }; |
393 | 396 | C6774C10188DFEB9005CBE99 /* lc3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc3.png; sourceTree = "<group>"; }; |
@@ -769,6 +772,8 @@ | ||
769 | 772 | C6E02F3B1C5FAF0D00B3304B /* FPS.m */, |
770 | 773 | C633EC221C5F5DC200B9E0E5 /* Idle.h */, |
771 | 774 | C633EC231C5F5DC200B9E0E5 /* Idle.m */, |
775 | + C66C96061D429EB500D532C0 /* OptionMenu.h */, | |
776 | + C66C96071D429EB500D532C0 /* OptionMenu.m */, | |
772 | 777 | C69C3ED716D2350A00FA2D1B /* Game */, |
773 | 778 | C6E8DA33167C988C00BFEC32 /* MapEditor */, |
774 | 779 | C68DD4A51686E0CE009CE3AE /* Scenario */, |
@@ -1572,6 +1577,7 @@ | ||
1572 | 1577 | C61BFA02169CEA89009070DC /* SaveDataList.m in Sources */, |
1573 | 1578 | C6AD18B3169D0A0100783718 /* Gallery.m in Sources */, |
1574 | 1579 | C6D4400016B5DFC4003C9C53 /* ScenarioEditor.m in Sources */, |
1580 | + C66C96081D429EB500D532C0 /* OptionMenu.m in Sources */, | |
1575 | 1581 | C688AE3C16C06187006E8713 /* CommandView.m in Sources */, |
1576 | 1582 | C6AA2925188489520083001C /* LoadChipList.m in Sources */, |
1577 | 1583 | C69C3EDA16D2356200FA2D1B /* EventScene.m in Sources */, |
@@ -44,5 +44,14 @@ | ||
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
47 | + if(titleBGM) | |
48 | + { | |
49 | + if(0.01 >[titleBGM duration]-[titleBGM currentTime]) | |
50 | + { | |
51 | + [titleBGM setCurrentTime:0.0]; | |
52 | + } | |
53 | + } | |
54 | + | |
55 | + | |
47 | 56 | } |
48 | 57 | @end |
@@ -39,6 +39,7 @@ | ||
39 | 39 | |
40 | 40 | |
41 | 41 | if(!startES) return; |
42 | + if(titleBGM) [titleBGM stop]; | |
42 | 43 | ST = NULL; |
43 | 44 | static bool seFlag; |
44 | 45 |
@@ -141,6 +142,7 @@ | ||
141 | 142 | [SEes stop]; |
142 | 143 | if(esSceneProc == 0){ |
143 | 144 | [titleWindow makeKeyAndOrderFront:nil]; |
145 | + if(titleBGM) [titleBGM play]; | |
144 | 146 | esSceneProc++; |
145 | 147 | } |
146 | 148 | saveDataLoadedFlag = false; |
@@ -271,6 +273,7 @@ | ||
271 | 273 | if(SEes) |
272 | 274 | [SEes stop]; |
273 | 275 | [titleWindow makeKeyAndOrderFront:nil]; |
276 | + if(titleBGM) [titleBGM play]; | |
274 | 277 | [esWindow close]; |
275 | 278 | return; |
276 | 279 | } |
@@ -25,6 +25,7 @@ | ||
25 | 25 | #define SAVEDATADATMAX 4096 |
26 | 26 | #define DATAFILE_NAME "data.dat" |
27 | 27 | #define INSTANT_IMG "image.png" |
28 | +#define OPTIONFILE_NAME "opData.dat" | |
28 | 29 | |
29 | 30 | #define FIELD_TYPE_A 0 |
30 | 31 | #define FIELD_TYPE_B 1 |
@@ -992,10 +993,18 @@ char *datFilePath; | ||
992 | 993 | bool datFileLoadCompFromTitle; |
993 | 994 | bool datFileLoadCompFromField; |
994 | 995 | |
996 | +NSSound *titleBGM; | |
997 | +AVPlayer *openingAVP; | |
998 | +bool openingAVPVisHidden; | |
999 | +bool openingAVPVisActive; | |
1000 | +bool openingAVPisDeactive; | |
1001 | + | |
995 | 1002 | @interface FieldScene : NSObject |
996 | 1003 | { |
997 | 1004 | NSTimer *time; |
998 | 1005 | |
1006 | + IBOutlet AVPlayerView *openingAVPV; | |
1007 | + | |
999 | 1008 | |
1000 | 1009 | IBOutlet NSTextField *btHITtf1; |
1001 | 1010 | IBOutlet NSTextField *btHITtf2; |
@@ -1265,6 +1274,7 @@ bool datFileLoadCompFromField; | ||
1265 | 1274 | |
1266 | 1275 | } |
1267 | 1276 | -(void)loadStruct; |
1277 | +-(void)openingAVPVfunc; | |
1268 | 1278 | |
1269 | 1279 | -(IBAction)saveGameSubmit:(id)sender; |
1270 | 1280 | -(IBAction)saveGameCancel:(id)sender; |
@@ -1346,11 +1356,13 @@ bool datFileLoadCompFromField; | ||
1346 | 1356 | |
1347 | 1357 | -(void)loadGameDataDat; |
1348 | 1358 | |
1359 | +-(void)loadOptionMenu; | |
1360 | +-(void)saveOptionMenu; | |
1349 | 1361 | |
1350 | 1362 | @end |
1351 | 1363 | |
1352 | 1364 | FieldScene *fieldScene; |
1353 | - | |
1365 | +bool fieldSceneSelfFlag; | |
1354 | 1366 | |
1355 | 1367 | |
1356 | 1368 |
@@ -73,6 +73,8 @@ | ||
73 | 73 | ]; |
74 | 74 | |
75 | 75 | fieldScene = self; |
76 | + fieldSceneSelfFlag = true; | |
77 | + openingAVP = NULL; | |
76 | 78 | |
77 | 79 | P[0].name = [@"青軍" retain]; |
78 | 80 | P[0].type = 0; |
@@ -117,28 +119,25 @@ | ||
117 | 119 | fwrite([str UTF8String], sizeof(str), length, fp); |
118 | 120 | } |
119 | 121 | |
120 | --(void)writeNSImage:(FILE*)fp str:(NSImage*)img{ | |
122 | +-(void)writeNSImage:(FILE*)fp str:(NSImage*)img adCnt:(int*)adCnt adFix:(int*)adFix{ | |
121 | 123 | FILE *fpx; |
122 | 124 | |
123 | 125 | NSString *directoryPath; |
124 | 126 | |
125 | - directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]; | |
127 | + directoryPath = [[NSBundle mainBundle] bundlePath]; | |
126 | 128 | [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; |
127 | 129 | |
128 | - NSString* Cpath = @"Awars IV.app/Contents/Resources/"; | |
130 | + NSString* Cpath = @"Contents/Resources/"; | |
129 | 131 | [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; |
130 | 132 | |
131 | - NSString *path = @DATAFILE_NAME; | |
132 | - NSString *path2 = @INSTANT_IMG; | |
133 | - | |
134 | 133 | if(1){ |
135 | 134 | NSData *imgData = [img TIFFRepresentation]; |
136 | 135 | NSBitmapImageRep *brep = [NSBitmapImageRep imageRepWithData:imgData]; |
137 | 136 | imgData = [brep representationUsingType:NSPNGFileType properties:nil]; |
138 | - [imgData writeToFile:path2 atomically:YES]; | |
137 | + [imgData writeToFile:@INSTANT_IMG atomically:YES]; | |
139 | 138 | |
140 | 139 | fpx = fopen(INSTANT_IMG, "rb"); |
141 | - [self fcopy:fpx wfp:fp len:0]; | |
140 | + [self fcopy:fpx wfp:fp adCnt:adCnt adFix:adFix]; | |
142 | 141 | fclose(fpx); |
143 | 142 | } |
144 | 143 |
@@ -146,13 +145,13 @@ | ||
146 | 145 | } |
147 | 146 | |
148 | 147 | |
149 | --(int)fcopy:(FILE *)rfp wfp:(FILE *)wfp len:(int)len{ | |
148 | +-(int)fcopy:(FILE *)rfp wfp:(FILE *)wfp adCnt:(int*)adCnt adFix:(int*)adFix{ | |
150 | 149 | |
151 | 150 | unsigned char in_buf[1024], out_buf[1024]; |
152 | 151 | int rinf; |
153 | 152 | |
154 | - sdd.imgAdressCnt = 0; | |
155 | - sdd.imgAdressFix = 0; | |
153 | + *adCnt = 0; | |
154 | + *adFix = 0; | |
156 | 155 | |
157 | 156 | fpos_t fpt = 0; |
158 | 157 | while (!feof(rfp)) { |
@@ -166,14 +165,14 @@ | ||
166 | 165 | if(rinf < 0){ |
167 | 166 | return (-1); |
168 | 167 | } |
169 | - sdd.imgAdressCnt++; | |
170 | - sdd.imgAdressFix = rinf; | |
168 | + (*adCnt)++; | |
169 | + *adFix = rinf; | |
171 | 170 | } |
172 | 171 | |
173 | - fpt -= (sdd.imgAdressCnt-1)*1024; | |
172 | + fpt -= ((*adCnt)-1)*1024; | |
174 | 173 | fsetpos(wfp, &fpt); |
175 | - [self writeInt:wfp val:(int)sdd.imgAdressCnt]; | |
176 | - [self writeInt:wfp val:(int)sdd.imgAdressFix]; | |
174 | + [self writeInt:wfp val:*adCnt]; | |
175 | + [self writeInt:wfp val:*adFix]; | |
177 | 176 | |
178 | 177 | fpt = 0; |
179 | 178 | fsetpos(rfp, &fpt); |
@@ -1767,7 +1766,7 @@ | ||
1767 | 1766 | |
1768 | 1767 | |
1769 | 1768 | [self writeNSString:fpo str:sdd.name]; |
1770 | - [self writeNSImage:fpo str:sdd.img]; | |
1769 | + [self writeNSImage:fpo str:sdd.img adCnt:&sdd.imgAdressCnt adFix:&sdd.imgAdressFix]; | |
1771 | 1770 | |
1772 | 1771 | |
1773 | 1772 | [self writeInt:fpo val:sdd.MFselectedRow]; |
@@ -2128,7 +2127,7 @@ | ||
2128 | 2127 | |
2129 | 2128 | sdd2[datRow].imgAdressCnt = (int)[self readInt:fpi]; |
2130 | 2129 | sdd2[datRow].imgAdressFix = (int)[self readInt:fpi]; |
2131 | - sdd2[datRow].img = [self readNSImage:fpi imgOut:sdd2[datRow].img dcnt:sdd2[datRow].imgAdressCnt dfix:sdd2[datRow].imgAdressFix]; | |
2130 | + sdd2[datRow].img = [[self readNSImage:fpi imgOut:sdd2[datRow].img dcnt:sdd2[datRow].imgAdressCnt dfix:sdd2[datRow].imgAdressFix] retain]; | |
2132 | 2131 | |
2133 | 2132 | sdd2[datRow].MFselectedRow = (int)[self readInt:fpi]; |
2134 | 2133 | sdd2[datRow].storyNumb = (int)[self readInt:fpi]; |
@@ -2224,9 +2223,131 @@ | ||
2224 | 2223 | } |
2225 | 2224 | |
2226 | 2225 | |
2226 | +-(void)loadOptionMenu{ | |
2227 | + NSString *directoryPath; | |
2228 | + | |
2229 | + directoryPath = [[NSBundle mainBundle] bundlePath]; | |
2230 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
2231 | + | |
2232 | + | |
2233 | + NSString* Cpath = @"Contents/Resources/"; | |
2234 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
2235 | + | |
2236 | + FILE *fpi; | |
2237 | + | |
2238 | + fpi = fopen(OPTIONFILE_NAME, "rb"); | |
2239 | + if(!fpi) | |
2240 | + return; | |
2227 | 2241 | |
2242 | + wtfom.nameTitle = [@"" retain]; | |
2243 | + NSLog(@"%@", wtfom.nameTitle); | |
2244 | + wtfom.nameTitle = [[self readNSString:fpi strOut:wtfom.nameTitle] retain]; | |
2245 | + wtfom.nameVersion = [[self readNSString:fpi strOut:wtfom.nameVersion] retain]; | |
2246 | + wtfom.nameOpening = [[self readNSString:fpi strOut:wtfom.nameOpening] retain]; | |
2247 | + wtfom.nameBGM = [[self readNSString:fpi strOut:wtfom.nameBGM] retain]; | |
2248 | + | |
2249 | + wtfom.allowMapEditor = (int)[self readInt:fpi]; | |
2250 | + wtfom.allowScenarioEditor = (int)[self readInt:fpi]; | |
2251 | + wtfom.onlyOnceOpening = (int)[self readInt:fpi]; | |
2252 | + wtfom.newOpeningIsShown = (int)[self readInt:fpi]; | |
2253 | + | |
2254 | + wtfom.adCntIT = (int)[self readInt:fpi]; | |
2255 | + wtfom.adFixIT = (int)[self readInt:fpi]; | |
2256 | + wtfom.imgTitle = [[self readNSImage:fpi imgOut:wtfom.imgTitle dcnt:wtfom.adCntIT dfix:wtfom.adFixIT] retain]; | |
2228 | 2257 | |
2258 | + | |
2259 | + directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]; | |
2260 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
2261 | + | |
2262 | + Cpath = @"data/Movie"; | |
2263 | + | |
2264 | + BOOL isDirectory; | |
2265 | + | |
2266 | + [[NSFileManager defaultManager] fileExistsAtPath:Cpath isDirectory:&isDirectory]; | |
2267 | + | |
2268 | + if(!isDirectory) | |
2269 | + [[NSFileManager defaultManager] createDirectoryAtPath:Cpath withIntermediateDirectories:YES attributes:nil error:nil]; | |
2270 | + | |
2271 | + | |
2272 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
2273 | + | |
2274 | + if([[NSFileManager defaultManager] fileExistsAtPath:wtfom.nameOpening]) | |
2275 | + openingAVP = [[AVPlayer playerWithURL:[NSURL fileURLWithPath:wtfom.nameOpening]] retain]; | |
2276 | + else | |
2277 | + openingAVP = NULL; | |
2229 | 2278 | |
2279 | + directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]; | |
2280 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
2281 | + | |
2282 | + Cpath = @"data/BGM/"; | |
2283 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
2284 | + | |
2285 | + /* | |
2286 | + char *cwd; | |
2287 | + cwd = getcwd(NULL, 0); | |
2288 | + | |
2289 | + NSLog(@"%s", cwd); | |
2290 | + */ | |
2291 | + | |
2292 | + titleBGM = [[[NSSound alloc] initWithContentsOfURL:[NSURL fileURLWithPath:wtfom.nameBGM] byReference:NO] retain]; | |
2293 | + | |
2294 | + fclose(fpi); | |
2295 | +} | |
2296 | + | |
2297 | +-(void)openingAVPVfunc{ | |
2298 | + | |
2299 | + if(openingAVP && openingAVPVisActive){ | |
2300 | + openingAVPV.player = openingAVP; | |
2301 | + openingAVPV.videoGravity = AVLayerVideoGravityResize; | |
2302 | + } | |
2303 | + | |
2304 | + if(openingAVPVisHidden) | |
2305 | + [openingAVPV setHidden:YES]; | |
2306 | + else | |
2307 | + [openingAVPV setHidden:NO]; | |
2308 | + | |
2309 | +} | |
2310 | + | |
2311 | +-(void)saveOptionMenu{ | |
2312 | + NSString *directoryPath; | |
2313 | + | |
2314 | + directoryPath = [[NSBundle mainBundle] bundlePath]; | |
2315 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
2316 | + | |
2317 | + | |
2318 | + NSString* Cpath = @"Contents/Resources/"; | |
2319 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
2320 | + | |
2321 | + /* | |
2322 | + char *cwd; | |
2323 | + cwd = getcwd(NULL, 0); | |
2324 | + | |
2325 | + NSLog(@"%s", cwd); | |
2326 | + */ | |
2327 | + | |
2328 | + FILE *fpo; | |
2329 | + | |
2330 | + fpo = fopen(OPTIONFILE_NAME, "wb"); | |
2331 | + if(!fpo) | |
2332 | + return; | |
2333 | + | |
2334 | + [self writeNSString:fpo str:wtfom.nameTitle]; | |
2335 | + [self writeNSString:fpo str:wtfom.nameVersion]; | |
2336 | + [self writeNSString:fpo str:wtfom.nameOpening]; | |
2337 | + [self writeNSString:fpo str:wtfom.nameBGM]; | |
2338 | + | |
2339 | + [self writeInt:fpo val:wtfom.allowMapEditor]; | |
2340 | + [self writeInt:fpo val:wtfom.allowScenarioEditor]; | |
2341 | + [self writeInt:fpo val:wtfom.onlyOnceOpening]; | |
2342 | + [self writeInt:fpo val:wtfom.newOpeningIsShown]; | |
2343 | + | |
2344 | + [self writeNSImage:fpo str:wtfom.imgTitle adCnt:&wtfom.adCntIT adFix:&wtfom.adFixIT]; | |
2345 | + | |
2346 | + | |
2347 | + | |
2348 | + | |
2349 | + fclose(fpo); | |
2350 | +} | |
2230 | 2351 | |
2231 | 2352 | |
2232 | 2353 |
@@ -3335,6 +3456,22 @@ | ||
3335 | 3456 | |
3336 | 3457 | -(void)EventLoopFS:(NSTimer*)time{ |
3337 | 3458 | |
3459 | + if(openingAVP && openingAVPVisActive){ | |
3460 | + if(openingAVP.rate <= 0 || openingAVPisDeactive){ | |
3461 | + [openingAVP pause]; | |
3462 | + openingAVPVisHidden = true; | |
3463 | + [self openingAVPVfunc]; | |
3464 | + openingAVPVisActive = false; | |
3465 | + openingAVPisDeactive = false; | |
3466 | + if(titleBGM) [titleBGM play]; | |
3467 | + } | |
3468 | + }else if(!openingAVP && openingAVPVisActive){ | |
3469 | + openingAVPVisActive = false; | |
3470 | + openingAVPisDeactive = false; | |
3471 | + if(titleBGM) [titleBGM play]; | |
3472 | + } | |
3473 | + | |
3474 | + | |
3338 | 3475 | //NSLog(@"msgCnt %d", msgCnt); |
3339 | 3476 | |
3340 | 3477 | if(stopByFSVmenuFlag){ |
@@ -15576,6 +15713,7 @@ SKIP1: | ||
15576 | 15713 | |
15577 | 15714 | [BGMsub stop]; |
15578 | 15715 | BGMsub = NULL; |
15716 | + if(titleBGM) [titleBGM play]; | |
15579 | 15717 | |
15580 | 15718 | endGameCondition = false; |
15581 | 15719 | initMapFlag = false; |
@@ -1766,6 +1766,11 @@ | ||
1766 | 1766 | } |
1767 | 1767 | |
1768 | 1768 | -(IBAction)backTitle:(id)sender{ |
1769 | + if(titleBGM) { | |
1770 | + [titleBGM setCurrentTime:0]; | |
1771 | + [titleBGM play]; | |
1772 | + } | |
1773 | + | |
1769 | 1774 | windowPoint.x = [MapEditorWindow frame].origin.x; |
1770 | 1775 | windowPoint.y = [MapEditorWindow frame].origin.y; |
1771 | 1776 | [TitleWindow setFrameOrigin:windowPoint]; |
@@ -0,0 +1,55 @@ | ||
1 | +// | |
2 | +// OptionMenu.h | |
3 | +// Awars III | |
4 | +// | |
5 | +// Created by 桐谷 諭史 on 2016/07/23. | |
6 | +// Copyright © 2016年 Killery. All rights reserved. | |
7 | +// | |
8 | + | |
9 | +#import <Foundation/Foundation.h> | |
10 | +#import <Cocoa/Cocoa.h> | |
11 | +#import "Title.h" | |
12 | +#import "FieldScene.h" | |
13 | + | |
14 | +typedef struct _OPTIONMENU{ | |
15 | + | |
16 | + NSString *nameTitle; | |
17 | + NSString *nameVersion; | |
18 | + NSString *nameOpening; | |
19 | + NSString *nameBGM; | |
20 | + | |
21 | + int adCntIT; | |
22 | + int adFixIT; | |
23 | + NSImage *imgTitle; | |
24 | + | |
25 | + bool allowMapEditor; | |
26 | + bool allowScenarioEditor; | |
27 | + bool onlyOnceOpening; | |
28 | + bool newOpeningIsShown; | |
29 | + | |
30 | +}OPTIONMENU; | |
31 | + | |
32 | +OPTIONMENU wtfom; | |
33 | + | |
34 | +@interface OptionMenu : NSObject | |
35 | +{ | |
36 | + IBOutlet NSWindow *OMWindow; | |
37 | + | |
38 | + IBOutlet NSTextField *OMTF1; | |
39 | + IBOutlet NSTextField *OMTF2; | |
40 | + IBOutlet NSTextField *OMTF3; | |
41 | + IBOutlet NSTextField *OMTF4; | |
42 | + | |
43 | + IBOutlet NSImageView *OMIV; | |
44 | + | |
45 | + IBOutlet NSButton *OMBTN1; | |
46 | + IBOutlet NSButton *OMBTN2; | |
47 | + IBOutlet NSButton *OMBTN3; | |
48 | +} | |
49 | + | |
50 | +-(IBAction)OMsubmit:(id)sender; | |
51 | + | |
52 | +-(void)loadOM; | |
53 | + | |
54 | +@end | |
55 | +OptionMenu *optionMenu; |
@@ -0,0 +1,134 @@ | ||
1 | +// | |
2 | +// OptionMenu.m | |
3 | +// Awars III | |
4 | +// | |
5 | +// Created by 桐谷 諭史 on 2016/07/23. | |
6 | +// Copyright © 2016年 Killery. All rights reserved. | |
7 | +// | |
8 | + | |
9 | +#import "OptionMenu.h" | |
10 | + | |
11 | +@implementation OptionMenu | |
12 | + | |
13 | +-(void)awakeFromNib{ | |
14 | + | |
15 | + [fieldScene loadOptionMenu]; | |
16 | + [self loadOM]; | |
17 | + | |
18 | + NSString *directoryPath; | |
19 | + | |
20 | + directoryPath = [[NSBundle mainBundle] bundlePath]; | |
21 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
22 | + | |
23 | + | |
24 | + NSString* Cpath = @"Contents/Resources/"; | |
25 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
26 | + | |
27 | + directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]; | |
28 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
29 | + | |
30 | + Cpath = @"data/Movie"; | |
31 | + | |
32 | + BOOL isDirectory; | |
33 | + | |
34 | + [[NSFileManager defaultManager] fileExistsAtPath:Cpath isDirectory:&isDirectory]; | |
35 | + | |
36 | + if(!isDirectory) | |
37 | + [[NSFileManager defaultManager] createDirectoryAtPath:Cpath withIntermediateDirectories:YES attributes:nil error:nil]; | |
38 | + | |
39 | + | |
40 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
41 | + | |
42 | + if([[NSFileManager defaultManager] fileExistsAtPath:wtfom.nameOpening]) | |
43 | + openingAVP = [[AVPlayer playerWithURL:[NSURL fileURLWithPath:wtfom.nameOpening]] retain]; | |
44 | + else | |
45 | + openingAVP = NULL; | |
46 | + | |
47 | + directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent]; | |
48 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
49 | + | |
50 | + Cpath = @"data/BGM/"; | |
51 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
52 | + | |
53 | + titleBGM = [[[NSSound alloc] initWithContentsOfURL:[NSURL fileURLWithPath:wtfom.nameBGM] byReference:NO] retain]; | |
54 | + | |
55 | + [title loadFromOM:true]; | |
56 | + | |
57 | +} | |
58 | + | |
59 | +-(id)init{ | |
60 | + | |
61 | + | |
62 | + | |
63 | + NSString *directoryPath; | |
64 | + | |
65 | + directoryPath = [[NSBundle mainBundle] bundlePath]; | |
66 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath]; | |
67 | + | |
68 | + | |
69 | + NSString* Cpath = @"Contents/Resources/"; | |
70 | + [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath]; | |
71 | + | |
72 | + optionMenu = self; | |
73 | + | |
74 | + if(![[NSFileManager defaultManager] fileExistsAtPath:@OPTIONFILE_NAME]){ | |
75 | + wtfom.nameTitle = [@"Awars IV" retain]; | |
76 | + wtfom.nameVersion = [@"Version Alpha 0.68" retain]; | |
77 | + wtfom.nameOpening = [@"SHnoHohoemi.mp4" retain]; | |
78 | + wtfom.nameBGM = [@"sampleTitle.mp3" retain]; | |
79 | + wtfom.imgTitle = [[NSImage imageNamed:@"タイトル"] retain]; | |
80 | + wtfom.allowMapEditor = true; | |
81 | + wtfom.allowScenarioEditor = true; | |
82 | + wtfom.onlyOnceOpening = true; | |
83 | + wtfom.newOpeningIsShown = false; | |
84 | + | |
85 | + } | |
86 | + | |
87 | + | |
88 | + return self; | |
89 | +} | |
90 | + | |
91 | +-(void)loadOM{ | |
92 | + | |
93 | + [OMTF1 setStringValue:wtfom.nameTitle]; | |
94 | + [OMTF2 setStringValue:wtfom.nameVersion]; | |
95 | + [OMTF3 setStringValue:wtfom.nameOpening]; | |
96 | + [OMTF4 setStringValue:wtfom.nameBGM]; | |
97 | + | |
98 | + [OMIV setImage:wtfom.imgTitle]; | |
99 | + | |
100 | + [OMBTN1 setState:wtfom.allowMapEditor]; | |
101 | + [OMBTN2 setState:wtfom.allowScenarioEditor]; | |
102 | + [OMBTN3 setState:wtfom.onlyOnceOpening]; | |
103 | +} | |
104 | + | |
105 | +-(void)saveOM{ | |
106 | + | |
107 | + NSString *postNameOpening = [wtfom.nameOpening retain]; | |
108 | + | |
109 | + wtfom.nameTitle = [[OMTF1 stringValue] retain]; | |
110 | + wtfom.nameVersion = [[OMTF2 stringValue] retain]; | |
111 | + wtfom.nameOpening = [[OMTF3 stringValue] retain]; | |
112 | + wtfom.nameBGM = [[OMTF4 stringValue] retain]; | |
113 | + wtfom.imgTitle = [[OMIV image] retain]; | |
114 | + wtfom.allowMapEditor = [OMBTN1 state]; | |
115 | + wtfom.allowScenarioEditor = [OMBTN2 state]; | |
116 | + wtfom.onlyOnceOpening = [OMBTN3 state]; | |
117 | + | |
118 | + if(![postNameOpening isEqualToString:wtfom.nameOpening]) | |
119 | + wtfom.newOpeningIsShown = false; | |
120 | + | |
121 | +} | |
122 | + | |
123 | + | |
124 | +-(IBAction)OMsubmit:(id)sender{ | |
125 | + | |
126 | + | |
127 | + [self saveOM]; | |
128 | + [fieldScene saveOptionMenu]; | |
129 | + [fieldScene loadOptionMenu]; | |
130 | + [title loadFromOM:false]; | |
131 | + [OMWindow close]; | |
132 | +} | |
133 | + | |
134 | +@end |
@@ -1608,6 +1608,10 @@ | ||
1608 | 1608 | |
1609 | 1609 | |
1610 | 1610 | -(IBAction)titleBtn:(id)sender{ |
1611 | + if(titleBGM) { | |
1612 | + [titleBGM setCurrentTime:0]; | |
1613 | + [titleBGM play]; | |
1614 | + } | |
1611 | 1615 | |
1612 | 1616 | [scenarioEditorWindow close]; |
1613 | 1617 | [titleWindow makeKeyAndOrderFront:nil]; |
@@ -7,9 +7,14 @@ | ||
7 | 7 | // |
8 | 8 | |
9 | 9 | #import <Foundation/Foundation.h> |
10 | +#import <AVFoundation/AVFoundation.h> | |
11 | +#import <AVKit/AVKit.h> | |
10 | 12 | #import "ScenarioList.h" |
11 | 13 | #import "SaveDataList.h" |
12 | 14 | #import "MapEditor.h" |
15 | +#import "OptionMenu.h" | |
16 | +#import "FieldScene.h" | |
17 | + | |
13 | 18 | bool galleryClickedFlag; |
14 | 19 | bool startClickedFlag; |
15 | 20 |
@@ -29,6 +34,12 @@ bool startClickedFlag; | ||
29 | 34 | |
30 | 35 | IBOutlet NSImageView *IVTitle; |
31 | 36 | NSPoint windowPoint; |
37 | + | |
38 | + IBOutlet NSTextField *nameTitleTF; | |
39 | + IBOutlet NSTextField *nameVerionTF; | |
40 | + | |
41 | + IBOutlet NSButton *mapEditorBtn; | |
42 | + IBOutlet NSButton *scenarioEditorBtn; | |
32 | 43 | } |
33 | 44 | |
34 | 45 |
@@ -40,5 +51,13 @@ bool startClickedFlag; | ||
40 | 51 | -(IBAction)ScenarioEditor:(id)sender; |
41 | 52 | -(IBAction)Quit:(id)sender; |
42 | 53 | |
54 | +-(void)loadFromOM:(bool)movON; | |
55 | + | |
56 | +@end | |
57 | +Title *title; | |
58 | + | |
59 | +@interface TitleView : NSView | |
60 | +{ | |
43 | 61 | |
62 | +} | |
44 | 63 | @end |
@@ -26,11 +26,46 @@ | ||
26 | 26 | ]; |
27 | 27 | } |
28 | 28 | |
29 | - | |
29 | + title = self; | |
30 | 30 | |
31 | 31 | return self; |
32 | 32 | } |
33 | 33 | |
34 | +-(void)loadFromOM:(bool)movON{ | |
35 | + [nameTitleTF setStringValue:wtfom.nameTitle]; | |
36 | + [nameVerionTF setStringValue:wtfom.nameVersion]; | |
37 | + | |
38 | + [IVTitle setImage:wtfom.imgTitle]; | |
39 | + | |
40 | + if(wtfom.allowMapEditor) | |
41 | + [mapEditorBtn setEnabled:YES]; | |
42 | + else | |
43 | + [mapEditorBtn setEnabled:NO]; | |
44 | + if(wtfom.allowScenarioEditor) | |
45 | + [scenarioEditorBtn setEnabled:YES]; | |
46 | + else | |
47 | + [scenarioEditorBtn setEnabled:NO]; | |
48 | + openingAVPVisActive = true; | |
49 | + | |
50 | + if(movON) | |
51 | + if(openingAVP){ | |
52 | + if(!wtfom.onlyOnceOpening){ | |
53 | + openingAVPVisHidden = false; | |
54 | + [fieldScene openingAVPVfunc]; | |
55 | + [openingAVP play]; | |
56 | + wtfom.newOpeningIsShown = true; | |
57 | + }else if(wtfom.onlyOnceOpening && !wtfom.newOpeningIsShown){ | |
58 | + openingAVPVisHidden = false; | |
59 | + [fieldScene openingAVPVfunc]; | |
60 | + [openingAVP play]; | |
61 | + wtfom.newOpeningIsShown = true; | |
62 | + }else{ | |
63 | + openingAVPVisHidden = true; | |
64 | + [fieldScene openingAVPVfunc]; | |
65 | + } | |
66 | + } | |
67 | +} | |
68 | + | |
34 | 69 | -(void)EventLoopTitle:(NSTimer *)timer{ |
35 | 70 | |
36 | 71 | static bool StandImageLoadOK = false; |
@@ -62,9 +97,16 @@ | ||
62 | 97 | |
63 | 98 | } |
64 | 99 | -(IBAction)Option:(id)sender{ |
100 | + if(titleBGM) [titleBGM stop]; | |
101 | + [fieldScene loadOptionMenu]; | |
102 | + [optionMenu loadOM]; | |
103 | + windowPoint.x = [TitleWindow frame].origin.x; | |
104 | + windowPoint.y = [TitleWindow frame].origin.y; | |
105 | + [OptionWindow setFrameOrigin:windowPoint]; | |
65 | 106 | [OptionWindow makeKeyAndOrderFront:nil]; |
66 | 107 | } |
67 | 108 | -(IBAction)MapEditor:(id)sender{ |
109 | + if(titleBGM) [titleBGM stop]; | |
68 | 110 | [MapEditorWindow makeKeyAndOrderFront:nil]; |
69 | 111 | windowPoint.x = [TitleWindow frame].origin.x; |
70 | 112 | windowPoint.y = [TitleWindow frame].origin.y; |
@@ -73,10 +115,34 @@ | ||
73 | 115 | [TitleWindow close]; |
74 | 116 | } |
75 | 117 | -(IBAction)ScenarioEditor:(id)sender{ |
118 | + if(titleBGM) [titleBGM stop]; | |
76 | 119 | [ScenarioEditorWindow makeKeyAndOrderFront:nil]; |
77 | 120 | } |
78 | 121 | -(IBAction)Quit:(id)sender{ |
122 | + | |
123 | + [fieldScene saveOptionMenu]; | |
79 | 124 | [NSApp terminate:self]; |
80 | 125 | } |
81 | 126 | |
82 | 127 | @end |
128 | + | |
129 | + | |
130 | + | |
131 | + | |
132 | +@implementation TitleView | |
133 | + | |
134 | +-(void)scrollWheel:(NSEvent *)theEvent{ | |
135 | + | |
136 | + theEvent = NULL; | |
137 | + | |
138 | +} | |
139 | + | |
140 | +- (void)mouseUp:(NSEvent *)event | |
141 | +{ | |
142 | + NSInteger clickCount = [event clickCount]; | |
143 | + if (2 == clickCount) openingAVPisDeactive = true; | |
144 | +} | |
145 | + | |
146 | + | |
147 | + | |
148 | +@end |
@@ -367,15 +367,15 @@ | ||
367 | 367 | <window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="371" userLabel="メインウィンドウ"> |
368 | 368 | <windowStyleMask key="styleMask" titled="YES"/> |
369 | 369 | <rect key="contentRect" x="335" y="390" width="640" height="480"/> |
370 | - <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/> | |
370 | + <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/> | |
371 | 371 | <view key="contentView" id="372"> |
372 | 372 | <rect key="frame" x="0.0" y="0.0" width="640" height="480"/> |
373 | 373 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
374 | 374 | <subviews> |
375 | 375 | <textField verticalHuggingPriority="750" id="536"> |
376 | - <rect key="frame" x="198" y="387" width="262" height="73"/> | |
376 | + <rect key="frame" x="18" y="387" width="604" height="73"/> | |
377 | 377 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> |
378 | - <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="AWars IV" id="537"> | |
378 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="AWars IV" id="537"> | |
379 | 379 | <font key="font" size="60" name="LiSongPro"/> |
380 | 380 | <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> |
381 | 381 | <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> |
@@ -459,9 +459,9 @@ | ||
459 | 459 | </connections> |
460 | 460 | </button> |
461 | 461 | <imageView id="3835"> |
462 | - <rect key="frame" x="246" y="88" width="355" height="225"/> | |
462 | + <rect key="frame" x="240" y="82" width="366" height="231"/> | |
463 | 463 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> |
464 | - <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" imageFrameStyle="photo" image="タイトル" id="3836"/> | |
464 | + <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" imageFrameStyle="photo" image="タイトル" id="3836"/> | |
465 | 465 | </imageView> |
466 | 466 | <textField verticalHuggingPriority="750" id="558"> |
467 | 467 | <rect key="frame" x="18" y="443" width="118" height="17"/> |
@@ -472,6 +472,14 @@ | ||
472 | 472 | <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> |
473 | 473 | </textFieldCell> |
474 | 474 | </textField> |
475 | + <avPlayerView hidden="YES" canDrawConcurrently="YES" controlsStyle="none" id="1km-GI-bUn"> | |
476 | + <rect key="frame" x="0.0" y="0.0" width="640" height="480"/> | |
477 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
478 | + </avPlayerView> | |
479 | + <customView id="0uE-9I-QYI" customClass="TitleView"> | |
480 | + <rect key="frame" x="0.0" y="0.0" width="640" height="480"/> | |
481 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
482 | + </customView> | |
475 | 483 | </subviews> |
476 | 484 | </view> |
477 | 485 | <point key="canvasLocation" x="357" y="330"/> |
@@ -490,9 +498,14 @@ | ||
490 | 498 | <outlet property="GalleryWindow" destination="3481" id="3811"/> |
491 | 499 | <outlet property="IVTitle" destination="3835" id="3843"/> |
492 | 500 | <outlet property="MapEditorWindow" destination="767" id="1700"/> |
501 | + <outlet property="OptionWindow" destination="KcJ-WD-ggB" id="UOG-E2-0Gm"/> | |
493 | 502 | <outlet property="ScenarioEditorWindow" destination="9420" id="9721"/> |
494 | 503 | <outlet property="StartWindow" destination="643" id="1698"/> |
495 | 504 | <outlet property="TitleWindow" destination="371" id="1716"/> |
505 | + <outlet property="mapEditorBtn" destination="581" id="WnR-Yc-YS9"/> | |
506 | + <outlet property="nameTitleTF" destination="536" id="VlC-lO-p5K"/> | |
507 | + <outlet property="nameVerionTF" destination="558" id="DyW-4W-eZG"/> | |
508 | + <outlet property="scenarioEditorBtn" destination="604" id="ofy-a6-1L5"/> | |
496 | 509 | </connections> |
497 | 510 | </customObject> |
498 | 511 | <customObject id="1708" customClass="StartMenu"> |
@@ -934,6 +947,19 @@ | ||
934 | 947 | </connections> |
935 | 948 | </customObject> |
936 | 949 | <customObject id="1NS-mT-dBn" customClass="BackGroundMusic"/> |
950 | + <customObject id="xY7-dn-aH5" customClass="OptionMenu"> | |
951 | + <connections> | |
952 | + <outlet property="OMBTN1" destination="kye-E2-NLj" id="2Kh-4Z-5x0"/> | |
953 | + <outlet property="OMBTN2" destination="cfB-iU-BQS" id="pq2-rE-8Ei"/> | |
954 | + <outlet property="OMBTN3" destination="g37-4D-xEU" id="go0-Yq-zbK"/> | |
955 | + <outlet property="OMIV" destination="joQ-bH-O6B" id="o5e-oj-sSu"/> | |
956 | + <outlet property="OMTF1" destination="7wj-2V-69R" id="LHK-Ix-7XC"/> | |
957 | + <outlet property="OMTF2" destination="Dvc-vw-8KR" id="NqZ-ve-nLS"/> | |
958 | + <outlet property="OMTF3" destination="TVe-U0-EhM" id="IZ5-Pm-X84"/> | |
959 | + <outlet property="OMTF4" destination="WDF-pA-nOc" id="k4T-QU-RAt"/> | |
960 | + <outlet property="OMWindow" destination="KcJ-WD-ggB" id="tQF-jD-9KI"/> | |
961 | + </connections> | |
962 | + </customObject> | |
937 | 963 | <arrayController id="4OI-TZ-1oL" userLabel="EDhpFixListAC1"> |
938 | 964 | <connections> |
939 | 965 | <binding destination="3826" name="contentArray" keyPath="EDhpFixListMA1" id="7Ez-Fh-bTk"/> |
@@ -1954,6 +1980,7 @@ | ||
1954 | 1980 | <outlet property="mplayer2" destination="10759" id="11238"/> |
1955 | 1981 | <outlet property="nplayer1" destination="10756" id="11224"/> |
1956 | 1982 | <outlet property="nplayer2" destination="10807" id="11225"/> |
1983 | + <outlet property="openingAVPV" destination="1km-GI-bUn" id="aEL-yr-gNd"/> | |
1957 | 1984 | <outlet property="region" destination="11086" id="11173"/> |
1958 | 1985 | <outlet property="researchACU" destination="12712" id="12761"/> |
1959 | 1986 | <outlet property="researchATK" destination="12709" id="12754"/> |
@@ -2362,7 +2389,7 @@ | ||
2362 | 2389 | <autoresizingMask key="autoresizingMask"/> |
2363 | 2390 | </scroller> |
2364 | 2391 | <scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="1720"> |
2365 | - <rect key="frame" x="466" y="1" width="15" height="480"/> | |
2392 | + <rect key="frame" x="465" y="1" width="16" height="480"/> | |
2366 | 2393 | <autoresizingMask key="autoresizingMask"/> |
2367 | 2394 | </scroller> |
2368 | 2395 | </scrollView> |
@@ -2459,7 +2486,7 @@ | ||
2459 | 2486 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
2460 | 2487 | <subviews> |
2461 | 2488 | <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" rowHeight="32" headerView="1837" id="911"> |
2462 | - <rect key="frame" x="0.0" y="0.0" width="600" height="34"/> | |
2489 | + <rect key="frame" x="0.0" y="0.0" width="600" height="342"/> | |
2463 | 2490 | <autoresizingMask key="autoresizingMask"/> |
2464 | 2491 | <size key="intercellSpacing" width="3" height="2"/> |
2465 | 2492 | <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> |
@@ -9018,7 +9045,7 @@ | ||
9018 | 9045 | <autoresizingMask key="autoresizingMask"/> |
9019 | 9046 | </scroller> |
9020 | 9047 | <scroller key="verticalScroller" verticalHuggingPriority="750" horizontal="NO" id="10395"> |
9021 | - <rect key="frame" x="466" y="1" width="15" height="480"/> | |
9048 | + <rect key="frame" x="465" y="1" width="16" height="480"/> | |
9022 | 9049 | <autoresizingMask key="autoresizingMask"/> |
9023 | 9050 | </scroller> |
9024 | 9051 | </scrollView> |
@@ -23031,6 +23058,148 @@ | ||
23031 | 23058 | </view> |
23032 | 23059 | <point key="canvasLocation" x="-747" y="1126"/> |
23033 | 23060 | </window> |
23061 | + <window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="KcJ-WD-ggB" userLabel="オプション画面"> | |
23062 | + <windowStyleMask key="styleMask" titled="YES"/> | |
23063 | + <rect key="contentRect" x="335" y="390" width="640" height="480"/> | |
23064 | + <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/> | |
23065 | + <view key="contentView" id="YxX-Tp-kFp"> | |
23066 | + <rect key="frame" x="0.0" y="0.0" width="640" height="480"/> | |
23067 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
23068 | + <subviews> | |
23069 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="1AZ-NE-ZhD"> | |
23070 | + <rect key="frame" x="18" y="443" width="95" height="17"/> | |
23071 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23072 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="オプション決定" id="HZm-H8-vnd"> | |
23073 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23074 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23075 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23076 | + </textFieldCell> | |
23077 | + </textField> | |
23078 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="5fy-eH-772"> | |
23079 | + <rect key="frame" x="18" y="394" width="69" height="17"/> | |
23080 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23081 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="タイトル名" id="KiS-2M-O9t"> | |
23082 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23083 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23084 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23085 | + </textFieldCell> | |
23086 | + </textField> | |
23087 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="LJM-Ri-j7i"> | |
23088 | + <rect key="frame" x="253" y="443" width="108" height="17"/> | |
23089 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23090 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="タイトルイメージ" id="KWz-NC-pLB"> | |
23091 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23092 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23093 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23094 | + </textFieldCell> | |
23095 | + </textField> | |
23096 | + <textField verticalHuggingPriority="750" id="7wj-2V-69R"> | |
23097 | + <rect key="frame" x="20" y="364" width="200" height="22"/> | |
23098 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23099 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="SS2-cb-r9j"> | |
23100 | + <font key="font" metaFont="system"/> | |
23101 | + <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> | |
23102 | + <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | |
23103 | + </textFieldCell> | |
23104 | + </textField> | |
23105 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="i9G-V8-Jz9"> | |
23106 | + <rect key="frame" x="18" y="334" width="95" height="17"/> | |
23107 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23108 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="バージョン情報" id="jz4-AF-9eq"> | |
23109 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23110 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23111 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23112 | + </textFieldCell> | |
23113 | + </textField> | |
23114 | + <textField verticalHuggingPriority="750" id="Dvc-vw-8KR"> | |
23115 | + <rect key="frame" x="20" y="304" width="200" height="22"/> | |
23116 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23117 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="mVr-Rj-Alg"> | |
23118 | + <font key="font" metaFont="system"/> | |
23119 | + <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> | |
23120 | + <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | |
23121 | + </textFieldCell> | |
23122 | + </textField> | |
23123 | + <button verticalHuggingPriority="750" id="fzH-U5-4FT"> | |
23124 | + <rect key="frame" x="552" y="13" width="66" height="32"/> | |
23125 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23126 | + <buttonCell key="cell" type="push" title="決定" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="bb2-l1-SmF"> | |
23127 | + <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | |
23128 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23129 | + </buttonCell> | |
23130 | + <connections> | |
23131 | + <action selector="OMsubmit:" target="xY7-dn-aH5" id="ANg-6e-KuA"/> | |
23132 | + </connections> | |
23133 | + </button> | |
23134 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="6mC-gP-8Fe"> | |
23135 | + <rect key="frame" x="18" y="279" width="108" height="17"/> | |
23136 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23137 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="オーブニング動画" id="8mm-05-WUF"> | |
23138 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23139 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23140 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23141 | + </textFieldCell> | |
23142 | + </textField> | |
23143 | + <textField verticalHuggingPriority="750" id="TVe-U0-EhM"> | |
23144 | + <rect key="frame" x="20" y="249" width="200" height="22"/> | |
23145 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23146 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="sBa-ue-HiK"> | |
23147 | + <font key="font" metaFont="system"/> | |
23148 | + <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> | |
23149 | + <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | |
23150 | + </textFieldCell> | |
23151 | + </textField> | |
23152 | + <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="IFO-6y-gbF"> | |
23153 | + <rect key="frame" x="18" y="224" width="88" height="17"/> | |
23154 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23155 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="タイトルBGM" id="JeF-Zx-Uvc"> | |
23156 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23157 | + <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | |
23158 | + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | |
23159 | + </textFieldCell> | |
23160 | + </textField> | |
23161 | + <textField verticalHuggingPriority="750" id="WDF-pA-nOc"> | |
23162 | + <rect key="frame" x="20" y="194" width="200" height="22"/> | |
23163 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23164 | + <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="7ky-Yv-uVV"> | |
23165 | + <font key="font" metaFont="system"/> | |
23166 | + <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> | |
23167 | + <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | |
23168 | + </textFieldCell> | |
23169 | + </textField> | |
23170 | + <button id="kye-E2-NLj"> | |
23171 | + <rect key="frame" x="18" y="154" width="113" height="18"/> | |
23172 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23173 | + <buttonCell key="cell" type="check" title="マップエディタ" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="pfD-sy-qHF"> | |
23174 | + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> | |
23175 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23176 | + </buttonCell> | |
23177 | + </button> | |
23178 | + <button id="cfB-iU-BQS"> | |
23179 | + <rect key="frame" x="141" y="154" width="126" height="18"/> | |
23180 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23181 | + <buttonCell key="cell" type="check" title="シナリオエディタ" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="F9T-Zd-jSF"> | |
23182 | + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> | |
23183 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23184 | + </buttonCell> | |
23185 | + </button> | |
23186 | + <button id="g37-4D-xEU"> | |
23187 | + <rect key="frame" x="148" y="278" width="74" height="18"/> | |
23188 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23189 | + <buttonCell key="cell" type="check" title="初回のみ" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="Op2-Sp-ft5"> | |
23190 | + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> | |
23191 | + <font key="font" size="13" name="HiraKakuProN-W3"/> | |
23192 | + </buttonCell> | |
23193 | + </button> | |
23194 | + <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="joQ-bH-O6B"> | |
23195 | + <rect key="frame" x="257" y="301" width="206" height="131"/> | |
23196 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | |
23197 | + <imageCell key="cell" selectable="YES" editable="YES" alignment="left" imageScaling="axesIndependently" imageFrameStyle="photo" id="9Nh-Ic-yw8"/> | |
23198 | + </imageView> | |
23199 | + </subviews> | |
23200 | + </view> | |
23201 | + <point key="canvasLocation" x="357" y="330"/> | |
23202 | + </window> | |
23034 | 23203 | </objects> |
23035 | 23204 | <resources> |
23036 | 23205 | <image name="BackGround" width="32" height="32"/> |