Replace Main.storyboard with custom MainMenu.xib

The new xib file contains the default main menu created by Xcode, but removes the command-H shortcut from the Hide menu item, so that the in-game High Scores item takes effect instead.

Also SDL only supports custom nib files, not storyboards.
This commit is contained in:
Phil Marell
2021-07-28 19:44:03 +10:00
parent e098370249
commit f16ffa0c4c
4 changed files with 114 additions and 726 deletions

View File

@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
4A04C5AC269AD58E009F5CA3 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4A04C59D269AD58E009F5CA3 /* MainMenu.xib */; };
5C54D0A02629B42400AB55E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5C54D09F2629B42400AB55E0 /* Assets.xcassets */; };
5C54D0A32629B42400AB55E0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5C54D0A12629B42400AB55E0 /* Main.storyboard */; };
5C54D0BE2629B72000AB55E0 /* stb_image_write.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C54D0BC2629B72000AB55E0 /* stb_image_write.h */; };
5C54D0BF2629B72000AB55E0 /* stb_image_write.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C54D0BD2629B72000AB55E0 /* stb_image_write.c */; };
5C54D26D2629B86700AB55E0 /* adler32.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C54D25E2629B86600AB55E0 /* adler32.c */; };
@@ -589,9 +589,9 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
4A04C59E269AD58E009F5CA3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
5C54D0962629B42100AB55E0 /* Aerofoil.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Aerofoil.app; sourceTree = BUILT_PRODUCTS_DIR; };
5C54D09F2629B42400AB55E0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5C54D0A22629B42400AB55E0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5C54D0A42629B42400AB55E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5C54D0A72629B42400AB55E0 /* AerofoilMac.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = AerofoilMac.entitlements; sourceTree = "<group>"; };
5C54D0B32629B5C600AB55E0 /* libAerofoilShared.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAerofoilShared.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1068,7 +1068,7 @@
5C54D655262D84A800AB55E0 /* GpSystemServices_X.cpp */,
5C54D658262D84A900AB55E0 /* GpSystemServices_X.h */,
5C54D0A42629B42400AB55E0 /* Info.plist */,
5C54D0A12629B42400AB55E0 /* Main.storyboard */,
4A04C59D269AD58E009F5CA3 /* MainMenu.xib */,
);
path = AerofoilMac;
sourceTree = "<group>";
@@ -1981,7 +1981,7 @@
buildActionMask = 2147483647;
files = (
5C54D0A02629B42400AB55E0 /* Assets.xcassets in Resources */,
5C54D0A32629B42400AB55E0 /* Main.storyboard in Resources */,
4A04C5AC269AD58E009F5CA3 /* MainMenu.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2200,12 +2200,12 @@
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
5C54D0A12629B42400AB55E0 /* Main.storyboard */ = {
4A04C59D269AD58E009F5CA3 /* MainMenu.xib */ = {
isa = PBXVariantGroup;
children = (
5C54D0A22629B42400AB55E0 /* Base */,
4A04C59E269AD58E009F5CA3 /* Base */,
);
name = Main.storyboard;
name = MainMenu.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */