Update css again for standalone

This commit is contained in:
tobspr 2022-06-21 13:51:43 +02:00
parent a187cd7f25
commit 1235e70c74
4 changed files with 25 additions and 25 deletions

View File

@ -38,6 +38,7 @@
.exitAppButton {
background-image: uiResource("icons/main_menu_exit.png");
background-size: 56%;
}
.languageChoose {
@ -788,6 +789,9 @@
.description {
@include SuperSmallText;
color: rgba(0, 10, 20, 0.5);
@include DarkThemeOverride {
color: rgba(#fff, 0.7);
}
}
// &:hover {
// .tooltip {
@ -854,6 +858,10 @@
text-align: center;
@include S(padding, 0, 20px);
opacity: 0.5;
@include DarkThemeOverride {
color: #fff;
}
}
.savegames {
@ -1233,22 +1241,5 @@
color: $accentColorBright;
}
}
.footer {
> a,
.sidelinks > a {
background-color: rgba($darkModeControlsBackground, 0.3);
color: #333538;
&:hover {
background-color: rgba(darken($darkModeControlsBackground, 5), 0.4);
}
}
.thirdpartyLogo.githubLogo {
// filter: invert(1);
opacity: 0.7;
}
}
}
}

View File

@ -31,6 +31,11 @@ const INGAME_ASSETS = {
css: ["async-resources.css"],
};
if (G_IS_STANDALONE) {
MAIN_MENU_ASSETS.sounds = [...Array.from(Object.values(MUSIC)), ...Array.from(Object.values(SOUNDS))];
INGAME_ASSETS.sounds = [];
}
const LOADER_TIMEOUT_PER_RESOURCE = 180000;
// Cloudflare does not send content-length headers with brotli compression,

View File

@ -41,8 +41,7 @@ export class MainMenuState extends GameState {
const showLanguageIcon = !G_CHINA_VERSION && !G_WEGAME_VERSION;
const showExitAppButton = G_IS_STANDALONE;
const showPuzzleDLC =
G_IS_DEV ||
(!G_WEGAME_VERSION && (G_IS_STANDALONE || WEB_STEAM_SSO_AUTHENTICATED) && !G_IS_STEAM_DEMO);
!G_WEGAME_VERSION && (G_IS_STANDALONE || WEB_STEAM_SSO_AUTHENTICATED) && !G_IS_STEAM_DEMO;
const showWegameFooter = G_WEGAME_VERSION;
const hasMods = MODS.anyModsActive();
@ -138,14 +137,18 @@ export class MainMenuState extends GameState {
<div class="buttons"></div>
<div class="savegamesMount"></div>
${
G_IS_STANDALONE || WEB_STEAM_SSO_AUTHENTICATED
? ""
: `<div class="steamSso">
<span class="description">${T.mainMenu.playFullVersionV2}</span>
<a class="ssoSignIn" href="${
G_IS_STANDALONE || !WEB_STEAM_SSO_AUTHENTICATED
? `<div class="steamSso">
<span class="description">${
G_IS_STANDALONE
? T.mainMenu.playFullVersionStandalone
: T.mainMenu.playFullVersionV2
}</span>
<a class="ssoSignIn" target="_blank" href="${
this.app.clientApi.getEndpoint() + "/v1/noauth/steam-sso"
}">Sign in</a>
</div>`
: ""
}
${
WEB_STEAM_SSO_AUTHENTICATED
@ -258,7 +261,7 @@ export class MainMenuState extends GameState {
<div class="socialLinks">
${
showExternalLinks
showExternalLinks && (!G_IS_STANDALONE || G_IS_STEAM_DEMO)
? `<a class="steamLinkSocial boxLink" target="_blank">
<span class="thirdpartyLogo steamLogo"></span>
<span class="label">steam</span>

View File

@ -133,6 +133,7 @@ mainMenu:
noActiveSavegames: No active savegames found - Click play to start a new game!
playFullVersionV2: Bought shapez on Steam? Play the full version in your Browser!
playFullVersionStandalone: You can now also play the full version in your Browser!
playingFullVersion: You are now playing the full version!
logout: Logout