mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-09-23 20:35:47 +00:00
Update repository links, add patreon link
This commit is contained in:
@@ -1140,6 +1140,13 @@
|
||||
background-size: 60%;
|
||||
background-position: 60% 58%;
|
||||
}
|
||||
|
||||
&.patreonLogo {
|
||||
background-image: uiResource("main_menu/patreon.svg");
|
||||
background-size: 60%;
|
||||
background-position: 60% 60%;
|
||||
}
|
||||
|
||||
&.steamLogo {
|
||||
background-image: uiResource("main_menu/steam.svg");
|
||||
background-size: 105%;
|
||||
|
||||
@@ -15,11 +15,12 @@ const smoothCanvas = true;
|
||||
|
||||
export const THIRDPARTY_URLS = {
|
||||
discord: "https://discord.gg/HN7EVzV",
|
||||
github: "https://github.com/tobspr/shapez.io",
|
||||
github: "https://github.com/tobspr-games/shapez.io",
|
||||
reddit: "https://www.reddit.com/r/shapezio",
|
||||
shapeViewer: "https://viewer.shapez.io",
|
||||
|
||||
twitter: "https://twitter.com/tobspr",
|
||||
patreon: "https://www.patreon.com/tobsprgames",
|
||||
privacyPolicy: "https://tobspr.io/privacy.html",
|
||||
|
||||
standaloneCampaignLink: "https://get.shapez.io/bundle/$campaign",
|
||||
|
||||
@@ -271,7 +271,14 @@ export class MainMenuState extends GameState {
|
||||
<div class="footer ${showExternalLinks ? "" : "noLinks"} ">
|
||||
|
||||
<div class="socialLinks">
|
||||
|
||||
${
|
||||
showExternalLinks && !G_IS_STEAM_DEMO
|
||||
? `<a class="patreonLink boxLink" target="_blank">
|
||||
<span class="thirdpartyLogo patreonLogo"></span>
|
||||
<span class="label">Patreon</span>
|
||||
</a>`
|
||||
: ""
|
||||
}
|
||||
${
|
||||
showExternalLinks && (!G_IS_STANDALONE || G_IS_STEAM_DEMO)
|
||||
? `<a class="steamLinkSocial boxLink" target="_blank">
|
||||
@@ -290,6 +297,7 @@ export class MainMenuState extends GameState {
|
||||
: ""
|
||||
}
|
||||
|
||||
|
||||
${
|
||||
showDiscordLink
|
||||
? `<a class="discordLink boxLink" target="_blank">
|
||||
@@ -309,12 +317,15 @@ export class MainMenuState extends GameState {
|
||||
}
|
||||
|
||||
${
|
||||
/*
|
||||
showExternalLinks
|
||||
? `<a class="twitterLink boxLink" target="_blank">
|
||||
<span class="thirdpartyLogo twitterLogo"></span>
|
||||
<span class="label">Twitter</span>
|
||||
</a>`
|
||||
: ""
|
||||
*/
|
||||
""
|
||||
}
|
||||
|
||||
|
||||
@@ -456,6 +467,7 @@ export class MainMenuState extends GameState {
|
||||
".languageChoose": this.onLanguageChooseClicked,
|
||||
".redditLink": this.onRedditClicked,
|
||||
".twitterLink": this.onTwitterLinkClicked,
|
||||
".patreonLink": this.onPatreonLinkClicked,
|
||||
".changelog": this.onChangelogClicked,
|
||||
".helpTranslate": this.onTranslationHelpLinkClicked,
|
||||
".exitAppButton": this.onExitAppButtonClicked,
|
||||
@@ -611,6 +623,10 @@ export class MainMenuState extends GameState {
|
||||
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.twitter);
|
||||
}
|
||||
|
||||
onPatreonLinkClicked() {
|
||||
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.patreon);
|
||||
}
|
||||
|
||||
onLanguageChooseClicked() {
|
||||
const setting = /** @type {EnumSetting} */ (this.app.settings.getSettingHandleById("language"));
|
||||
|
||||
@@ -893,7 +909,7 @@ export class MainMenuState extends GameState {
|
||||
|
||||
onTranslationHelpLinkClicked() {
|
||||
this.app.platformWrapper.openExternalLink(
|
||||
"https://github.com/tobspr/shapez.io/blob/master/translations"
|
||||
"https://github.com/tobspr-games/shapez.io/blob/master/translations"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user