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
e7acc37b
Commit
e7acc37b
authored
Apr 03, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整签到
parent
8392da50
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
4 deletions
+33
-4
sign_icon1.png
egret/resource/assets/sign/sign_icon1.png
+0
-0
signicon6.png
egret/resource/assets/sign/signicon6.png
+0
-0
unsignbtn.png
egret/resource/assets/sign/unsignbtn.png
+0
-0
signprize_btn.png
egret/resource/assets/signprize/signprize_btn.png
+0
-0
default.res.json
egret/resource/default.res.json
+9
-0
SignSkin.exml
egret/resource/skins/SignSkin.exml
+12
-3
SignPanel.ts
egret/src/panels/SignPanel.ts
+12
-1
No files found.
egret/resource/assets/sign/sign_icon1.png
View replaced file @
8392da50
View file @
e7acc37b
11.3 KB
|
W:
|
H:
12.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/sign/signicon6.png
View replaced file @
8392da50
View file @
e7acc37b
9.83 KB
|
W:
|
H:
12.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/sign/unsignbtn.png
0 → 100644
View file @
e7acc37b
18.2 KB
egret/resource/assets/signprize/signprize_btn.png
View replaced file @
8392da50
View file @
e7acc37b
21.6 KB
|
W:
|
H:
33.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/default.res.json
View file @
e7acc37b
...
@@ -239,6 +239,10 @@
...
@@ -239,6 +239,10 @@
{
{
"keys"
:
"help_blood_1_btn_png,help_blood_1_text_png,help_blood_fail_btn_png,help_blood_fail_text_png,help_blood_fail_text2_png,help_blood_fail_text3_png,help_blood_fail_text4_png,help_blood_success_text_png,help_blood_success_text2_png,help_card_bg_png,help_card_prize_png,help_closebtn1_png,help_invite2_btn_png,help_invite2_btn2_png,help_invite2_text_png,help_invite2_text2_png,help_invite2_text3_png,help_invite2_text4_png,help_invite_bg_png,help_invite_btn1_png,help_invite_fail_btn_png,help_invite_fail_text1_png,help_invite_fail_text2_png,help_invite_fail_text3_png,help_invite_fail_text4_png,help_invite_success_btn_png,help_invite_success_txt_png,help_invite_text_png,help_light_png"
,
"keys"
:
"help_blood_1_btn_png,help_blood_1_text_png,help_blood_fail_btn_png,help_blood_fail_text_png,help_blood_fail_text2_png,help_blood_fail_text3_png,help_blood_fail_text4_png,help_blood_success_text_png,help_blood_success_text2_png,help_card_bg_png,help_card_prize_png,help_closebtn1_png,help_invite2_btn_png,help_invite2_btn2_png,help_invite2_text_png,help_invite2_text2_png,help_invite2_text3_png,help_invite2_text4_png,help_invite_bg_png,help_invite_btn1_png,help_invite_fail_btn_png,help_invite_fail_text1_png,help_invite_fail_text2_png,help_invite_fail_text3_png,help_invite_fail_text4_png,help_invite_success_btn_png,help_invite_success_txt_png,help_invite_text_png,help_light_png"
,
"name"
:
"helpGroup"
"name"
:
"helpGroup"
},
{
"name"
:
"preload"
,
"keys"
:
"unsignbtn_png"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -5367,6 +5371,11 @@
...
@@ -5367,6 +5371,11 @@
"url"
:
"assets/common/commom_share1.png"
,
"url"
:
"assets/common/commom_share1.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"commom_share1_png"
"name"
:
"commom_share1_png"
},
{
"name"
:
"unsignbtn_png"
,
"type"
:
"image"
,
"url"
:
"assets/sign/unsignbtn.png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/skins/SignSkin.exml
View file @
e7acc37b
...
@@ -19,13 +19,22 @@
...
@@ -19,13 +19,22 @@
</e:Group>
</e:Group>
</e:Scroller>
</e:Scroller>
<e:Label
text=
"连续登录闯关可以获得更丰厚的奖励哦~"
y=
"371"
textColor=
"0xf7713a"
size=
"26"
horizontalCenter=
"0"
fontFamily=
"FZY4JW"
/>
<e:Label
text=
"连续登录闯关可以获得更丰厚的奖励哦~"
y=
"371"
textColor=
"0xf7713a"
size=
"26"
horizontalCenter=
"0"
fontFamily=
"FZY4JW"
/>
<e:Button
id=
"btn1"
label=
""
anchorOffsetX=
"184"
anchorOffsetY=
"55"
x=
"375"
y=
"916"
>
<e:Button
id=
"btn1"
label=
""
anchorOffsetX=
"184"
anchorOffsetY=
"55"
x=
"375"
y=
"916"
visible=
"false"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"signbtn1_png"
source.down=
"signbtn1_png"
source.disabled=
"signbtn1_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"signbtn1_png"
source.down=
"signbtn1_png"
source.disabled=
"signbtn1_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
<e:Button
id=
"btn0"
label=
""
anchorOffsetX=
"184"
anchorOffsetY=
"55"
x=
"375"
y=
"916"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"unsignbtn_png"
source.down=
"unsignbtn_png"
source.disabled=
"unsignbtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Button>
<e:Group
id=
"prizegroup"
width=
"750"
height=
"1206"
x=
"0"
y=
"0"
visible=
"false"
>
<e:Group
id=
"prizegroup"
width=
"750"
height=
"1206"
x=
"0"
y=
"0"
visible=
"false"
>
<e:Rect
id=
"mask1"
fillAlpha=
"0.8"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
width=
"750"
height=
"1206"
/>
<e:Rect
id=
"mask1"
fillAlpha=
"0.8"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
width=
"750"
height=
"1206"
/>
...
...
egret/src/panels/SignPanel.ts
View file @
e7acc37b
...
@@ -111,6 +111,7 @@ export default class SignPanel extends Panel {
...
@@ -111,6 +111,7 @@ export default class SignPanel extends Panel {
console
.
log
(
"签到数据"
,
configs
);
console
.
log
(
"签到数据"
,
configs
);
var
btnv
:
boolean
=
false
;
list
.
forEach
((
ele
,
index
)
=>
{
list
.
forEach
((
ele
,
index
)
=>
{
ele
.
index
=
index
;
ele
.
index
=
index
;
ele
.
config
=
configs
[
index
];
ele
.
config
=
configs
[
index
];
...
@@ -127,6 +128,7 @@ export default class SignPanel extends Panel {
...
@@ -127,6 +128,7 @@ export default class SignPanel extends Panel {
else
{
else
{
ele
.
btn
=
1
;
ele
.
btn
=
1
;
this
.
signidx
=
index
;
this
.
signidx
=
index
;
btnv
=
true
;
}
}
console
.
log
(
"今日签到数据"
,
index
,
this
.
signidx
);
console
.
log
(
"今日签到数据"
,
index
,
this
.
signidx
);
this
.
todayidx
=
index
;
this
.
todayidx
=
index
;
...
@@ -135,6 +137,7 @@ export default class SignPanel extends Panel {
...
@@ -135,6 +137,7 @@ export default class SignPanel extends Panel {
}
else
}
else
ele
.
btn
=
4
;
ele
.
btn
=
4
;
});
});
this
.
changeShowBtn
(
btnv
);
this
.
signdata
=
Utils
.
deepClone
(
list
);
this
.
signdata
=
Utils
.
deepClone
(
list
);
if
(
this
.
signidx
==
6
&&
this
.
sevenIsGift
){
if
(
this
.
signidx
==
6
&&
this
.
sevenIsGift
){
...
@@ -327,6 +330,13 @@ export default class SignPanel extends Panel {
...
@@ -327,6 +330,13 @@ export default class SignPanel extends Panel {
},
window
[
"signActivityId"
]);
},
window
[
"signActivityId"
]);
}
}
}
}
/**
*
*/
changeShowBtn
(
_v
:
boolean
){
this
[
"btn1"
].
visible
=
_v
;
this
[
"btn0"
].
visible
=
!
_v
;
}
removeEvents
(){
removeEvents
(){
super
.
removeEvents
();
super
.
removeEvents
();
this
[
"closeBtn"
].
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
this
[
"closeBtn"
].
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
...
@@ -529,7 +539,8 @@ export default class SignPanel extends Panel {
...
@@ -529,7 +539,8 @@ export default class SignPanel extends Panel {
// this.list.dataProvider = new eui.ArrayCollection(this.signdata);
// this.list.dataProvider = new eui.ArrayCollection(this.signdata);
this
.
itemEffect
(
"roasign"
,
function
(){
this
.
itemEffect
(
"roasign"
,
function
(){
//修改按钮为已签到
//修改按钮为已签到
this
.
tweenBtn
(
this
[
'btn1'
],
'tb'
);
this
.
changeShowBtn
(
false
);
this
.
tweenBtn
(
this
[
'btn0'
],
'tb'
);
}.
bind
(
this
));
}.
bind
(
this
));
}
}
//礼盒弹出后的弹窗
//礼盒弹出后的弹窗
...
...
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