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
5cb4b3b0
Commit
5cb4b3b0
authored
Mar 16, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
73d3c22f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
12 deletions
+17
-12
exml.json
egret/.wing/exml.json
+1
-1
common_yuanbao.png
egret/resource/assets/common/common_yuanbao.png
+0
-0
BackSkin.exml
egret/resource/skins/BackSkin.exml
+3
-3
BackPanel.ts
egret/src/panels/BackPanel.ts
+1
-0
soundCtrl.ts
egret/src/soundCtrl.ts
+7
-4
getBackReward.json
mock/happyclear/getBackReward.json
+5
-4
No files found.
egret/.wing/exml.json
View file @
5cb4b3b0
...
...
@@ -251,7 +251,7 @@
"bindingDataTestObj"
:
[
{
"key"
:
"data.url"
,
"value"
:
"
turnprize_icon2_png
"
"value"
:
""
}
]
},
...
...
egret/resource/assets/common/common_yuanbao.png
View replaced file @
73d3c22f
View file @
5cb4b3b0
1.67 KB
|
W:
|
H:
14.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/BackSkin.exml
View file @
5cb4b3b0
...
...
@@ -2,10 +2,10 @@
<e:Skin
class=
"BackSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16e0235c541"
/>
<e:Image
source=
"backbg_png"
scale9Grid=
"93,550,564,42"
y=
"-107"
horizontalCenter=
"0"
/>
<e:Image
source=
"commom_prop_bg_png"
y=
"456.76"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
source=
"{data.url}"
y=
"503.76"
x=
"321"
visible=
"false"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"368.2"
horizontalCenter=
"0"
scaleX=
"0.8"
scaleY=
"0.8"
visible=
"false"
/>
<e:Image
id=
"bg"
source=
"commom_prop_bg_png"
y=
"456.76"
horizontalCenter=
"0"
/>
<e:Image
id=
"img"
source=
"{data.url}"
y=
"503.76"
horizontalCenter=
"0"
/>
<e:Image
id=
"blood"
y=
"522.8"
horizontalCenter=
"-33.5"
source=
"common_blood_png"
locked=
"true"
visible=
"false"
/>
<e:Image
id=
"money"
y=
"543"
horizontalCenter=
"-33.5"
scaleX=
"0.8"
scaleY=
"0.8"
source=
"common_yuanbao_png"
visible=
"false"
/>
<e:Image
id=
"propImg"
source=
"{data.url}"
y=
"507.76"
x=
"283"
visible=
"false"
/>
<e:Label
id=
"propnums"
text=
"X8"
size=
"50"
horizontalCenter=
"58"
verticalCenter=
"-29"
verticalAlign=
"middle"
textAlign=
"center"
textColor=
"0xc17343"
fontFamily=
"FZY3JW"
x=
"510.38"
y=
"534.4"
bold=
"true"
visible=
"false"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"605"
y=
"305"
>
...
...
egret/src/panels/BackPanel.ts
View file @
5cb4b3b0
...
...
@@ -52,6 +52,7 @@ export default class BackPanel extends Panel {
this
[
'propnums'
].
text
=
'x'
+
realValue
;
break
;
default
:
this
[
'bg'
].
visible
=
false
;
this
[
'img'
].
visible
=
true
;
this
.
data
.
url
=
img
;
break
;
...
...
egret/src/soundCtrl.ts
View file @
5cb4b3b0
...
...
@@ -85,11 +85,14 @@ export enum SoundType {
bonusTime
=
'haha'
,
}
export
const
playSound
=
(
type
:
SoundType
)
=>
{
export
const
playSound
=
async
(
type
:
SoundType
)
=>
{
if
(
!
soundOn
)
return
;
const
sound
:
egret
.
Sound
=
RES
.
getRes
(
type
+
"_mp3"
);
if
(
sound
)
if
(
sound
)
{
sound
.
play
(
0
,
1
);
else
RES
.
getResAsync
(
type
+
"_mp3"
)
}
else
{
const
sound
=
await
RES
.
getResAsync
(
type
+
"_mp3"
);
sound
.
play
(
0
,
1
);
}
}
\ No newline at end of file
mock/happyclear/getBackReward.json
View file @
5cb4b3b0
...
...
@@ -2,17 +2,18 @@
"code"
:
"0000000000"
,
"data"
:{
"appItemId"
:
2322
,
"categoryType"
:
3
,
"categoryType"
:
5
,
"coinType"
:
1
,
"img"
:
"
1
"
,
"img"
:
"
http://yun.duiba.com.cn/db_games/activity/game/guideImage/guide2.png
"
,
"maxValue"
:
2
,
"minValue"
:
1
,
"name"
:
"测试商品"
,
"num"
:
3
,
"propType"
:
2
,
"propType"
:
3
,
"rate"
:
"概率"
,
"title"
:
"商品信息"
,
"value"
:
"虚拟商品标识符"
"value"
:
"虚拟商品标识符"
,
"realValue"
:
11
},
"desc"
:
"OK"
,
"success"
:
true
,
...
...
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