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
fb082ab0
Commit
fb082ab0
authored
Apr 09, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
12fcc476
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
TaskCenterPrizeSkin.exml
egret/resource/skins/TaskCenterPrizeSkin.exml
+3
-3
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+2
-2
No files found.
egret/resource/skins/TaskCenterPrizeSkin.exml
View file @
fb082ab0
...
...
@@ -16,11 +16,11 @@
<e:Image
id=
"img"
y=
"374.77"
touchEnabled=
"true"
width=
"518"
height=
"243"
scaleX=
"1"
scaleY=
"1"
source=
"{data.url}"
horizontalCenter=
"2"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
/>
<e:Image
id=
"prop"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"-58.5"
source=
"taskPrize_money_png"
verticalCenter=
"-104"
/>
<e:Group
id=
"numsgroup"
x=
"384.4"
anchorOffsetX=
"0"
width=
"188"
anchorOffsetY=
"0"
height=
"62"
verticalCenter=
"-100"
>
<e:Label
id=
"nums"
text=
"×8"
size=
"48"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"FZY3JW"
textColor=
"0xc17343"
left=
"0"
bold=
"true
"
/>
<e:Label
id=
"nums"
text=
"×8"
size=
"48"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
fontFamily=
"FZY3JW"
left=
"0"
bold=
"true"
textColor=
"0xc17343
"
/>
</e:Group>
<e:Label
id=
"tipsLabel"
text=
"继续完成任务可以获得更多元宝哦~"
y=
"632.73"
textColor=
"0xF54500"
fontFamily=
"FZY3JW"
size=
"26"
horizontalCenter=
"0
"
/>
<e:Label
id=
"tipsLabel"
text=
"继续完成任务可以获得更多元宝哦~"
y=
"632.73"
fontFamily=
"FZY3JW"
size=
"26"
horizontalCenter=
"0"
textColor=
"0xc17343
"
/>
<e:Group
id=
"btn"
y=
"690"
anchorOffsetX=
"0"
width=
"332.33"
anchorOffsetY=
"0"
height=
"104.33"
horizontalCenter=
"0"
>
<e:Image
y=
"0"
source=
"TaskCenter_btn_png"
scaleX=
"0.9"
scaleY=
"0.9"
x=
"0"
/>
<e:Label
id=
"btnLabel"
text=
"继续闯关"
size=
"42"
strokeColor=
"0xff
7038"
stroke=
"3"
fontFamily=
"FZY3
JW"
horizontalCenter=
"-0.16499999999999204"
verticalCenter=
"-1.1649999999999991"
/>
<e:Label
id=
"btnLabel"
text=
"继续闯关"
size=
"42"
strokeColor=
"0xff
8b46"
stroke=
"3"
fontFamily=
"FZY4
JW"
horizontalCenter=
"-0.16499999999999204"
verticalCenter=
"-1.1649999999999991"
/>
</e:Group>
</e:Skin>
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
fb082ab0
...
...
@@ -110,7 +110,7 @@ class TaskCenterItem extends eui.ItemRenderer {
// '0x7e7e7e' done 灰色
// '0x1376df' goTask 蓝色
// '0xf
99f45
' getPrize 橙色
// '0xf
f8b46
' getPrize 橙色
// 设置按钮
private
setBtn
()
{
const
count
=
this
.
data
.
count
;
// 领取奖励*count
...
...
@@ -124,7 +124,7 @@ class TaskCenterItem extends eui.ItemRenderer {
if
(
count
>
0
)
{
// 可领奖
this
.
btnImg
.
source
=
'TaskCenter_'
+
'getPrize'
+
'Btn_png'
;
this
.
btnLabel
.
text
=
`领取奖励×
${
count
}
`
;
this
.
btnLabel
.
strokeColor
=
0xf
99f45
;
this
.
btnLabel
.
strokeColor
=
0xf
f8b46
;
this
.
btnGroup
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
// 领奖
this
.
btnGroup
.
touchEnabled
=
false
;
...
...
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