Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-process-lib
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-process-lib
Commits
636a22bd
Commit
636a22bd
authored
Nov 18, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充
parent
1695a8f5
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
63 additions
and
10 deletions
+63
-10
pop-dialog.json
dist/base/pop-dialog.json
+1
-1
push-dialog.json
dist/base/push-dialog.json
+1
-1
push-scene.json
dist/base/push-scene.json
+1
-1
set-mouse-enabled.json
dist/base/set-mouse-enabled.json
+22
-0
duiba-api.json
dist/duiba/duiba-api.json
+3
-3
goto-record.json
dist/duiba/goto-record.json
+1
-0
compiler.js
scripts/compiler.js
+3
-1
index.ts
src/base/pop-dialog/index.ts
+0
-0
meta.json
src/base/pop-dialog/meta.json
+0
-0
index.ts
src/base/push-dialog/index.ts
+0
-0
meta.json
src/base/push-dialog/meta.json
+0
-0
index.ts
src/base/push-scene/index.ts
+0
-0
meta.json
src/base/push-scene/meta.json
+0
-0
index.ts
src/base/set-mouse-enabled/index.ts
+9
-0
meta.json
src/base/set-mouse-enabled/meta.json
+18
-0
meta.json
src/duiba/duiba-api/meta.json
+3
-3
meta.json
src/duiba/goto-record/meta.json
+1
-0
No files found.
dist/base/
close
-dialog.json
→
dist/base/
pop
-dialog.json
View file @
636a22bd
...
...
@@ -11,7 +11,7 @@
"output"
:
[
"complete"
],
"id"
:
"
close
-dialog"
,
"id"
:
"
pop
-dialog"
,
"script"
:
"if (props.closeAll) {
\n
engine.gameStage.popupContainer.popAll();
\n
}
\n
else {
\n
engine.gameStage.popupContainer.pop();
\n
}
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
...
...
dist/base/
show
-dialog.json
→
dist/base/
push
-dialog.json
View file @
636a22bd
...
...
@@ -15,7 +15,7 @@
"output"
:
[
"complete"
],
"id"
:
"
show
-dialog"
,
"id"
:
"
push
-dialog"
,
"script"
:
"if (!props.viewName) {
\n
console.log('没有设置视图名');
\n
next('exception', '没有设置视图名');
\n
}
\n
else {
\n
var gameStage = engine.gameStage;
\n
var viewConfig = gameStage.getViewConfigByName(props.viewName);
\n
if (viewConfig) {
\n
var view = engine.instantiate(viewConfig);
\n
gameStage.popupContainer.push(view, { center: props.center || true });
\n
}
\n
else {
\n
console.error('view config not exists');
\n
}
\n
}
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
...
...
dist/base/
show
-scene.json
→
dist/base/
push
-scene.json
View file @
636a22bd
...
...
@@ -10,7 +10,7 @@
"output"
:
[
"complete"
],
"id"
:
"
show
-scene"
,
"id"
:
"
push
-scene"
,
"script"
:
"if (!props.viewName) {
\n
console.log('没有设置视图名');
\n
next('exception', '没有设置视图名');
\n
}
\n
else {
\n
var gameStage = engine.gameStage;
\n
var viewConfig = gameStage.getViewConfigByName(props.viewName);
\n
if (viewConfig) {
\n
var view = engine.instantiate(viewConfig);
\n
gameStage.sceneContainer.push(view);
\n
}
\n
else {
\n
console.error('view config not exists');
\n
}
\n
}
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
...
...
dist/base/set-mouse-enabled.json
0 → 100644
View file @
636a22bd
{
"name"
:
"设置可否交互"
,
"desc"
:
"设置可否交互"
,
"props"
:
{
"target"
:
{
"type"
:
"node"
,
"alias"
:
"目标节点"
},
"enabled"
:
{
"type"
:
"boolean"
,
"alias"
:
"可否交互"
,
"default"
:
false
}
},
"output"
:
[
"success"
],
"id"
:
"set-mouse-enabled"
,
"script"
:
"var targetNode = target || props.target;
\n
if (targetNode) {
\n
targetNode.mouseEnabled = props.enabled;
\n
next('success');
\n
}
\n
"
,
"group"
:
"base"
,
"type"
:
"builtin"
}
dist/duiba/duiba-api.json
View file @
636a22bd
...
...
@@ -86,8 +86,8 @@
}
},
"props"
:
{
"url"
:
"$_linked_$"
,
"method"
:
"$_linked_$"
"url"
:
{}
,
"method"
:
{}
},
"output"
:
{
"success"
:
[
...
...
@@ -155,7 +155,7 @@
}
},
"props"
:
{
"name"
:
"$_linked_$"
"name"
:
{}
},
"output"
:
{}
}
...
...
dist/duiba/goto-record.json
View file @
636a22bd
{
"name"
:
"跳转到中奖记录"
,
"desc"
:
"跳转到中奖记录页面"
,
"props"
:
{},
"output"
:
[
"success"
...
...
scripts/compiler.js
View file @
636a22bd
...
...
@@ -25,8 +25,10 @@ function compileProcess(sourcePath, output, isBuiltin) {
}
const
outputPath
=
path
.
join
(
output
,
sourcePath
+
'.json'
);
fs
.
ensureDir
(
path
.
dirname
(
outputPath
));
fs
.
ensureDir
Sync
(
path
.
dirname
(
outputPath
));
fs
.
writeJsonSync
(
outputPath
,
meta
,
{
spaces
:
' '
});
console
.
log
(
`compile process [
${
sourcePath
}
] successfully!`
);
}
const
[
_
,
__
,
sourcePath
,
outputPath
=
'dist'
,
builtin
]
=
process
.
argv
;
...
...
src/base/
close
-dialog/index.ts
→
src/base/
pop
-dialog/index.ts
View file @
636a22bd
File moved
src/base/
close
-dialog/meta.json
→
src/base/
pop
-dialog/meta.json
View file @
636a22bd
File moved
src/base/
show
-dialog/index.ts
→
src/base/
push
-dialog/index.ts
View file @
636a22bd
File moved
src/base/
show
-dialog/meta.json
→
src/base/
push
-dialog/meta.json
View file @
636a22bd
File moved
src/base/
show
-scene/index.ts
→
src/base/
push
-scene/index.ts
View file @
636a22bd
File moved
src/base/
show
-scene/meta.json
→
src/base/
push
-scene/meta.json
View file @
636a22bd
File moved
src/base/set-mouse-enabled/index.ts
0 → 100644
View file @
636a22bd
/**
* Created by rockyl on 2019-11-16.
*/
let
targetNode
=
target
||
props
.
target
;
if
(
targetNode
){
targetNode
.
mouseEnabled
=
props
.
enabled
;
next
(
'success'
)
}
\ No newline at end of file
src/base/set-mouse-enabled/meta.json
0 → 100644
View file @
636a22bd
{
"name"
:
"设置可否交互"
,
"desc"
:
"设置可否交互"
,
"props"
:
{
"target"
:
{
"type"
:
"node"
,
"alias"
:
"目标节点"
},
"enabled"
:
{
"type"
:
"boolean"
,
"alias"
:
"可否交互"
,
"default"
:
false
}
},
"output"
:
[
"success"
]
}
\ No newline at end of file
src/duiba/duiba-api/meta.json
View file @
636a22bd
...
...
@@ -86,8 +86,8 @@
}
},
"props"
:
{
"url"
:
"$_linked_$"
,
"method"
:
"$_linked_$"
"url"
:
{}
,
"method"
:
{}
},
"output"
:
{
"success"
:
[
...
...
@@ -155,7 +155,7 @@
}
},
"props"
:
{
"name"
:
"$_linked_$"
"name"
:
{}
},
"output"
:
{}
}
...
...
src/duiba/goto-record/meta.json
View file @
636a22bd
{
"name"
:
"跳转到中奖记录"
,
"desc"
:
"跳转到中奖记录页面"
,
"props"
:
{
},
...
...
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