Skip to content

Commit 885d1e6

Browse files
committed
Update repository links, add patreon link
1 parent b42488f commit 885d1e6

File tree

6 files changed

+33
-8
lines changed

6 files changed

+33
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Your goal is to produce shapes by cutting, rotating, merging and painting parts
2828
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
2929
2. Check out the trello board: https://trello.com/b/ISQncpJP/shapezio
3030
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)
31-
4. If not, check if it's already reported here: https://github.com/tobspr/shapez.io/issues
32-
5. If not, file a new issue here: https://github.com/tobspr/shapez.io/issues/new
31+
4. If not, check if it's already reported here: https://github.com/tobspr-games/shapez.io/issues
32+
5. If not, file a new issue here: https://github.com/tobspr-games/shapez.io/issues/new
3333
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 ;)
3434

3535
## Building
@@ -55,7 +55,7 @@ You can use [Gitpod](https://www.gitpod.io/) (an Online Open Source VS Code-like
5555
- install all of the dependencies.
5656
- start `gulp` in `gulp/` directory.
5757

58-
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/tobspr/shapez.io)
58+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/tobspr-games/shapez.io)
5959

6060
## Helping translate
6161

@@ -80,7 +80,7 @@ This project is based on ES5 (If I would develop it again, I would definitely us
8080

8181
### Assets
8282

83-
You can find most assets <a href="//github.com/tobspr/shapez.io-artwork" target="_blank">here</a>.
83+
You can find most assets <a href="//github.com/tobspr-games/shapez.io-artwork" target="_blank">here</a>.
8484

8585
All assets will be automatically rebuilt into the atlas once changed (Thanks to dengr1065!)
8686

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shapez.io",
33
"version": "1.0.0",
44
"main": "index.js",
5-
"repository": "https://github.com/tobspr/shapez.io",
5+
"repository": "https://github.com/tobspr-games/shapez.io",
66
"author": "tobspr Games <[email protected]>",
77
"license": "MIT",
88
"private": true,

res/ui/main_menu/patreon.svg

Lines changed: 1 addition & 0 deletions
Loading

src/css/states/main_menu.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,13 @@
11401140
background-size: 60%;
11411141
background-position: 60% 58%;
11421142
}
1143+
1144+
&.patreonLogo {
1145+
background-image: uiResource("main_menu/patreon.svg");
1146+
background-size: 60%;
1147+
background-position: 60% 60%;
1148+
}
1149+
11431150
&.steamLogo {
11441151
background-image: uiResource("main_menu/steam.svg");
11451152
background-size: 105%;

src/js/core/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ const smoothCanvas = true;
1515

1616
export const THIRDPARTY_URLS = {
1717
discord: "https://discord.gg/HN7EVzV",
18-
github: "https://github.com/tobspr/shapez.io",
18+
github: "https://github.com/tobspr-games/shapez.io",
1919
reddit: "https://www.reddit.com/r/shapezio",
2020
shapeViewer: "https://viewer.shapez.io",
2121

2222
twitter: "https://twitter.com/tobspr",
23+
patreon: "https://www.patreon.com/tobsprgames",
2324
privacyPolicy: "https://tobspr.io/privacy.html",
2425

2526
standaloneCampaignLink: "https://get.shapez.io/bundle/$campaign",

src/js/states/main_menu.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,14 @@ export class MainMenuState extends GameState {
271271
<div class="footer ${showExternalLinks ? "" : "noLinks"} ">
272272
273273
<div class="socialLinks">
274-
274+
${
275+
showExternalLinks && !G_IS_STEAM_DEMO
276+
? `<a class="patreonLink boxLink" target="_blank">
277+
<span class="thirdpartyLogo patreonLogo"></span>
278+
<span class="label">Patreon</span>
279+
</a>`
280+
: ""
281+
}
275282
${
276283
showExternalLinks && (!G_IS_STANDALONE || G_IS_STEAM_DEMO)
277284
? `<a class="steamLinkSocial boxLink" target="_blank">
@@ -290,6 +297,7 @@ export class MainMenuState extends GameState {
290297
: ""
291298
}
292299
300+
293301
${
294302
showDiscordLink
295303
? `<a class="discordLink boxLink" target="_blank">
@@ -309,12 +317,15 @@ export class MainMenuState extends GameState {
309317
}
310318
311319
${
320+
/*
312321
showExternalLinks
313322
? `<a class="twitterLink boxLink" target="_blank">
314323
<span class="thirdpartyLogo twitterLogo"></span>
315324
<span class="label">Twitter</span>
316325
</a>`
317326
: ""
327+
*/
328+
""
318329
}
319330
320331
@@ -456,6 +467,7 @@ export class MainMenuState extends GameState {
456467
".languageChoose": this.onLanguageChooseClicked,
457468
".redditLink": this.onRedditClicked,
458469
".twitterLink": this.onTwitterLinkClicked,
470+
".patreonLink": this.onPatreonLinkClicked,
459471
".changelog": this.onChangelogClicked,
460472
".helpTranslate": this.onTranslationHelpLinkClicked,
461473
".exitAppButton": this.onExitAppButtonClicked,
@@ -611,6 +623,10 @@ export class MainMenuState extends GameState {
611623
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.twitter);
612624
}
613625

626+
onPatreonLinkClicked() {
627+
this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.patreon);
628+
}
629+
614630
onLanguageChooseClicked() {
615631
const setting = /** @type {EnumSetting} */ (this.app.settings.getSettingHandleById("language"));
616632

@@ -893,7 +909,7 @@ export class MainMenuState extends GameState {
893909

894910
onTranslationHelpLinkClicked() {
895911
this.app.platformWrapper.openExternalLink(
896-
"https://github.com/tobspr/shapez.io/blob/master/translations"
912+
"https://github.com/tobspr-games/shapez.io/blob/master/translations"
897913
);
898914
}
899915

0 commit comments

Comments
 (0)