mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Wegame version adjustments
This commit is contained in:
@@ -580,6 +580,7 @@
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
text-align: center;
|
||||
|
||||
> .disclaimer {
|
||||
grid-column: 2 / 3;
|
||||
|
||||
@@ -734,6 +734,10 @@ const romanLiteralsCache = ["0"];
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getRomanNumber(number) {
|
||||
if (G_WEGAME_VERSION) {
|
||||
return String(number);
|
||||
}
|
||||
|
||||
number = Math.max(0, Math.round(number));
|
||||
if (romanLiteralsCache[number]) {
|
||||
return romanLiteralsCache[number];
|
||||
|
||||
@@ -45,7 +45,7 @@ export class HUDWaypoints extends BaseHUDPart {
|
||||
*/
|
||||
createElements(parent) {
|
||||
// Create the helper box on the lower right when zooming out
|
||||
if (this.root.app.settings.getAllSettings().offerHints) {
|
||||
if (this.root.app.settings.getAllSettings().offerHints && !G_WEGAME_VERSION) {
|
||||
this.hintElement = makeDiv(
|
||||
parent,
|
||||
"ingame_HUD_Waypoints_Hint",
|
||||
@@ -121,10 +121,12 @@ export class HUDWaypoints extends BaseHUDPart {
|
||||
}
|
||||
|
||||
// Catch mouse and key events
|
||||
this.root.camera.downPreHandler.add(this.onMouseDown, this);
|
||||
this.root.keyMapper
|
||||
.getBinding(KEYMAPPINGS.navigation.createMarker)
|
||||
.add(() => this.requestSaveMarker({}));
|
||||
if (!G_WEGAME_VERSION) {
|
||||
this.root.camera.downPreHandler.add(this.onMouseDown, this);
|
||||
this.root.keyMapper
|
||||
.getBinding(KEYMAPPINGS.navigation.createMarker)
|
||||
.add(() => this.requestSaveMarker({}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores at how much opacity the markers should be rendered on the map.
|
||||
|
||||
@@ -12,7 +12,9 @@ export const LANGUAGES = {
|
||||
"zh-CN": {
|
||||
// simplified chinese
|
||||
name: "简体中文",
|
||||
data: require("./built-temp/base-zh-CN.json"),
|
||||
data: G_WEGAME_VERSION
|
||||
? require("./built-temp/base-zh-CN-ISBN.json")
|
||||
: require("./built-temp/base-zh-CN.json"),
|
||||
code: "zh",
|
||||
region: "CN",
|
||||
},
|
||||
|
||||
@@ -272,7 +272,7 @@ export const allApplicationSettings = [
|
||||
new EnumSetting("refreshRate", {
|
||||
options: refreshRateOptions,
|
||||
valueGetter: rate => rate,
|
||||
textGetter: rate => rate + " Hz",
|
||||
textGetter: rate => T.settings.tickrateHz.replace("<amount>", rate),
|
||||
category: enumCategories.performance,
|
||||
restartRequired: false,
|
||||
changeCb: (app, id) => {},
|
||||
|
||||
@@ -91,7 +91,7 @@ export class MainMenuState extends GameState {
|
||||
</div>
|
||||
|
||||
${
|
||||
(!G_WEGAME_VERSION && G_IS_STANDALONE && puzzleDlc) || G_IS_DEV
|
||||
(!G_WEGAME_VERSION && G_IS_STANDALONE && puzzleDlc) || (G_IS_DEV && !G_WEGAME_VERSION)
|
||||
? `
|
||||
<div class="puzzleContainer">
|
||||
<img class="dlcLogo" src="${cachebust(
|
||||
@@ -535,9 +535,12 @@ export class MainMenuState extends GameState {
|
||||
downloadButton.classList.add("styledButton", "downloadGame");
|
||||
elem.appendChild(downloadButton);
|
||||
|
||||
const renameButton = document.createElement("button");
|
||||
renameButton.classList.add("styledButton", "renameGame");
|
||||
name.appendChild(renameButton);
|
||||
if (!G_WEGAME_VERSION) {
|
||||
const renameButton = document.createElement("button");
|
||||
renameButton.classList.add("styledButton", "renameGame");
|
||||
name.appendChild(renameButton);
|
||||
this.trackClicks(renameButton, () => this.requestRenameSavegame(games[i]));
|
||||
}
|
||||
|
||||
const resumeButton = document.createElement("button");
|
||||
resumeButton.classList.add("styledButton", "resumeGame");
|
||||
@@ -546,7 +549,6 @@ export class MainMenuState extends GameState {
|
||||
this.trackClicks(deleteButton, () => this.deleteGame(games[i]));
|
||||
this.trackClicks(downloadButton, () => this.downloadGame(games[i]));
|
||||
this.trackClicks(resumeButton, () => this.resumeGame(games[i]));
|
||||
this.trackClicks(renameButton, () => this.requestRenameSavegame(games[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -703,14 +705,23 @@ export class MainMenuState extends GameState {
|
||||
this.dialogs.showInfo(
|
||||
"",
|
||||
`
|
||||
1)本游戏是一款休闲建造类单机游戏,适用于年满8周岁及以上的用户。<br>
|
||||
2)本游戏模拟简单的生产流水线,剧情简单且积极向上,没有基于真实
|
||||
历史和现实事件的改编内容。游戏玩法为摆放简单的部件,完成生产目标。
|
||||
游戏为单机作品,没有基于文字和语音的陌生人社交系统。<br>
|
||||
3)游戏中有用户实名认证系统,认证为未成年人的用户将接受以下管理:
|
||||
游戏为买断制,不存在后续充值付费内容。未成年人用户每日22点到次日
|
||||
8点不得使用,法定节假日每天不得使用超过3小时,其它时间每天使用游
|
||||
戏不得超过1.5小时。
|
||||
提示说明:<br>
|
||||
1) 本游戏是一款休闲建造类单机游戏,画面简洁而乐趣充足。适用于年
|
||||
满8周岁及以上的用户,建议未成年人在家长监护下使用游戏产品。<br>
|
||||
2) 本游戏模拟简单的生产流水线,剧情简单且积极向上,没有基于真实
|
||||
历史和现实事件的改编内容。游戏玩法为摆放简单的部件,完成生产目标。
|
||||
游戏为单机作品,没有基于文字和语音的陌生人社交系统。<br>
|
||||
3) 本游戏中有用户实名认证系统,认证为未成年人的用户将接受以下管
|
||||
理:未满8周岁的用户不能付费;8周岁以上未满16周岁的未成年人用户,
|
||||
单次充值金额不得超过50元人民币,每月充值金额累计不得超过200元人
|
||||
民币;16周岁以上的未成年人用户,单次充值金额不得超过100元人民币,
|
||||
每月充值金额累计不得超过400元人民币。<br>
|
||||
未成年人用户每日22点到次日8点不得使用,法定节假日每天不得使用超
|
||||
过3小时,其他时间每天不得使用超过1.5小时。<br>
|
||||
4) 游戏功能说明:一款关于传送带自动化生产特定形状产品的工厂流水
|
||||
线模拟游戏,画面简洁而乐趣充足,可以让玩家在轻松愉快的氛围下获得
|
||||
各种游戏乐趣,体验完成目标的成就感。游戏没有失败功能,自动存档,
|
||||
不存在较强的挫折体验。
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export class WegameSplashState extends GameState {
|
||||
<div>抵制不良游戏,拒绝盗版游戏。</div>
|
||||
<div>注意自我保护,谨防受骗上当。</div>
|
||||
<div>适度游戏益脑,沉迷游戏伤身。</div>
|
||||
<div>适度游戏益脑,沉迷游戏伤身。</div>
|
||||
<div>合理安排时间,享受健康生活。</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user