• R/O
  • HTTP
  • SSH
  • HTTPS

AwarsIV: 提交

AwarsIVのリポジトリです


Commit MetaInfo

修订版6190791a78330267af5c176c2a6f6fa1bfc84fe1 (tree)
时间2016-07-23 10:50:04
作者Killery <Killery@kiri...>
CommiterKillery

Log Message

オプション機能を追加

更改概述

差异

--- a/Awars III.xcodeproj/project.pbxproj
+++ b/Awars III.xcodeproj/project.pbxproj
@@ -48,6 +48,7 @@
4848 C65A72BC188F34B200FC1FF1 /* lc22.png in Resources */ = {isa = PBXBuildFile; fileRef = C65A72B9188F34B200FC1FF1 /* lc22.png */; };
4949 C65A72BD188F34B200FC1FF1 /* lc23.png in Resources */ = {isa = PBXBuildFile; fileRef = C65A72BA188F34B200FC1FF1 /* lc23.png */; };
5050 C6691619182B4F6600CB4D2A /* StandView.m in Sources */ = {isa = PBXBuildFile; fileRef = C6691618182B4F6600CB4D2A /* StandView.m */; };
51+ C66C96081D429EB500D532C0 /* OptionMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = C66C96071D429EB500D532C0 /* OptionMenu.m */; };
5152 C6774C22188DFEB9005CBE99 /* lc1.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C0E188DFEB9005CBE99 /* lc1.png */; };
5253 C6774C23188DFEB9005CBE99 /* lc2.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C0F188DFEB9005CBE99 /* lc2.png */; };
5354 C6774C24188DFEB9005CBE99 /* lc3.png in Resources */ = {isa = PBXBuildFile; fileRef = C6774C10188DFEB9005CBE99 /* lc3.png */; };
@@ -388,6 +389,8 @@
388389 C65A72BA188F34B200FC1FF1 /* lc23.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc23.png; sourceTree = "<group>"; };
389390 C6691617182B4F6600CB4D2A /* StandView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StandView.h; sourceTree = "<group>"; };
390391 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>"; };
391394 C6774C0E188DFEB9005CBE99 /* lc1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc1.png; sourceTree = "<group>"; };
392395 C6774C0F188DFEB9005CBE99 /* lc2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc2.png; sourceTree = "<group>"; };
393396 C6774C10188DFEB9005CBE99 /* lc3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc3.png; sourceTree = "<group>"; };
@@ -769,6 +772,8 @@
769772 C6E02F3B1C5FAF0D00B3304B /* FPS.m */,
770773 C633EC221C5F5DC200B9E0E5 /* Idle.h */,
771774 C633EC231C5F5DC200B9E0E5 /* Idle.m */,
775+ C66C96061D429EB500D532C0 /* OptionMenu.h */,
776+ C66C96071D429EB500D532C0 /* OptionMenu.m */,
772777 C69C3ED716D2350A00FA2D1B /* Game */,
773778 C6E8DA33167C988C00BFEC32 /* MapEditor */,
774779 C68DD4A51686E0CE009CE3AE /* Scenario */,
@@ -1572,6 +1577,7 @@
15721577 C61BFA02169CEA89009070DC /* SaveDataList.m in Sources */,
15731578 C6AD18B3169D0A0100783718 /* Gallery.m in Sources */,
15741579 C6D4400016B5DFC4003C9C53 /* ScenarioEditor.m in Sources */,
1580+ C66C96081D429EB500D532C0 /* OptionMenu.m in Sources */,
15751581 C688AE3C16C06187006E8713 /* CommandView.m in Sources */,
15761582 C6AA2925188489520083001C /* LoadChipList.m in Sources */,
15771583 C69C3EDA16D2356200FA2D1B /* EventScene.m in Sources */,
--- a/Awars III/BackGroundMusic.m
+++ b/Awars III/BackGroundMusic.m
@@ -44,5 +44,14 @@
4444 }
4545 }
4646
47+ if(titleBGM)
48+ {
49+ if(0.01 >[titleBGM duration]-[titleBGM currentTime])
50+ {
51+ [titleBGM setCurrentTime:0.0];
52+ }
53+ }
54+
55+
4756 }
4857 @end
--- a/Awars III/EventScene.m
+++ b/Awars III/EventScene.m
@@ -39,6 +39,7 @@
3939
4040
4141 if(!startES) return;
42+ if(titleBGM) [titleBGM stop];
4243 ST = NULL;
4344 static bool seFlag;
4445
@@ -141,6 +142,7 @@
141142 [SEes stop];
142143 if(esSceneProc == 0){
143144 [titleWindow makeKeyAndOrderFront:nil];
145+ if(titleBGM) [titleBGM play];
144146 esSceneProc++;
145147 }
146148 saveDataLoadedFlag = false;
@@ -271,6 +273,7 @@
271273 if(SEes)
272274 [SEes stop];
273275 [titleWindow makeKeyAndOrderFront:nil];
276+ if(titleBGM) [titleBGM play];
274277 [esWindow close];
275278 return;
276279 }
--- a/Awars III/FieldScene.h
+++ b/Awars III/FieldScene.h
@@ -25,6 +25,7 @@
2525 #define SAVEDATADATMAX 4096
2626 #define DATAFILE_NAME "data.dat"
2727 #define INSTANT_IMG "image.png"
28+#define OPTIONFILE_NAME "opData.dat"
2829
2930 #define FIELD_TYPE_A 0
3031 #define FIELD_TYPE_B 1
@@ -992,10 +993,18 @@ char *datFilePath;
992993 bool datFileLoadCompFromTitle;
993994 bool datFileLoadCompFromField;
994995
996+NSSound *titleBGM;
997+AVPlayer *openingAVP;
998+bool openingAVPVisHidden;
999+bool openingAVPVisActive;
1000+bool openingAVPisDeactive;
1001+
9951002 @interface FieldScene : NSObject
9961003 {
9971004 NSTimer *time;
9981005
1006+ IBOutlet AVPlayerView *openingAVPV;
1007+
9991008
10001009 IBOutlet NSTextField *btHITtf1;
10011010 IBOutlet NSTextField *btHITtf2;
@@ -1265,6 +1274,7 @@ bool datFileLoadCompFromField;
12651274
12661275 }
12671276 -(void)loadStruct;
1277+-(void)openingAVPVfunc;
12681278
12691279 -(IBAction)saveGameSubmit:(id)sender;
12701280 -(IBAction)saveGameCancel:(id)sender;
@@ -1346,11 +1356,13 @@ bool datFileLoadCompFromField;
13461356
13471357 -(void)loadGameDataDat;
13481358
1359+-(void)loadOptionMenu;
1360+-(void)saveOptionMenu;
13491361
13501362 @end
13511363
13521364 FieldScene *fieldScene;
1353-
1365+bool fieldSceneSelfFlag;
13541366
13551367
13561368
--- a/Awars III/FieldScene.m
+++ b/Awars III/FieldScene.m
@@ -73,6 +73,8 @@
7373 ];
7474
7575 fieldScene = self;
76+ fieldSceneSelfFlag = true;
77+ openingAVP = NULL;
7678
7779 P[0].name = [@"青軍" retain];
7880 P[0].type = 0;
@@ -117,28 +119,25 @@
117119 fwrite([str UTF8String], sizeof(str), length, fp);
118120 }
119121
120--(void)writeNSImage:(FILE*)fp str:(NSImage*)img{
122+-(void)writeNSImage:(FILE*)fp str:(NSImage*)img adCnt:(int*)adCnt adFix:(int*)adFix{
121123 FILE *fpx;
122124
123125 NSString *directoryPath;
124126
125- directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
127+ directoryPath = [[NSBundle mainBundle] bundlePath];
126128 [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
127129
128- NSString* Cpath = @"Awars IV.app/Contents/Resources/";
130+ NSString* Cpath = @"Contents/Resources/";
129131 [[NSFileManager defaultManager] changeCurrentDirectoryPath:Cpath];
130132
131- NSString *path = @DATAFILE_NAME;
132- NSString *path2 = @INSTANT_IMG;
133-
134133 if(1){
135134 NSData *imgData = [img TIFFRepresentation];
136135 NSBitmapImageRep *brep = [NSBitmapImageRep imageRepWithData:imgData];
137136 imgData = [brep representationUsingType:NSPNGFileType properties:nil];
138- [imgData writeToFile:path2 atomically:YES];
137+ [imgData writeToFile:@INSTANT_IMG atomically:YES];
139138
140139 fpx = fopen(INSTANT_IMG, "rb");
141- [self fcopy:fpx wfp:fp len:0];
140+ [self fcopy:fpx wfp:fp adCnt:adCnt adFix:adFix];
142141 fclose(fpx);
143142 }
144143
@@ -146,13 +145,13 @@
146145 }
147146
148147
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{
150149
151150 unsigned char in_buf[1024], out_buf[1024];
152151 int rinf;
153152
154- sdd.imgAdressCnt = 0;
155- sdd.imgAdressFix = 0;
153+ *adCnt = 0;
154+ *adFix = 0;
156155
157156 fpos_t fpt = 0;
158157 while (!feof(rfp)) {
@@ -166,14 +165,14 @@
166165 if(rinf < 0){
167166 return (-1);
168167 }
169- sdd.imgAdressCnt++;
170- sdd.imgAdressFix = rinf;
168+ (*adCnt)++;
169+ *adFix = rinf;
171170 }
172171
173- fpt -= (sdd.imgAdressCnt-1)*1024;
172+ fpt -= ((*adCnt)-1)*1024;
174173 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];
177176
178177 fpt = 0;
179178 fsetpos(rfp, &fpt);
@@ -1767,7 +1766,7 @@
17671766
17681767
17691768 [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];
17711770
17721771
17731772 [self writeInt:fpo val:sdd.MFselectedRow];
@@ -2128,7 +2127,7 @@
21282127
21292128 sdd2[datRow].imgAdressCnt = (int)[self readInt:fpi];
21302129 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];
21322131
21332132 sdd2[datRow].MFselectedRow = (int)[self readInt:fpi];
21342133 sdd2[datRow].storyNumb = (int)[self readInt:fpi];
@@ -2224,9 +2223,131 @@
22242223 }
22252224
22262225
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;
22272241
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];
22282257
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;
22292278
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+}
22302351
22312352
22322353
@@ -3335,6 +3456,22 @@
33353456
33363457 -(void)EventLoopFS:(NSTimer*)time{
33373458
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+
33383475 //NSLog(@"msgCnt %d", msgCnt);
33393476
33403477 if(stopByFSVmenuFlag){
@@ -15576,6 +15713,7 @@ SKIP1:
1557615713
1557715714 [BGMsub stop];
1557815715 BGMsub = NULL;
15716+ if(titleBGM) [titleBGM play];
1557915717
1558015718 endGameCondition = false;
1558115719 initMapFlag = false;
--- a/Awars III/MapEditor.m
+++ b/Awars III/MapEditor.m
@@ -1766,6 +1766,11 @@
17661766 }
17671767
17681768 -(IBAction)backTitle:(id)sender{
1769+ if(titleBGM) {
1770+ [titleBGM setCurrentTime:0];
1771+ [titleBGM play];
1772+ }
1773+
17691774 windowPoint.x = [MapEditorWindow frame].origin.x;
17701775 windowPoint.y = [MapEditorWindow frame].origin.y;
17711776 [TitleWindow setFrameOrigin:windowPoint];
--- /dev/null
+++ b/Awars III/OptionMenu.h
@@ -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;
--- /dev/null
+++ b/Awars III/OptionMenu.m
@@ -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
--- a/Awars III/ScenarioEditor.m
+++ b/Awars III/ScenarioEditor.m
@@ -1608,6 +1608,10 @@
16081608
16091609
16101610 -(IBAction)titleBtn:(id)sender{
1611+ if(titleBGM) {
1612+ [titleBGM setCurrentTime:0];
1613+ [titleBGM play];
1614+ }
16111615
16121616 [scenarioEditorWindow close];
16131617 [titleWindow makeKeyAndOrderFront:nil];
--- a/Awars III/Title.h
+++ b/Awars III/Title.h
@@ -7,9 +7,14 @@
77 //
88
99 #import <Foundation/Foundation.h>
10+#import <AVFoundation/AVFoundation.h>
11+#import <AVKit/AVKit.h>
1012 #import "ScenarioList.h"
1113 #import "SaveDataList.h"
1214 #import "MapEditor.h"
15+#import "OptionMenu.h"
16+#import "FieldScene.h"
17+
1318 bool galleryClickedFlag;
1419 bool startClickedFlag;
1520
@@ -29,6 +34,12 @@ bool startClickedFlag;
2934
3035 IBOutlet NSImageView *IVTitle;
3136 NSPoint windowPoint;
37+
38+ IBOutlet NSTextField *nameTitleTF;
39+ IBOutlet NSTextField *nameVerionTF;
40+
41+ IBOutlet NSButton *mapEditorBtn;
42+ IBOutlet NSButton *scenarioEditorBtn;
3243 }
3344
3445
@@ -40,5 +51,13 @@ bool startClickedFlag;
4051 -(IBAction)ScenarioEditor:(id)sender;
4152 -(IBAction)Quit:(id)sender;
4253
54+-(void)loadFromOM:(bool)movON;
55+
56+@end
57+Title *title;
58+
59+@interface TitleView : NSView
60+{
4361
62+}
4463 @end
--- a/Awars III/Title.m
+++ b/Awars III/Title.m
@@ -26,11 +26,46 @@
2626 ];
2727 }
2828
29-
29+ title = self;
3030
3131 return self;
3232 }
3333
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+
3469 -(void)EventLoopTitle:(NSTimer *)timer{
3570
3671 static bool StandImageLoadOK = false;
@@ -62,9 +97,16 @@
6297
6398 }
6499 -(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];
65106 [OptionWindow makeKeyAndOrderFront:nil];
66107 }
67108 -(IBAction)MapEditor:(id)sender{
109+ if(titleBGM) [titleBGM stop];
68110 [MapEditorWindow makeKeyAndOrderFront:nil];
69111 windowPoint.x = [TitleWindow frame].origin.x;
70112 windowPoint.y = [TitleWindow frame].origin.y;
@@ -73,10 +115,34 @@
73115 [TitleWindow close];
74116 }
75117 -(IBAction)ScenarioEditor:(id)sender{
118+ if(titleBGM) [titleBGM stop];
76119 [ScenarioEditorWindow makeKeyAndOrderFront:nil];
77120 }
78121 -(IBAction)Quit:(id)sender{
122+
123+ [fieldScene saveOptionMenu];
79124 [NSApp terminate:self];
80125 }
81126
82127 @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
--- a/Awars III/en.lproj/MainMenu.xib
+++ b/Awars III/en.lproj/MainMenu.xib
@@ -367,15 +367,15 @@
367367 <window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="371" userLabel="メインウィンドウ">
368368 <windowStyleMask key="styleMask" titled="YES"/>
369369 <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"/>
371371 <view key="contentView" id="372">
372372 <rect key="frame" x="0.0" y="0.0" width="640" height="480"/>
373373 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
374374 <subviews>
375375 <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"/>
377377 <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">
379379 <font key="font" size="60" name="LiSongPro"/>
380380 <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
381381 <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
@@ -459,9 +459,9 @@
459459 </connections>
460460 </button>
461461 <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"/>
463463 <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"/>
465465 </imageView>
466466 <textField verticalHuggingPriority="750" id="558">
467467 <rect key="frame" x="18" y="443" width="118" height="17"/>
@@ -472,6 +472,14 @@
472472 <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
473473 </textFieldCell>
474474 </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>
475483 </subviews>
476484 </view>
477485 <point key="canvasLocation" x="357" y="330"/>
@@ -490,9 +498,14 @@
490498 <outlet property="GalleryWindow" destination="3481" id="3811"/>
491499 <outlet property="IVTitle" destination="3835" id="3843"/>
492500 <outlet property="MapEditorWindow" destination="767" id="1700"/>
501+ <outlet property="OptionWindow" destination="KcJ-WD-ggB" id="UOG-E2-0Gm"/>
493502 <outlet property="ScenarioEditorWindow" destination="9420" id="9721"/>
494503 <outlet property="StartWindow" destination="643" id="1698"/>
495504 <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"/>
496509 </connections>
497510 </customObject>
498511 <customObject id="1708" customClass="StartMenu">
@@ -934,6 +947,19 @@
934947 </connections>
935948 </customObject>
936949 <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>
937963 <arrayController id="4OI-TZ-1oL" userLabel="EDhpFixListAC1">
938964 <connections>
939965 <binding destination="3826" name="contentArray" keyPath="EDhpFixListMA1" id="7Ez-Fh-bTk"/>
@@ -1954,6 +1980,7 @@
19541980 <outlet property="mplayer2" destination="10759" id="11238"/>
19551981 <outlet property="nplayer1" destination="10756" id="11224"/>
19561982 <outlet property="nplayer2" destination="10807" id="11225"/>
1983+ <outlet property="openingAVPV" destination="1km-GI-bUn" id="aEL-yr-gNd"/>
19571984 <outlet property="region" destination="11086" id="11173"/>
19581985 <outlet property="researchACU" destination="12712" id="12761"/>
19591986 <outlet property="researchATK" destination="12709" id="12754"/>
@@ -2362,7 +2389,7 @@
23622389 <autoresizingMask key="autoresizingMask"/>
23632390 </scroller>
23642391 <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"/>
23662393 <autoresizingMask key="autoresizingMask"/>
23672394 </scroller>
23682395 </scrollView>
@@ -2459,7 +2486,7 @@
24592486 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
24602487 <subviews>
24612488 <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"/>
24632490 <autoresizingMask key="autoresizingMask"/>
24642491 <size key="intercellSpacing" width="3" height="2"/>
24652492 <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -9018,7 +9045,7 @@
90189045 <autoresizingMask key="autoresizingMask"/>
90199046 </scroller>
90209047 <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"/>
90229049 <autoresizingMask key="autoresizingMask"/>
90239050 </scroller>
90249051 </scrollView>
@@ -23031,6 +23058,148 @@
2303123058 </view>
2303223059 <point key="canvasLocation" x="-747" y="1126"/>
2303323060 </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>
2303423203 </objects>
2303523204 <resources>
2303623205 <image name="BackGround" width="32" height="32"/>
Show on old repository browser