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
06af51f8
Commit
06af51f8
authored
May 12, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换皮
parent
a2e60777
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
10 deletions
+25
-10
hbchuanguan2.png
egret/resource/assets/redbombalert/hbchuanguan2.png
+0
-0
redAlert_btn1.png
egret/resource/assets/redbombalert/redAlert_btn1.png
+0
-0
default.res.json
egret/resource/default.res.json
+11
-1
RedBombAlertSkin.exml
egret/resource/skins/RedBombAlertSkin.exml
+5
-4
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-2
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+6
-2
FestivalTarget.ts
egret/src/something/uis/FestivalTarget.ts
+1
-1
No files found.
egret/resource/assets/redbombalert/hbchuanguan2.png
0 → 100644
View file @
06af51f8
32.9 KB
egret/resource/assets/redbombalert/redAlert_btn1.png
0 → 100644
View file @
06af51f8
31.7 KB
egret/resource/default.res.json
View file @
06af51f8
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
"name"
:
"helpGroup"
"name"
:
"helpGroup"
},
},
{
{
"keys"
:
"virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg,adsmask_png,nsad2_png,nsad1_png"
,
"keys"
:
"virprizebg_png,lightdi_png,wormhole_png,startscenebg_jpg,adsmask_png,nsad2_png,nsad1_png
,hbchuanguan2_png,redAlert_btn1_png
"
,
"name"
:
"preload"
"name"
:
"preload"
}
}
],
],
...
@@ -5416,6 +5416,16 @@
...
@@ -5416,6 +5416,16 @@
"name"
:
"nsad1_png"
,
"name"
:
"nsad1_png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"url"
:
"assets/ad/nsad1.png"
"url"
:
"assets/ad/nsad1.png"
},
{
"name"
:
"hbchuanguan2_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombalert/hbchuanguan2.png"
},
{
"name"
:
"redAlert_btn1_png"
,
"type"
:
"image"
,
"url"
:
"assets/redbombalert/redAlert_btn1.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/RedBombAlertSkin.exml
View file @
06af51f8
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"RedBombAlertSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"RedBombAlertSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
id=
"group"
y=
"470"
horizontalCenter=
"0"
>
<e:Group
id=
"group"
y=
"470"
horizontalCenter=
"0"
visible=
"false"
>
<e:Image
source=
"redbombalert文案_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Image
source=
"redbombalert文案_png"
y=
"0"
horizontalCenter=
"0"
/>
<e:Label
id=
"tips"
text=
"今日还有2个红包在其他关卡等你哦~"
y=
"79"
textColor=
"0xffe9c0"
x=
"0"
/>
<e:Label
id=
"tips"
text=
"今日还有2个红包在其他关卡等你哦~"
y=
"79"
textColor=
"0xffe9c0"
x=
"0"
/>
</e:Group>
</e:Group>
<e:Group
id=
"btn"
y=
"985"
horizontalCenter=
"0"
visible=
"false"
>
<e:Group
id=
"btn"
y=
"985"
horizontalCenter=
"0"
>
<e:Image
source=
"redAlert_btn_png"
y=
"0"
x=
"0"
/>
<e:Image
id=
"btn1"
y=
"0"
source=
"redAlert_btn1_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Label
id=
"btnLabel"
text=
"愉快收下"
y=
"30"
size=
"38"
stroke=
"2"
strokeColor=
"0x2f7df9"
fontFamily=
"FZY3JW"
x=
"103"
bold=
"true"
/>
<e:Image
id=
"btn2"
source=
"hbchuanguan2_png"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Label
id=
"btnLabel"
text=
"愉快收下"
y=
"30"
size=
"38"
stroke=
"2"
strokeColor=
"0x2f7df9"
fontFamily=
"FZY3JW"
x=
"103"
bold=
"true"
visible=
"false"
/>
</e:Group>
</e:Group>
<e:Group
id=
"numsgroup"
x=
"410"
y=
"350"
scaleX=
"1.5"
scaleY=
"1.5"
visible=
"false"
>
<e:Group
id=
"numsgroup"
x=
"410"
y=
"350"
scaleX=
"1.5"
scaleY=
"1.5"
visible=
"false"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
/>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
/>
...
...
egret/src/mainScene/MainScene.ts
View file @
06af51f8
...
@@ -500,7 +500,7 @@ export default class MainScene extends Scene {
...
@@ -500,7 +500,7 @@ export default class MainScene extends Scene {
// window['gm'] = this.gm;
// window['gm'] = this.gm;
//第几关
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
8
;
this
.
chapter
=
1
;
//关卡数据
//关卡数据
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
//初始化目标信息
//初始化目标信息
...
@@ -1564,7 +1564,7 @@ export default class MainScene extends Scene {
...
@@ -1564,7 +1564,7 @@ export default class MainScene extends Scene {
//添加节日红包目标,todo,记得测试红包
//添加节日红包目标,todo,记得测试红包
this
.
festivalTarget
=
new
FestivalTarget
(
this
.
festivalTargetNum
);
this
.
festivalTarget
=
new
FestivalTarget
(
this
.
festivalTargetNum
);
this
.
festivalTarget
.
x
=
580
;
this
.
festivalTarget
.
x
=
580
;
this
.
festivalTarget
.
y
=
11
5
;
this
.
festivalTarget
.
y
=
207.
5
;
this
.
festivalContainer
.
removeChildren
();
this
.
festivalContainer
.
removeChildren
();
this
.
festivalContainer
.
addChild
(
this
.
festivalTarget
);
this
.
festivalContainer
.
addChild
(
this
.
festivalTarget
);
...
...
egret/src/panels/RedBombAlertPanel.ts
View file @
06af51f8
...
@@ -53,7 +53,9 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -53,7 +53,9 @@ export default class RedBombAlertPanel extends Panel {
this
.
addChild
(
mv
);
this
.
addChild
(
mv
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
btn
.
visible
=
true
;
this
.
btn
.
visible
=
true
;
this
.
btnLabel
.
text
=
'继续闯关'
;
this
[
'btn2'
].
visible
=
true
;
this
[
'btn1'
].
visible
=
false
;
// this.btnLabel.text = '继续闯关';
NetManager
.
ins
.
showLog
(
getlogItem
(
76
));
NetManager
.
ins
.
showLog
(
getlogItem
(
76
));
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
76
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
76
));
...
@@ -77,7 +79,9 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -77,7 +79,9 @@ export default class RedBombAlertPanel extends Panel {
this
.
addChildAt
(
mv
,
1
);
this
.
addChildAt
(
mv
,
1
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
btn
.
visible
=
true
;
this
.
btn
.
visible
=
true
;
this
.
btnLabel
.
text
=
'开心收下'
;
// this.btnLabel.text = '开心收下';
this
[
'btn1'
].
visible
=
true
;
this
[
'btn2'
].
visible
=
false
;
NetManager
.
ins
.
showLog
(
getlogItem
(
75
));
NetManager
.
ins
.
showLog
(
getlogItem
(
75
));
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
75
));
NetManager
.
ins
.
clickLog
(
getlogItem
(
75
));
...
...
egret/src/something/uis/FestivalTarget.ts
View file @
06af51f8
...
@@ -43,7 +43,7 @@ export class FestivalTarget extends egret.DisplayObjectContainer {
...
@@ -43,7 +43,7 @@ export class FestivalTarget extends egret.DisplayObjectContainer {
this
.
addChild
(
this
.
zeroMark
);
this
.
addChild
(
this
.
zeroMark
);
this
.
countNum
=
new
TargetNumber
();
this
.
countNum
=
new
TargetNumber
();
this
.
countNum
.
x
=
40
;
this
.
countNum
.
x
=
40
;
this
.
countNum
.
y
=
60
;
this
.
countNum
.
y
=
55
;
this
.
addChild
(
this
.
countNum
);
this
.
addChild
(
this
.
countNum
);
this
.
count
=
count
;
this
.
count
=
count
;
...
...
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