Update repository links, add patreon link

This commit is contained in:
tobspr 2022-10-22 16:14:54 +02:00
parent b42488f7b5
commit 885d1e609e
6 changed files with 33 additions and 8 deletions

View File

@ -28,8 +28,8 @@ Your goal is to produce shapes by cutting, rotating, merging and painting parts
1. Ask in `#bugs` / `#feedback` / `#questions` on the [Official Discord](https://discord.com/invite/HN7EVzV) if you are not entirely sure if it's a bug 1. Ask in `#bugs` / `#feedback` / `#questions` on the [Official Discord](https://discord.com/invite/HN7EVzV) if you are not entirely sure if it's a bug
2. Check out the trello board: https://trello.com/b/ISQncpJP/shapezio 2. Check out the trello board: https://trello.com/b/ISQncpJP/shapezio
3. See if it's already there - If so, vote for it, done. I will see it. (You have to be signed in on trello) 3. See if it's already there - If so, vote for it, done. I will see it. (You have to be signed in on trello)
4. If not, check if it's already reported here: https://github.com/tobspr/shapez.io/issues 4. If not, check if it's already reported here: https://github.com/tobspr-games/shapez.io/issues
5. If not, file a new issue here: https://github.com/tobspr/shapez.io/issues/new 5. If not, file a new issue here: https://github.com/tobspr-games/shapez.io/issues/new
6. I will then have a look (This can take days or weeks) and convert it to trello, and comment with the link. You can then vote there ;) 6. I will then have a look (This can take days or weeks) and convert it to trello, and comment with the link. You can then vote there ;)
## Building ## Building
@ -55,7 +55,7 @@ You can use [Gitpod](https://www.gitpod.io/) (an Online Open Source VS Code-like
- install all of the dependencies. - install all of the dependencies.
- start `gulp` in `gulp/` directory. - start `gulp` in `gulp/` directory.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/tobspr/shapez.io) [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/tobspr-games/shapez.io)
## Helping translate ## Helping translate
@ -80,7 +80,7 @@ This project is based on ES5 (If I would develop it again, I would definitely us
### Assets ### Assets
You can find most assets <a href="//github.com/tobspr/shapez.io-artwork" target="_blank">here</a>. You can find most assets <a href="//github.com/tobspr-games/shapez.io-artwork" target="_blank">here</a>.
All assets will be automatically rebuilt into the atlas once changed (Thanks to dengr1065!) All assets will be automatically rebuilt into the atlas once changed (Thanks to dengr1065!)

View File

@ -2,7 +2,7 @@
"name": "shapez.io", "name": "shapez.io",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/tobspr/shapez.io", "repository": "https://github.com/tobspr-games/shapez.io",
"author": "tobspr Games <hello@tobspr.io>", "author": "tobspr Games <hello@tobspr.io>",
"license": "MIT", "license": "MIT",
"private": true, "private": true,

View File

@ -0,0 +1 @@
<svg enable-background="new 0 0 24 24" height="512" viewBox="0 0 24 24" width="512" xmlns="http://www.w3.org/2000/svg"><path d="m0 .5h4.219v23h-4.219z" fill="#212121"/><path d="m15.384.5c-4.767 0-8.644 3.873-8.644 8.633 0 4.75 3.877 8.61 8.644 8.61 4.754 0 8.616-3.865 8.616-8.61 0-4.759-3.863-8.633-8.616-8.633z" fill="#f4511e"/></svg>

After

Width:  |  Height:  |  Size: 336 B

View File

@ -1140,6 +1140,13 @@
background-size: 60%; background-size: 60%;
background-position: 60% 58%; background-position: 60% 58%;
} }
&.patreonLogo {
background-image: uiResource("main_menu/patreon.svg");
background-size: 60%;
background-position: 60% 60%;
}
&.steamLogo { &.steamLogo {
background-image: uiResource("main_menu/steam.svg"); background-image: uiResource("main_menu/steam.svg");
background-size: 105%; background-size: 105%;

View File

@ -15,11 +15,12 @@ const smoothCanvas = true;
export const THIRDPARTY_URLS = { export const THIRDPARTY_URLS = {
discord: "https://discord.gg/HN7EVzV", 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", reddit: "https://www.reddit.com/r/shapezio",
shapeViewer: "https://viewer.shapez.io", shapeViewer: "https://viewer.shapez.io",
twitter: "https://twitter.com/tobspr", twitter: "https://twitter.com/tobspr",
patreon: "https://www.patreon.com/tobsprgames",
privacyPolicy: "https://tobspr.io/privacy.html", privacyPolicy: "https://tobspr.io/privacy.html",
standaloneCampaignLink: "https://get.shapez.io/bundle/$campaign", standaloneCampaignLink: "https://get.shapez.io/bundle/$campaign",

View File

@ -271,7 +271,14 @@ export class MainMenuState extends GameState {
<div class="footer ${showExternalLinks ? "" : "noLinks"} "> <div class="footer ${showExternalLinks ? "" : "noLinks"} ">
<div class="socialLinks"> <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) showExternalLinks && (!G_IS_STANDALONE || G_IS_STEAM_DEMO)
? `<a class="steamLinkSocial boxLink" target="_blank"> ? `<a class="steamLinkSocial boxLink" target="_blank">
@ -290,6 +297,7 @@ export class MainMenuState extends GameState {
: "" : ""
} }
${ ${
showDiscordLink showDiscordLink
? `<a class="discordLink boxLink" target="_blank"> ? `<a class="discordLink boxLink" target="_blank">
@ -309,12 +317,15 @@ export class MainMenuState extends GameState {
} }
${ ${
/*
showExternalLinks showExternalLinks
? `<a class="twitterLink boxLink" target="_blank"> ? `<a class="twitterLink boxLink" target="_blank">
<span class="thirdpartyLogo twitterLogo"></span> <span class="thirdpartyLogo twitterLogo"></span>
<span class="label">Twitter</span> <span class="label">Twitter</span>
</a>` </a>`
: "" : ""
*/
""
} }
@ -456,6 +467,7 @@ export class MainMenuState extends GameState {
".languageChoose": this.onLanguageChooseClicked, ".languageChoose": this.onLanguageChooseClicked,
".redditLink": this.onRedditClicked, ".redditLink": this.onRedditClicked,
".twitterLink": this.onTwitterLinkClicked, ".twitterLink": this.onTwitterLinkClicked,
".patreonLink": this.onPatreonLinkClicked,
".changelog": this.onChangelogClicked, ".changelog": this.onChangelogClicked,
".helpTranslate": this.onTranslationHelpLinkClicked, ".helpTranslate": this.onTranslationHelpLinkClicked,
".exitAppButton": this.onExitAppButtonClicked, ".exitAppButton": this.onExitAppButtonClicked,
@ -611,6 +623,10 @@ export class MainMenuState extends GameState {
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.twitter); this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.twitter);
} }
onPatreonLinkClicked() {
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.patreon);
}
onLanguageChooseClicked() { onLanguageChooseClicked() {
const setting = /** @type {EnumSetting} */ (this.app.settings.getSettingHandleById("language")); const setting = /** @type {EnumSetting} */ (this.app.settings.getSettingHandleById("language"));
@ -893,7 +909,7 @@ export class MainMenuState extends GameState {
onTranslationHelpLinkClicked() { onTranslationHelpLinkClicked() {
this.app.platformWrapper.openExternalLink( this.app.platformWrapper.openExternalLink(
"https://github.com/tobspr/shapez.io/blob/master/translations" "https://github.com/tobspr-games/shapez.io/blob/master/translations"
); );
} }