parent
354bb63b0a
commit
eb628526c9
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 5.8 KiB |
@ -0,0 +1,38 @@
|
|||||||
|
#state_WegameSplashState {
|
||||||
|
background: #000 !important;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
opacity: 0;
|
||||||
|
@include InlineAnimation(5.9s ease-in-out) {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
20% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
@include Heading;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
display: block;
|
||||||
|
@include SuperHeading;
|
||||||
|
@include S(margin-bottom, 20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
@include S(margin-bottom, 10px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue