Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
a1496b0c
Commit
a1496b0c
authored
May 28, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改loading
parent
ae3f301b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
2 deletions
+18
-2
index.html
egret/index.html
+1
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+1
-0
addhbimg.png
egret/resource/assets/common/addhbimg.png
+0
-0
startscenebg.jpg
egret/resource/assets/startscenebg.jpg
+0
-0
StartSkin.exml
egret/resource/skins/StartSkin.exml
+1
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+15
-0
No files found.
egret/index.html
View file @
a1496b0c
...
...
@@ -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/15
88913865
/resource/assets/startscenebg.jpg")
;
background-image
:
url("https://yun.duiba.com.cn/db_games/activity/game/15
90641513
/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
;
...
...
egret/libs/new_wx/MainBase.ts
View file @
a1496b0c
...
...
@@ -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'
),
...
...
egret/resource/assets/common/addhbimg.png
View replaced file @
ae3f301b
View file @
a1496b0c
205 KB
|
W:
|
H:
763 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/startscenebg.jpg
View replaced file @
ae3f301b
View file @
a1496b0c
130 KB
|
W:
|
H:
336 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/StartSkin.exml
View file @
a1496b0c
...
...
@@ -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"
/>
...
...
egret/src/startScene/StartScene.ts
View file @
a1496b0c
...
...
@@ -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
([
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment