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
9969e08e
Commit
9969e08e
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d52f399b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
13 deletions
+19
-13
prizePanelbg.png
egret/resource/assets/common/prizePanelbg.png
+0
-0
prize2_icon.png
egret/resource/assets/prize2/prize2_icon.png
+0
-0
default.res.json
egret/resource/default.res.json
+16
-7
Prize2Skin.exml
egret/resource/skins/Prize2Skin.exml
+2
-2
Prize2Panel.ts
egret/src/panels/Prize2Panel.ts
+1
-4
No files found.
egret/resource/assets/
prize
/prizePanelbg.png
→
egret/resource/assets/
common
/prizePanelbg.png
View file @
9969e08e
File moved
egret/resource/assets/prize2/prize2_icon.png
0 → 100644
View file @
9969e08e
52 KB
egret/resource/default.res.json
View file @
9969e08e
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
"name"
:
"noprize"
"name"
:
"noprize"
},
},
{
{
"keys"
:
"PrizePanelX_png,prizePanelUseBtn_png,
prizePanelbg_png,
点亮_png,点亮 副本 2_png"
,
"keys"
:
"PrizePanelX_png,prizePanelUseBtn_png,点亮_png,点亮 副本 2_png"
,
"name"
:
"prize"
"name"
:
"prize"
},
},
{
{
...
@@ -73,8 +73,12 @@
...
@@ -73,8 +73,12 @@
"name"
:
"box2"
"name"
:
"box2"
},
},
{
{
"keys"
:
"
擦肩而过弹窗
_png"
,
"keys"
:
"
prize2_icon
_png"
,
"name"
:
"prize2"
"name"
:
"prize2"
},
{
"name"
:
"preload"
,
"keys"
:
"prizePanelbg_png"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -83,11 +87,6 @@
...
@@ -83,11 +87,6 @@
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"ruleBg_png"
"name"
:
"ruleBg_png"
},
},
{
"url"
:
"assets/prize/prizePanelbg.png"
,
"type"
:
"image"
,
"name"
:
"prizePanelbg_png"
},
{
{
"url"
:
"assets/prize/PrizePanelX.png"
,
"url"
:
"assets/prize/PrizePanelX.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
...
@@ -1512,6 +1511,16 @@
...
@@ -1512,6 +1511,16 @@
"url"
:
"assets/common/lightani.png"
,
"url"
:
"assets/common/lightani.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"lightani_png"
"name"
:
"lightani_png"
},
{
"url"
:
"assets/prize2/prize2_icon.png"
,
"type"
:
"image"
,
"name"
:
"prize2_icon_png"
},
{
"name"
:
"prizePanelbg_png"
,
"type"
:
"image"
,
"url"
:
"assets/common/prizePanelbg.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/Prize2Skin.exml
View file @
9969e08e
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Image
id=
"img"
y=
"502"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
x=
"117"
/>
<e:Image
id=
"pic1"
source=
"点亮 副本 2_png"
x=
"142"
y=
"191"
/>
<e:Image
id=
"pic1"
source=
"点亮 副本 2_png"
x=
"142"
y=
"191"
/>
<e:Image
id=
"pic3"
source=
"点亮 副本 2_png"
x=
"608"
y=
"191"
scaleX=
"-1"
/>
<e:Image
id=
"pic3"
source=
"点亮 副本 2_png"
x=
"608"
y=
"191"
scaleX=
"-1"
/>
<e:Image
id=
"pic2"
source=
"点亮_png"
y=
"142"
horizontalCenter=
"0"
/>
<e:Image
id=
"pic2"
source=
"点亮_png"
y=
"142"
horizontalCenter=
"0"
/>
<e:Label
id=
"tips"
text=
"这里显示元宝"
y=
"382"
horizontalCenter=
"0"
textColor=
"0xff0000"
/>
<e:Label
id=
"tips"
text=
"X30"
y=
"637"
x=
"497"
size=
"46"
textColor=
"0xb7592a"
/>
<e:Image
source=
"prize2_icon_png"
y=
"518.53"
horizontalCenter=
"0.5"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/Prize2Panel.ts
View file @
9969e08e
...
@@ -14,11 +14,9 @@ export default class Prize2Panel extends Panel {
...
@@ -14,11 +14,9 @@ export default class Prize2Panel extends Panel {
super
.
start
();
super
.
start
();
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
// const itemid = DataManager.ins.getData('getPlugOrderStatus').lottery.itemId;
// this.data.img = `http://yun.duiba.com.cn/db_games/0827/${itemid}.png`;
const
submitdata
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
const
submitdata
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
this
[
'tips'
].
text
=
`
本次获得元宝:
${
submitdata
.
prizeResponse
.
changeMoney
}
`
;
this
[
'tips'
].
text
=
`
X
${
submitdata
.
prizeResponse
.
changeMoney
}
`
;
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
showShare
();
showShare
();
...
@@ -67,7 +65,6 @@ export default class Prize2Panel extends Panel {
...
@@ -67,7 +65,6 @@ export default class Prize2Panel extends Panel {
get
picBigWidth
()
{
return
510
};
get
picBigWidth
()
{
return
510
};
get
bigPicRatio
()
{
return
640
/
300
}
get
bigPicRatio
()
{
return
640
/
300
}
img
:
eui
.
Image
;
useBtn
:
eui
.
Button
;
useBtn
:
eui
.
Button
;
get
skinKey
()
{
return
'Prize2'
}
get
skinKey
()
{
return
'Prize2'
}
...
...
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