1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Localized puzzle dlc logo

This commit is contained in:
tobspr
2021-05-25 09:24:53 +02:00
parent b3d1204d9c
commit f5d03ae027
5 changed files with 13 additions and 3 deletions

View File

@@ -16,4 +16,9 @@
background: uiResource("puzzle_dlc_logo_inverse.png") center center / contain no-repeat;
}
}
&.china {
/* @load-async */
background: uiResource("puzzle_dlc_logo_china.png") center center / contain no-repeat !important;
}
}

View File

@@ -4,6 +4,7 @@ import { BaseHUDPart } from "../base_hud_part";
export class HUDPuzzleDLCLogo extends BaseHUDPart {
createElements(parent) {
this.element = makeDiv(parent, "ingame_HUD_PuzzleDLCLogo");
this.element.classList.toggle("china", G_CHINA_VERSION || G_WEGAME_VERSION);
parent.appendChild(this.element);
}

View File

@@ -99,9 +99,11 @@ export class MainMenuState extends GameState {
? `
<div class="puzzleContainer">
<img class="dlcLogo" src="${cachebust(
"res/puzzle_dlc_logo.png"
G_CHINA_VERSION || G_WEGAME_VERSION
? "res/puzzle_dlc_logo_china.png"
: "res/puzzle_dlc_logo.png"
)}" alt="shapez.io Logo">
<button class="styledButton puzzleDlcPlayButton">Play</button>
<button class="styledButton puzzleDlcPlayButton">${T.mainMenu.play}</button>
</div>`
: ""
}
@@ -111,7 +113,9 @@ export class MainMenuState extends GameState {
? `
<div class="puzzleContainer notOwned">
<img class="dlcLogo" src="${cachebust(
"res/puzzle_dlc_logo.png"
G_CHINA_VERSION || G_WEGAME_VERSION
? "res/puzzle_dlc_logo_china.png"
: "res/puzzle_dlc_logo.png"
)}" alt="shapez.io Logo">
<p>${T.mainMenu.puzzleDlcText}</p>
<button class="styledButton puzzleDlcGetButton">${