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
2ee2f94d
Commit
2ee2f94d
authored
Jun 04, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9f9c4064
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
15 deletions
+14
-15
.DS_Store
dist/.DS_Store
+0
-0
pictures.json
dist/customs/pictures.json
+3
-3
app.js
src/custom/pictures/debug/app.js
+1
-1
load-assets.js
src/custom/pictures/debug/load-assets.js
+1
-1
main.js
src/custom/pictures/debug/main.js
+1
-1
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
meta.json
src/custom/pictures/meta.json
+2
-2
GameView.ts
src/custom/pictures/src/game/GameView.ts
+5
-6
No files found.
dist/.DS_Store
View file @
2ee2f94d
No preview for this file type
dist/customs/pictures.json
View file @
2ee2f94d
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/app.js
View file @
2ee2f94d
...
...
@@ -61,7 +61,7 @@ function launchWithCustomModule(customModule) {
// picUrl: "http://yun.duiba.com.cn/aurora/assets/d23e73d37ec01931e48cbd0a4095367044c5675c.png"
});
},
2
000
);
},
10
*
1
000
);
});
engine
.
globalEvent
.
addEventListener
(
'pictures-time-update'
,
(
e
)
=>
{
// console.log(e.type, e.data);
...
...
src/custom/pictures/debug/load-assets.js
View file @
2ee2f94d
...
...
@@ -5,7 +5,7 @@
const
assets
=
[
{
"name"
:
"玩家icon"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/5
0a7212a113175fa18c866b005d98f07c558dc77
.png"
,
"url"
:
"//yun.duiba.com.cn/aurora/assets/5
b3e30496b2d9fdafb0cf3835fd6704ce10e45b4
.png"
,
"uuid"
:
"66f23d13-82a5-4cec-9496-301ec240d087"
,
"ext"
:
".png"
},
...
...
src/custom/pictures/debug/main.js
View file @
2ee2f94d
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
2ee2f94d
This diff is collapsed.
Click to expand it.
src/custom/pictures/meta.json
View file @
2ee2f94d
...
...
@@ -5,12 +5,12 @@
"MAX_COL"
:
{
"alias"
:
"图片分成几列"
,
"type"
:
"number"
,
"default"
:
2
"default"
:
3
},
"MAX_ROW"
:
{
"alias"
:
"图片分成几行"
,
"type"
:
"number"
,
"default"
:
2
"default"
:
4
},
"W"
:
{
"alias"
:
"图片的宽度"
,
...
...
src/custom/pictures/src/game/GameView.ts
View file @
2ee2f94d
...
...
@@ -222,7 +222,7 @@ export default class GameView extends engine.Container {
this
.
onMove
,
this
);
this
.
stage
.
addEventListener
(
this
.
stage
.
once
(
engine
.
MouseEvent
.
MOUSE_UP
,
this
.
stageOnUp
,
this
...
...
@@ -230,7 +230,10 @@ export default class GameView extends engine.Container {
}
listenStageOn
=
1
;
stageOnUp
(
e
)
{
this
.
stage
.
removeEventListener
(
engine
.
MouseEvent
.
MOUSE_MOVE
,
this
.
onMove
,
...
...
@@ -302,11 +305,7 @@ export default class GameView extends engine.Container {
this
.
dragPic
.
y
=
this
.
distanceY
}
this
.
stage
.
removeEventListener
(
engine
.
MouseEvent
.
MOUSE_UP
,
this
.
stageOnUp
,
this
);
}
private
onSuccess
()
{
...
...
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