Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
74f1074f
Commit
74f1074f
authored
Dec 11, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ea70bbc1
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
316 deletions
+18
-316
.DS_Store
dist/.DS_Store
+0
-0
pictures.json
dist/customs/pictures.json
+1
-1
main.js
src/custom/pictures/debug/main.js
+1
-313
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
GameView.ts
src/custom/pictures/src/game/GameView.ts
+15
-1
No files found.
dist/.DS_Store
View file @
74f1074f
No preview for this file type
dist/customs/pictures.json
View file @
74f1074f
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js
View file @
74f1074f
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
74f1074f
This diff is collapsed.
Click to expand it.
src/custom/pictures/src/game/GameView.ts
View file @
74f1074f
...
@@ -52,11 +52,25 @@ export default class GameView extends engine.Container {
...
@@ -52,11 +52,25 @@ export default class GameView extends engine.Container {
second
:
this
.
getSecond
(),
second
:
this
.
getSecond
(),
});
});
if
(
this
.
picturesWrapper
)
{
while
(
this
.
picturesWrapper
.
children
.
length
>
0
)
{
const
child
=
this
.
picturesWrapper
.
getChildAt
(
0
);
if
(
child
)
{
try
{
this
.
picturesWrapper
.
removeChild
(
child
)
}
catch
(
e
)
{
console
.
warn
(
'移除child失败了'
,
e
)
}
}
}
}
// 图片一维数组
// 图片一维数组
const
result
=
qietu
(
this
.
picturesWrapper
,
props
.
picUrl
,
MAX_COL
,
MAX_ROW
);
const
result
=
qietu
(
this
.
picturesWrapper
,
props
.
picUrl
,
MAX_COL
,
MAX_ROW
);
this
.
picturesWrapper
.
addChild
(
this
.
guideHole
);
this
.
picturesWrapper
.
addChild
(
this
.
guideHole
);
console
.
log
(
this
.
picturesWrapper
)
console
.
log
(
this
.
picturesWrapper
);
// this.picturesWrapper.alpha = 1
this
.
pictures
=
result
[
0
];
this
.
pictures
=
result
[
0
];
this
.
rightList
=
this
.
pictures
.
concat
([]);
this
.
rightList
=
this
.
pictures
.
concat
([]);
...
...
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