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
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)
4. If not, check if it's already reported here: https://github.com/tobspr/shapez.io/issues
5. If not, file a new issue here: https://github.com/tobspr/shapez.io/issues/new
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-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 ;)
## 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.
- 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
@ -80,7 +80,7 @@ This project is based on ES5 (If I would develop it again, I would definitely us
### 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!)

View File

@ -2,7 +2,7 @@
"name": "shapez.io",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/tobspr/shapez.io",
"repository": "https://github.com/tobspr-games/shapez.io",
"author": "tobspr Games <hello@tobspr.io>",
"license": "MIT",
"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-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%;

View File

@ -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",

View File

@ -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"
);
}