Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
37b25a57
Commit
37b25a57
authored
Aug 13, 2021
by
shunx 马
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
42567dc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
BoxGroup.ts
project/src/scenes/BoxGroup.ts
+3
-1
IndexScene.ts
project/src/scenes/IndexScene.ts
+20
-7
No files found.
project/src/scenes/BoxGroup.ts
View file @
37b25a57
...
...
@@ -10,7 +10,7 @@ export interface Move {
let
boxGroupUpLeft
=
[];
let
boxGroupDown
=
[];
let
boxGroupUpRight
=
[];
let
flag
=
0
;
export
class
BoxGroup
extends
FYGE
.
Sprite
{
indexsvga
;
constructor
()
{
...
...
@@ -73,11 +73,13 @@ export class BoxGroup extends FYGE.Sprite {
handleClick
(
e
)
{
const
indexsvga
=
this
.
indexsvga
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'盲盒选中-输出.svga'
));
flag
=
1
;
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{
});
indexsvga
.
mouseChildren
=
indexsvga
.
mouseEnable
=
false
;
indexsvga
.
position
.
set
(
e
.
target
.
x
-
200
,
e
.
target
.
y
-
190
)
this
.
addChild
(
indexsvga
);
indexsvga
.
startAniRange
(
1
,
indexsvga
.
totalFrames
,
1
,
()
=>
{
flag
=
0
;
showPanel
(
CostPanel
);
});
}
...
...
project/src/scenes/IndexScene.ts
View file @
37b25a57
...
...
@@ -16,6 +16,7 @@ import { BoxGroup } from "./BoxGroup";
import
{
ScrollItem
}
from
"./ScrollItem"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
layers
}
from
"../../module/views/layers"
;
let
boxGroup
:
BoxGroup
;
...
...
@@ -32,6 +33,7 @@ export class IndexScene extends Scene {
start
()
{
super
.
start
();
this
.
getIndex
();
// this.initNonmemberMask();
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
this
.
initContainer
();
this
.
initmask
();
...
...
@@ -44,7 +46,9 @@ export class IndexScene extends Scene {
list
.
updateData
(
array
);
list
.
position
.
set
(
80
,
1240
+
30
);
this
.
addChild
(
list
);
this
.
stage
.
addEventListener
(
"restartEnterFrame"
,
this
.
onRestartFrame
,
this
);
this
.
stage
.
addEventListener
(
"restartEnterFrame"
,
this
.
onRestartFrame
,
this
);
boxGroup
.
addEventListener
(
"stopIndexEnterFrame"
,
this
.
removeEvent
,
this
);
}
initContainer
()
{
...
...
@@ -55,6 +59,17 @@ export class IndexScene extends Scene {
boxArea
.
addChild
(
boxGroup
);
}
initNonmemberMask
()
{
const
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
0
,
0.1
);
mask
.
drawRect
(
0
,
0
,
750
,
1624
);
mask
.
endFill
();
layers
.
topLayer
.
addChild
(
mask
);
mask
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
showPanel
(
memberGuidePanel
);
},
this
)
}
initmask
()
{
const
mask
=
new
FYGE
.
Shape
();
mask
.
beginFill
(
0
,
0.3
);
...
...
@@ -75,7 +90,6 @@ export class IndexScene extends Scene {
onEnterFrame
()
{
boxGroup
&&
boxGroup
.
move
();
boxGroup
.
addEventListener
(
"stopIndexEnterFrame"
,
this
.
removeEvent
,
this
);
}
onRestartFrame
()
{
...
...
@@ -94,17 +108,16 @@ export class IndexScene extends Scene {
getIndex
=
async
()
=>
{
const
result
=
getWebData
(
WebNetName
.
index
);
if
(
result
&&
result
.
data
)
{
const
reDegree
=
getObject
(
this
,
'index_timestips2'
);
reDegree
.
text
=
result
.
data
.
surplusCount
;
const
credits
=
getObject
(
this
,
'index_moneytips2'
);
credits
.
text
=
result
.
data
.
credits
;
const
needCredits
=
getObject
(
this
,
'index_costtips'
);
needCredits
.
text
=
result
.
data
.
needCredits
+
"积分/次"
;
if
(
result
.
data
.
type
==
2
)
{
}
else
if
(
result
.
data
.
type
==
2
)
{
reDegree
.
text
=
result
.
data
.
surplusCount
;
}
else
{
reDegree
.
text
=
0
;
}
...
...
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