MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getCreditsHtml

Function getCreditsHtml

launcher/ui/dialogs/AboutDialog.cpp:65–122  ·  view source on GitHub ↗

Credits This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...

Source from the content-addressed store, hash-verified

63// Credits
64// This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...
65QString getCreditsHtml()
66{
67 QString output;
68 QTextStream stream(&output);
69#if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0)
70 stream.setCodec(QTextCodec::codecForName("UTF-8"));
71#endif
72 stream << "<center>\n";
73
74 //: %1 is the name of the launcher, determined at build time, e.g. "Prism Launcher Developers"
75 stream << "<h3>" << QObject::tr("%1 Developers", "About Credits").arg(BuildConfig.LAUNCHER_DISPLAYNAME) << "</h3>\n";
76 stream << QString("<p>Sefa Eyeoglu (Scrumplex) %1</p>\n").arg(getWebsite("https://scrumplex.net"));
77 stream << QString("<p>d-513 %1</p>\n").arg(getGitHub("d-513"));
78 stream << QString("<p>txtsd %1</p>\n").arg(getWebsite("https://ihavea.quest"));
79 stream << QString("<p>timoreo %1</p>\n").arg(getGitHub("timoreo22"));
80 stream << QString("<p>ZekeZ %1</p>\n").arg(getGitHub("ZekeZDev"));
81 stream << QString("<p>cozyGalvinism %1</p>\n").arg(getGitHub("cozyGalvinism"));
82 stream << QString("<p>DioEgizio %1</p>\n").arg(getGitHub("DioEgizio"));
83 stream << QString("<p>flowln %1</p>\n").arg(getGitHub("flowln"));
84 stream << QString("<p>ViRb3 %1</p>\n").arg(getGitHub("ViRb3"));
85 stream << QString("<p>Rachel Powers (Ryex) %1</p>\n").arg(getGitHub("Ryex"));
86 stream << QString("<p>TayouVR %1</p>\n").arg(getGitHub("TayouVR"));
87 stream << QString("<p>TheKodeToad %1</p>\n").arg(getGitHub("TheKodeToad"));
88 stream << QString("<p>getchoo %1</p>\n").arg(getGitHub("getchoo"));
89 stream << QString("<p>Alexandru Tripon (Trial97) %1</p>\n").arg(getGitHub("Trial97"));
90 stream << "<br />\n";
91
92 // TODO: possibly retrieve from git history at build time?
93 //: %1 is the name of the launcher, determined at build time, e.g. "Prism Launcher Developers"
94 stream << "<h3>" << QObject::tr("%1 Developers", "About Credits").arg("MultiMC") << "</h3>\n";
95 stream << "<p>Andrew Okin &lt;<a href='mailto:forkk@forkk.net'>forkk@forkk.net</a>&gt;</p>\n";
96 stream << QString("<p>Petr Mrázek &lt;<a href='mailto:peterix@gmail.com'>peterix@gmail.com</a>&gt;</p>\n");
97 stream << "<p>Sky Welch &lt;<a href='mailto:multimc@bunnies.io'>multimc@bunnies.io</a>&gt;</p>\n";
98 stream << "<p>Jan (02JanDal) &lt;<a href='mailto:02jandal@gmail.com'>02jandal@gmail.com</a>&gt;</p>\n";
99 stream << "<p>RoboSky &lt;<a href='https://twitter.com/RoboSky_'>@RoboSky_</a>&gt;</p>\n";
100 stream << "<br />\n";
101
102 stream << "<h3>" << QObject::tr("With thanks to", "About Credits") << "</h3>\n";
103 stream << QString("<p>Boba %1</p>\n").arg(getWebsite("https://bobaonline.neocities.org/"));
104 stream << QString("<p>AutiOne %1</p>\n").arg(getWebsite("https://auti.one/"));
105 stream << QString("<p>Fulmine %1</p>\n").arg(getWebsite("https://fulmine.xyz/"));
106 stream << QString("<p>ely %1</p>\n").arg(getGitHub("elyrodso"));
107 stream << QString("<p>gon sawa %1</p>\n").arg(getGitHub("gonsawa"));
108 stream << QString("<p>Pankakes</p>\n");
109 stream << QString("<p>tobimori %1</p>\n").arg(getGitHub("tobimori"));
110 stream << "<p>Orochimarufan &lt;<a href='mailto:orochimarufan.x3@gmail.com'>orochimarufan.x3@gmail.com</a>&gt;</p>\n";
111 stream << "<p>TakSuyu &lt;<a href='mailto:taksuyu@gmail.com'>taksuyu@gmail.com</a>&gt;</p>\n";
112 stream << "<p>Kilobyte &lt;<a href='mailto:stiepen22@gmx.de'>stiepen22@gmx.de</a>&gt;</p>\n";
113 stream << "<p>Rootbear75 &lt;<a href='https://twitter.com/rootbear75'>@rootbear75</a>&gt;</p>\n";
114 stream << "<p>Zeker Zhayard &lt;<a href='https://twitter.com/zeker_zhayard'>@Zeker_Zhayard</a>&gt;</p>\n";
115 stream << "<p>Everyone who helped establish our branding!</p>\n";
116 stream
117 << "<p>And everyone else who <a href='https://github.com/PrismLauncher/PrismLauncher/graphs/contributors'>contributed</a>!</p>\n";
118 stream << "<br />\n";
119
120 stream << "</center>\n";
121 return output;
122}

Callers 1

AboutDialogMethod · 0.85

Calls 3

QStringClass · 0.85
getWebsiteFunction · 0.85
getGitHubFunction · 0.85

Tested by

no test coverage detected