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
f803c898
Commit
f803c898
authored
Nov 13, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
17cd2519
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
HbRainIcon.ts
egret/src/mapScene/icon/HbRainIcon.ts
+4
-0
HbNoPrize.ts
egret/src/panels/HongbaoRain/HbNoPrize.ts
+1
-1
HbPrize.ts
egret/src/panels/HongbaoRain/HbPrize.ts
+1
-1
No files found.
egret/src/mapScene/icon/HbRainIcon.ts
View file @
f803c898
...
@@ -31,6 +31,10 @@ export default class HbRainIcon extends IconBase {
...
@@ -31,6 +31,10 @@ export default class HbRainIcon extends IconBase {
}
}
private
call
(
success
,
res
)
{
private
call
(
success
,
res
)
{
if
(
success
==
undefined
&&
res
==
undefined
){
this
.
updateIcon
();
return
;
}
if
(
!
success
)
{
if
(
!
success
)
{
if
(
res
.
code
==
"600054"
||
res
.
code
==
"600055"
)
{
if
(
res
.
code
==
"600054"
||
res
.
code
==
"600055"
)
{
this
.
visible
=
false
;
this
.
visible
=
false
;
...
...
egret/src/panels/HongbaoRain/HbNoPrize.ts
View file @
f803c898
...
@@ -25,7 +25,7 @@ export default class HbNoPrize extends Panel {
...
@@ -25,7 +25,7 @@ export default class HbNoPrize extends Panel {
async
start
()
{
async
start
()
{
super
.
start
();
super
.
start
();
this
.
initUI
();
this
.
initUI
();
//
GDispatcher.dispatchEvent('updateHbRainIcon');
GDispatcher
.
dispatchEvent
(
'updateHbRainIcon'
);
}
}
initUI
()
{
initUI
()
{
...
...
egret/src/panels/HongbaoRain/HbPrize.ts
View file @
f803c898
...
@@ -27,7 +27,7 @@ export default class HbPrize extends Panel {
...
@@ -27,7 +27,7 @@ export default class HbPrize extends Panel {
let
str
=
`一共抢到<b>
${
this
.
data
.
score
}
</b>个红包`
;
let
str
=
`一共抢到<b>
${
this
.
data
.
score
}
</b>个红包`
;
this
.
tipLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
str
);
this
.
tipLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
str
);
//
GDispatcher.dispatchEvent('updateHbRainIcon');
GDispatcher
.
dispatchEvent
(
'updateHbRainIcon'
);
}
}
updateOption
(
option
:
any
)
{
updateOption
(
option
:
any
)
{
...
...
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