Commit a1496b0c authored by zjz1994's avatar zjz1994

修改loading

parent ae3f301b
......@@ -26,7 +26,7 @@
background-color: #000;
background-size: 100%;
background-position: center;
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1588913865/resource/assets/startscenebg.jpg");
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1590641513/resource/assets/startscenebg.jpg");
/* background-image: url("https://yun.duiba.com.cn/db_games/activity/game/0327/startscenebg.jpg"); */
/* background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1565600901/resource/assets/startScene/startscenebg.jpg"); */
padding: 0;
......
......@@ -492,6 +492,7 @@ export default class MainBase extends eui.UILayer {
try {
await RES.loadConfig("default.res.json", getResPath() + "resource/");
await this.loadTheme();
RES.getResAsync("addhbimg_png");
this.svgaList = await Promise.all([
loadSvga(getResPath() + 'resource/assets/svgas/loading_progress.svga'),
loadSvga(getResPath() + 'resource/assets/svgas/loading_animals.svga'),
......
......@@ -6,7 +6,7 @@
<e:Component id="bg" width="750" height="1624" verticalCenter="0"/>
<e:Component id="container2" x="0" width="750" height="1624" verticalCenter="0"/>
<e:Component id="container1" x="0" width="750" height="1624" verticalCenter="235"/>
<e:Image source="addhbimg_png" horizontalCenter="0" y="181"/>
<e:Image source="addhbimg_png" horizontalCenter="0" verticalCenter="55" visible="false"/>
<e:Group width="750" x="0" verticalCenter="494">
<e:Group y="30.94" x="140">
<e:Image source="loadingbg_png" y="0" x="0"/>
......
......@@ -56,10 +56,25 @@ export default class StartScene extends Scene {
// console.log(data);
if (data && Array.isArray(data)) {
console.log("测试mv0",data[0]);
console.log("测试mv1",data[1]);
console.log("测试mv2",data[2]);
var titlekey = "d103b7a157cd3646ea65ba8ea871828e";
data[1].setImage(titlekey, 'addhbimg_png');
this['container3'].addChild(data[0]);
this['container2'].addChild(data[1]);
this['container1'].addChild(data[2]);
this['bg'].addChild(new egret.Bitmap(data[4]));
//0 "d103b7a157cd3646ea65ba8ea871828e"
//1 "Bitmap2"
//2 "Bitmap1"
//3 "_4"
//4"_3"
//5"_5"
//6"_6"
//7"_7"
}
else {
await Promise.all([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment