Skip to content

Commit 6bcf952

Browse files
ilgrandeanonimozenfty
authored andcommitted
Reorganized Help menu and replaced Buttons with Links
1 parent d69e8c2 commit 6bcf952

3 files changed

Lines changed: 27 additions & 45 deletions

File tree

Mythic.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@
10391039
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
10401040
CODE_SIGN_STYLE = Automatic;
10411041
COMBINE_HIDPI_IMAGES = YES;
1042-
CURRENT_PROJECT_VERSION = 4455;
1042+
CURRENT_PROJECT_VERSION = 4464;
10431043
DEAD_CODE_STRIPPING = YES;
10441044
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10451045
DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\"";
@@ -1087,7 +1087,7 @@
10871087
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
10881088
CODE_SIGN_STYLE = Automatic;
10891089
COMBINE_HIDPI_IMAGES = YES;
1090-
CURRENT_PROJECT_VERSION = 4455;
1090+
CURRENT_PROJECT_VERSION = 4464;
10911091
DEAD_CODE_STRIPPING = YES;
10921092
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10931093
DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\"";

Mythic/Localizable.xcstrings

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4059,7 +4059,7 @@
40594059
"comment" : "A label or link related to Discord.",
40604060
"isCommentAutoGenerated" : true
40614061
},
4062-
"Discord Server" : {
4062+
"Discord server" : {
40634063
"comment" : "A link to the Mythic Discord server.",
40644064
"isCommentAutoGenerated" : true
40654065
},
@@ -4275,10 +4275,6 @@
42754275
"comment" : "A label or link to documentation.",
42764276
"isCommentAutoGenerated" : true
42774277
},
4278-
"Donate to the developer" : {
4279-
"comment" : "A button or link for making a donation to the developer.",
4280-
"isCommentAutoGenerated" : true
4281-
},
42824278
"Done" : {
42834279
"comment" : "A button label indicating completion of a process.",
42844280
"isCommentAutoGenerated" : true,
@@ -7247,6 +7243,10 @@
72477243
"comment" : "A label for the game card size setting.",
72487244
"isCommentAutoGenerated" : true
72497245
},
7246+
"Games compability" : {
7247+
"comment" : "A section in the \"Help\" menu that links to a Google Sheet detailing compatibility between games and Mythic.",
7248+
"isCommentAutoGenerated" : true
7249+
},
72507250
"Games in your library will appear here.\nIf there are games in your library and they're not appearing, try restarting Mythic." : {
72517251
"comment" : "An informative message in the library view with troubleshooting advice.",
72527252
"isCommentAutoGenerated" : true
@@ -7264,7 +7264,11 @@
72647264
"isCommentAutoGenerated" : true
72657265
},
72667266
"GitHub Repository" : {
7267-
"comment" : "A link label for the GitHub repository.",
7267+
"comment" : "A label for a link to the Mythic GitHub repository.",
7268+
"isCommentAutoGenerated" : true
7269+
},
7270+
"GitHub Sponsors" : {
7271+
"comment" : "A button label that links to the GitHub Sponsors page.",
72687272
"isCommentAutoGenerated" : true
72697273
},
72707274
"Grid" : {
@@ -9059,6 +9063,10 @@
90599063
}
90609064
}
90619065
},
9066+
"Ko-Fi" : {
9067+
"comment" : "A button that links to Ko-Fi to support the developer.",
9068+
"isCommentAutoGenerated" : true
9069+
},
90629070
"Launch Arguments" : {
90639071
"comment" : "A label for command-line arguments passed to games at launch.",
90649072
"isCommentAutoGenerated" : true,

Mythic/MythicApp.swift

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -86,46 +86,20 @@ struct MythicApp: App {
8686
.disabled(isOnboardingPresented)
8787
}
8888

89-
CommandGroup(replacing: .help){
90-
Button("Website") {
91-
if let websiteURL = URL(string: "https://getmythic.app/") {
92-
NSWorkspace.shared.open(websiteURL)
93-
}
94-
}
95-
96-
Button("Documentation") {
97-
if let docUrl = URL(string: "https://docs.getmythic.app/") {
98-
NSWorkspace.shared.open(docUrl)
99-
}
100-
}
101-
Button("Discord Server") {
102-
if let discordInviteUrl = URL(string: "https://discord.gg/kQKdvjTVqh") {
103-
NSWorkspace.shared.open(discordInviteUrl)
104-
}
105-
}
106-
Button("GitHub Repository") {
107-
if let githubUrl = URL(string: "https://github.com/MythicApp/Mythic") {
108-
NSWorkspace.shared.open(githubUrl)
109-
}
110-
}
111-
Button("Compatibility List") {
112-
if let gameListURL = URL(string: "https://docs.google.com/spreadsheets/d/1W_1UexC1VOcbP2CHhoZBR5-8koH-ZPxJBDWntwH-tsc/") {
113-
NSWorkspace.shared.open(gameListURL)
114-
}
115-
}
89+
CommandGroup(replacing: .help) {
90+
Link("Documentation", destination: URL(string: "https://docs.getmythic.app/")!)
91+
Link("Discord server", destination: URL(string: "https://discord.gg/kQKdvjTVqh")!)
92+
Link("Games compability",
93+
destination: URL(string: "https://docs.google.com/spreadsheets/d/1W_1UexC1VOcbP2CHhoZBR5-8koH-ZPxJBDWntwH-tsc/")!)
11694

117-
Divider()
118-
119-
Button("Donate to the developer", systemImage: "heart.fill") {
120-
if let donationUrl = URL(string: "https://ko-fi.com/vapidinfinity") {
121-
NSWorkspace.shared.open(donationUrl)
122-
}
95+
Section("Support the project") {
96+
Link("GitHub Sponsors", destination: URL(string: "https://github.com/sponsors/MythicApp")!)
97+
Link("Ko-Fi", destination: URL(string: "https://ko-fi.com/vapidinfinity")!)
12398
}
12499

125-
Button("Support the project", systemImage: "heart.fill") {
126-
if let donationUrl = URL(string: "https://github.com/sponsors/MythicApp") {
127-
NSWorkspace.shared.open(donationUrl)
128-
}
100+
Section("More") {
101+
Link("GitHub repository", destination: URL(string: "https://github.com/MythicApp/Mythic")!)
102+
Link("Website", destination: URL(string: "https://getmythic.app/")!)
129103
}
130104
}
131105
}

0 commit comments

Comments
 (0)