mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Localized puzzle dlc logo
This commit is contained in:
parent
b3d1204d9c
commit
f5d03ae027
BIN
res/puzzle_dlc_logo_china.png
Normal file
BIN
res/puzzle_dlc_logo_china.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
res/ui/puzzle_dlc_logo_china.png
Normal file
BIN
res/ui/puzzle_dlc_logo_china.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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">${
|
||||
|
Loading…
Reference in New Issue
Block a user