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
9e54772c
Commit
9e54772c
authored
Jul 24, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
b6f7fa37
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+2
-2
air.js
assets/middleLayer_for_debug/script/air.js
+11
-0
middleLayer.ts
assets/middleLayer_for_debug/script/middleLayer.ts
+6
-15
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
9e54772c
...
@@ -4880,8 +4880,8 @@
...
@@ -4880,8 +4880,8 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "
预加载
",
"_string": "
打开相册
",
"_N$string": "
预加载
",
"_N$string": "
打开相册
",
"_fontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_lineHeight": 40,
"_enableWrapText": false,
"_enableWrapText": false,
...
...
assets/middleLayer_for_debug/script/air.js
View file @
9e54772c
...
@@ -40,6 +40,7 @@ export function initAir(_this) {
...
@@ -40,6 +40,7 @@ export function initAir(_this) {
takePictureCallBack
:
null
,
takePictureCallBack
:
null
,
configurationPortraitCallback
:
null
,
configurationPortraitCallback
:
null
,
configurationLandscapeCallback
:
null
,
configurationLandscapeCallback
:
null
,
openPhotoAlbumCallback
:
null
,
startBuyToAppStoreCallBack
:
null
,
startBuyToAppStoreCallBack
:
null
,
recognitionCameraCallBack
:
null
,
recognitionCameraCallBack
:
null
,
testCallBack
:
null
,
testCallBack
:
null
,
...
@@ -376,6 +377,16 @@ export function initAir(_this) {
...
@@ -376,6 +377,16 @@ export function initAir(_this) {
};
};
window
.
courseware
.
callOcMethod
(
"
onConfigurationLandscape
"
,
params
);
window
.
courseware
.
callOcMethod
(
"
onConfigurationLandscape
"
,
params
);
},
},
openPhotoAlbum
(
params
=
{},
callback
)
{
_this
.
log
(
`===成功调用openPhotoAlbum===
${
JSON
.
stringify
(
params
)}
`
);
window
.
air
.
openPhotoAlbumCallback
=
(
res
)
=>
{
res
=
typeof
(
res
)
==
'
string
'
?
res
:
JSON
.
stringify
(
res
);
_this
.
log
(
`===成功调用openPhotoAlbumCallback=== res ==
${
res
}
`
);
callback
&&
callback
(
res
);
window
.
air
.
openPhotoAlbumCallback
=
null
;
};
window
.
courseware
.
callOcMethod
(
"
openPhotoAlbum
"
,
params
);
},
startBuyToAppStore
(
params
=
{},
callback
)
{
startBuyToAppStore
(
params
=
{},
callback
)
{
// 苹果支付
// 苹果支付
_this
.
log
(
`===成功调用startBuyToAppStore===`
);
_this
.
log
(
`===成功调用startBuyToAppStore===`
);
...
...
assets/middleLayer_for_debug/script/middleLayer.ts
View file @
9e54772c
...
@@ -688,22 +688,13 @@ export default class NewClass extends middleLayerBase {
...
@@ -688,22 +688,13 @@ export default class NewClass extends middleLayerBase {
const
BtnLoad
=
cc
.
find
(
'
middleLayer/ui/BtnLoad
'
);
const
BtnLoad
=
cc
.
find
(
'
middleLayer/ui/BtnLoad
'
);
BtnLoad
.
on
(
'
click
'
,
()
=>
{
BtnLoad
.
on
(
'
click
'
,
()
=>
{
// 测试获取设备信息
// 测试获取设备信息
// (<any>window).courseware.getEngineInfo(res => {
(
<
any
>
window
).
courseware
.
openPhotoAlbum
(
res
=>
{
// this.log('--------getEngineInfo返回结果---------');
console
.
log
(
'
--------getEngineInfo返回结果---------
'
);
// this.log(res)
console
.
log
(
res
)
// this.log('------------------------------');
console
.
log
(
'
------------------------------
'
);
// });
this
.
showLog
(
res
);
});
// 测试预加载资源
this
.
preloadCount
=
0
;
this
.
loadedCount
=
0
;
cc
.
find
(
"
middleLayer/ui/ProgressLabel
"
).
active
=
true
;
cc
.
find
(
'
middleLayer/ui/loadingProgress
'
).
active
=
true
;
// this.preloadAll();
// this.preloadSourceImman();
this
.
preloadOxfordScene
();
});
});
const
btnClose
=
cc
.
find
(
'
middleLayer/ConsoleNode/BtnClose
'
);
const
btnClose
=
cc
.
find
(
'
middleLayer/ConsoleNode/BtnClose
'
);
...
...
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