mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Wegame adjustments
This commit is contained in:
@@ -130,7 +130,17 @@ export class MainMenuState extends GameState {
|
||||
|
||||
${
|
||||
G_WEGAME_VERSION
|
||||
? "<div class='footer wegame'></div>"
|
||||
? `<div class='footer wegameDisclaimer'>
|
||||
<div class="disclaimer">
|
||||
健康游戏忠告
|
||||
<br>
|
||||
抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。<br>
|
||||
适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。
|
||||
</div>
|
||||
|
||||
<div class="rating"></div>
|
||||
</div>
|
||||
`
|
||||
: `
|
||||
<div class="footer ${G_CHINA_VERSION ? "china" : ""} ">
|
||||
|
||||
@@ -341,6 +351,11 @@ export class MainMenuState extends GameState {
|
||||
if (puzzleWishlistButton) {
|
||||
this.trackClicks(puzzleWishlistButton, () => this.onPuzzleWishlistButtonClicked());
|
||||
}
|
||||
|
||||
const wegameRating = qs(".wegameDisclaimer > .rating");
|
||||
if (wegameRating) {
|
||||
this.trackClicks(wegameRating, () => this.onWegameRatingClicked());
|
||||
}
|
||||
}
|
||||
|
||||
renderMainMenu() {
|
||||
@@ -675,6 +690,22 @@ export class MainMenuState extends GameState {
|
||||
});
|
||||
}
|
||||
|
||||
onWegameRatingClicked() {
|
||||
this.dialogs.showInfo(
|
||||
"",
|
||||
`
|
||||
1)本游戏是一款休闲建造类单机游戏,适用于年满8周岁及以上的用户。<br>
|
||||
2)本游戏模拟简单的生产流水线,剧情简单且积极向上,没有基于真实
|
||||
历史和现实事件的改编内容。游戏玩法为摆放简单的部件,完成生产目标。
|
||||
游戏为单机作品,没有基于文字和语音的陌生人社交系统。<br>
|
||||
3)游戏中有用户实名认证系统,认证为未成年人的用户将接受以下管理:
|
||||
游戏为买断制,不存在后续充值付费内容。未成年人用户每日22点到次日
|
||||
8点不得使用,法定节假日每天不得使用超过3小时,其它时间每天使用游
|
||||
戏不得超过1.5小时。
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
onContinueButtonClicked() {
|
||||
let latestLastUpdate = 0;
|
||||
let latestInternalId;
|
||||
|
||||
27
src/js/states/wegame_splash.js
Normal file
27
src/js/states/wegame_splash.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import { GameState } from "../core/game_state";
|
||||
|
||||
export class WegameSplashState extends GameState {
|
||||
constructor() {
|
||||
super("WegameSplashState");
|
||||
}
|
||||
|
||||
getInnerHTML() {
|
||||
return `
|
||||
<div class="wrapper">
|
||||
<strong>健康游戏忠告</strong>
|
||||
<div>抵制不良游戏,拒绝盗版游戏。</div>
|
||||
<div>注意自我保护,谨防受骗上当。</div>
|
||||
<div>适度游戏益脑,沉迷游戏伤身。</div>
|
||||
<div>适度游戏益脑,沉迷游戏伤身。</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
onEnter() {
|
||||
setTimeout(
|
||||
() => {
|
||||
this.app.stateMgr.moveToState("PreloadState");
|
||||
},
|
||||
G_IS_DEV ? 1 : 6000
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user