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
adb9fcd2
Commit
adb9fcd2
authored
Dec 17, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内容太多,懒得写
parent
2d0906a1
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
115 additions
and
50 deletions
+115
-50
engine.js
dist/customs/engine.js
+0
-2
index.html
dist/customs/index.html
+0
-11
test1.js
dist/customs/test1.js
+0
-34
test1.js.map
dist/customs/test1.js.map
+0
-1
play-sound.json
dist/processes/base/play-sound.json
+29
-0
stop-sound.json
dist/processes/base/stop-sound.json
+17
-0
wait.json
dist/processes/base/wait.json
+1
-1
types.d.ts
libs/types.d.ts
+3
-0
index.ts
src/process/base/play-sound/index.ts
+15
-0
meta.json
src/process/base/play-sound/meta.json
+25
-0
index.ts
src/process/base/stop-sound/index.ts
+9
-0
meta.json
src/process/base/stop-sound/meta.json
+13
-0
index.ts
src/process/base/wait/index.ts
+3
-1
No files found.
dist/customs/engine.js
deleted
100644 → 0
View file @
2d0906a1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/customs/index.html
deleted
100644 → 0
View file @
2d0906a1
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
<script
src=
"engine.js"
></script>
<script
src=
"test1.js"
></script>
</body>
</html>
\ No newline at end of file
dist/customs/test1.js
deleted
100644 → 0
View file @
2d0906a1
'use strict'
;
var
extendStatics
=
function
(
d
,
b
)
{
extendStatics
=
Object
.
setPrototypeOf
||
({
__proto__
:
[]
}
instanceof
Array
&&
function
(
d
,
b
)
{
d
.
__proto__
=
b
;
})
||
function
(
d
,
b
)
{
for
(
var
p
in
b
)
if
(
b
.
hasOwnProperty
(
p
))
d
[
p
]
=
b
[
p
];
};
return
extendStatics
(
d
,
b
);
};
function
__extends
(
d
,
b
)
{
extendStatics
(
d
,
b
);
function
__
()
{
this
.
constructor
=
d
;
}
d
.
prototype
=
b
===
null
?
Object
.
create
(
b
)
:
(
__
.
prototype
=
b
.
prototype
,
new
__
());
}
var
Test1
=
(
function
(
_super
)
{
__extends
(
Test1
,
_super
);
function
Test1
()
{
var
_this
=
_super
.
call
(
this
)
||
this
;
var
rect
=
new
engine
.
Rect
();
rect
.
width
=
100
;
rect
.
height
=
100
;
_this
.
addChild
(
rect
);
return
_this
;
}
return
Test1
;
}(
engine
.
Container
));
function
index
(
options
)
{
var
instance
=
new
Test1
();
return
instance
;
}
module
.
exports
=
index
;
dist/customs/test1.js.map
deleted
100644 → 0
View file @
2d0906a1
This diff is collapsed.
Click to expand it.
dist/processes/base/play-sound.json
0 → 100644
View file @
adb9fcd2
{
"name"
:
"播放音频"
,
"desc"
:
"播放音频"
,
"props"
:
{
"asset"
:
{
"alias"
:
"素材ID"
,
"type"
:
"string"
},
"name"
:
{
"alias"
:
"实例名"
,
"type"
:
"string"
},
"volume"
:
{
"alias"
:
"音量"
,
"type"
:
"number"
},
"loop"
:
{
"alias"
:
"循环播放"
,
"type"
:
"boolean"
}
},
"output"
:
[
"complete"
],
"id"
:
"play-sound"
,
"script"
:
"var asset = engine.findVariable('asset', args, props);
\n
var name = engine.findVariable('name', args, props);
\n
var volume = engine.findVariable('volume', args, props);
\n
var loop = engine.findVariable('loop', args, props);
\n
engine.playSound(asset, {
\n
volume: volume,
\n
loop: loop,
\n
}, name);
\n
next('complete');
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
}
dist/processes/base/stop-sound.json
0 → 100644
View file @
adb9fcd2
{
"name"
:
"停止音频"
,
"desc"
:
"停止音频"
,
"props"
:
{
"name"
:
{
"alias"
:
"实例名"
,
"type"
:
"string"
}
},
"output"
:
[
"complete"
],
"id"
:
"stop-sound"
,
"script"
:
"var name = engine.findVariable('name', args, props);
\n
engine.stopSound(name);
\n
next('complete');
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
}
dist/processes/base/wait.json
View file @
adb9fcd2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"complete"
"complete"
],
],
"id"
:
"wait"
,
"id"
:
"wait"
,
"script"
:
"
setTimeout(function () {
\n
next('complete');
\n
}, args ? args.duration : props.
duration);
\n
"
,
"script"
:
"
var duration = engine.findVariable('duration', args, props);
\n
setTimeout(function () {
\n
next('complete');
\n
},
duration);
\n
"
,
"group"
:
"base"
,
"group"
:
"base"
,
"type"
:
"builtin"
"type"
:
"builtin"
}
}
libs/types.d.ts
View file @
adb9fcd2
...
@@ -12,6 +12,9 @@ export const VERSION = "1.0";
...
@@ -12,6 +12,9 @@ export const VERSION = "1.0";
export
const
devicePixelRatio
:
number
;
export
const
devicePixelRatio
:
number
;
export
function
playSound
(
uuid
,
options
=
{},
name
?);
export
function
stopSound
(
name
);
export
let
StageScaleMode
:
{
export
let
StageScaleMode
:
{
EXACT_FIT
:
string
;
EXACT_FIT
:
string
;
NO_BORDER
:
string
;
NO_BORDER
:
string
;
...
...
src/process/base/play-sound/index.ts
0 → 100644
View file @
adb9fcd2
/**
* Created by rockyl on 2019-11-16.
*/
const
asset
=
engine
.
findVariable
(
'asset'
,
args
,
props
);
const
name
=
engine
.
findVariable
(
'name'
,
args
,
props
);
const
volume
=
engine
.
findVariable
(
'volume'
,
args
,
props
);
const
loop
=
engine
.
findVariable
(
'loop'
,
args
,
props
);
engine
.
playSound
(
asset
,
{
volume
,
loop
,
},
name
);
next
(
'complete'
);
src/process/base/play-sound/meta.json
0 → 100644
View file @
adb9fcd2
{
"name"
:
"播放音频"
,
"desc"
:
"播放音频"
,
"props"
:
{
"asset"
:
{
"alias"
:
"素材ID"
,
"type"
:
"string"
},
"name"
:
{
"alias"
:
"实例名"
,
"type"
:
"string"
},
"volume"
:
{
"alias"
:
"音量"
,
"type"
:
"number"
},
"loop"
:
{
"alias"
:
"循环播放"
,
"type"
:
"boolean"
}
},
"output"
:
[
"complete"
]
}
\ No newline at end of file
src/process/base/stop-sound/index.ts
0 → 100644
View file @
adb9fcd2
/**
* Created by rockyl on 2019-11-16.
*/
const
name
=
engine
.
findVariable
(
'name'
,
args
,
props
);
engine
.
stopSound
(
name
);
next
(
'complete'
);
src/process/base/stop-sound/meta.json
0 → 100644
View file @
adb9fcd2
{
"name"
:
"停止音频"
,
"desc"
:
"停止音频"
,
"props"
:
{
"name"
:
{
"alias"
:
"实例名"
,
"type"
:
"string"
}
},
"output"
:
[
"complete"
]
}
\ No newline at end of file
src/process/base/wait/index.ts
View file @
adb9fcd2
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
* Created by rockyl on 2019-11-16.
* Created by rockyl on 2019-11-16.
*/
*/
const
duration
=
engine
.
findVariable
(
'duration'
,
args
,
props
);
setTimeout
(
function
(){
setTimeout
(
function
(){
next
(
'complete'
)
next
(
'complete'
)
},
args
?
args
.
duration
:
props
.
duration
);
},
duration
);
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