Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
middleLayer_for_debug
Commits
11878fbb
Commit
11878fbb
authored
Jul 13, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
b2460c41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+1
-1
middleLayer.ts
assets/middleLayer_for_debug/script/middleLayer.ts
+17
-4
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
11878fbb
...
...
@@ -5546,7 +5546,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
129.
145
,
129.
722
,
-124.817,
0,
0,
...
...
assets/middleLayer_for_debug/script/middleLayer.ts
View file @
11878fbb
...
...
@@ -555,11 +555,24 @@ export default class NewClass extends middleLayerBase {
// "book_id": "opw1"
// });
const
courseIdNode
=
cc
.
find
(
'
middleLayer/ui/courseId
'
);
const
str
=
courseIdNode
.
getComponent
(
cc
.
EditBox
).
string
;
const
arr
=
str
.
split
(
"
,
"
);
const
pms
=
{};
if
(
arr
[
0
]
!=
undefined
&&
arr
[
0
]
!=
null
)
{
pms
[
"
x
"
]
=
arr
[
0
]
}
if
(
arr
[
1
]
!=
undefined
&&
arr
[
1
]
!=
null
)
{
pms
[
"
y
"
]
=
arr
[
1
]
}
if
(
arr
[
2
]
!=
undefined
&&
arr
[
2
]
!=
null
)
{
pms
[
"
width
"
]
=
arr
[
2
]
}
if
(
arr
[
3
]
!=
undefined
&&
arr
[
3
]
!=
null
)
{
pms
[
"
height
"
]
=
arr
[
3
]
}
this
.
hideUI
();
(
<
any
>
window
).
courseware
.
openRecognitionCamera
({
x
:
0
,
y
:
0
,
// height: 8, width: 8
},
()
=>
{
(
<
any
>
window
).
courseware
.
openRecognitionCamera
(
pms
,
()
=>
{
});
});
...
...
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