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
cd4884a2
Commit
cd4884a2
authored
May 22, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整红包炸弹大小
parent
ecd9bc99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-4
RedBombAlertPanel.ts
egret/src/panels/RedBombAlertPanel.ts
+9
-3
No files found.
egret/src/mapScene/MapScene.ts
View file @
cd4884a2
...
@@ -1246,11 +1246,11 @@ export default class MapScene extends Scene {
...
@@ -1246,11 +1246,11 @@ export default class MapScene extends Scene {
}
}
onTap_signBtn
()
{
onTap_signBtn
()
{
NetManager
.
ins
.
hc_redBombAward
((
success
)
=>
{
//
NetManager.ins.hc_redBombAward((success) => {
PanelCtrl
.
instance
.
show
(
'RedBombAlert'
);
//
PanelCtrl.instance.show('RedBombAlert');
})
//
})
return
;
//
return;
NetManager
.
ins
.
getSignInfo
(()
=>
{
NetManager
.
ins
.
getSignInfo
(()
=>
{
PanelCtrl
.
instance
.
show
(
'sign'
);
PanelCtrl
.
instance
.
show
(
'sign'
);
},
window
[
'signActivityId'
])
},
window
[
'signActivityId'
])
...
...
egret/src/panels/RedBombAlertPanel.ts
View file @
cd4884a2
...
@@ -166,13 +166,19 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -166,13 +166,19 @@ export default class RedBombAlertPanel extends Panel {
if
(
!
this
.
isShow
){
if
(
!
this
.
isShow
){
let
changeimg
=
this
.
getchangeImg
();
let
changeimg
=
this
.
getchangeImg
();
if
(
changeimg
){
if
(
changeimg
){
changeimg
.
anchorOffsetX
=
500
/
2
;
//500*233
changeimg
.
anchorOffsetY
=
233
/
2
;
var
imgwid
=
550
;
var
imghei
=
256
;
changeimg
.
anchorOffsetX
=
imgwid
/
2
;
changeimg
.
anchorOffsetY
=
imghei
/
2
;
var
cx
=
changeimg
.
x
;
var
cx
=
changeimg
.
x
;
var
cy
=
changeimg
.
y
;
var
cy
=
changeimg
.
y
;
cx
+=
500
/
2
;
cx
+=
500
/
2
;
cy
+=
500
/
2
;
cy
+=
500
/
2
;
changeimg
.
width
=
imgwid
;
changeimg
.
height
=
imghei
;
changeimg
.
x
=
cx
;
changeimg
.
x
=
cx
;
changeimg
.
y
=
cy
;
changeimg
.
y
=
cy
;
...
@@ -216,7 +222,7 @@ export default class RedBombAlertPanel extends Panel {
...
@@ -216,7 +222,7 @@ export default class RedBombAlertPanel extends Panel {
var
sy
=
changeimg
.
y
;
var
sy
=
changeimg
.
y
;
// sx += 500/2;
// sx += 500/2;
sy
+=
233
/
2
;
sy
+=
changeimg
.
scaleY
*
233
/
2
;
changeimg
.
x
=
382
;
changeimg
.
x
=
382
;
changeimg
.
y
=
sy
;
changeimg
.
y
=
sy
;
...
...
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