Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbx_Pronunciation
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
Sbx_Pronunciation
Commits
1bf0a326
Commit
1bf0a326
authored
Dec 08, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
9613e171
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+1
-1
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+7
-3
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
1bf0a326
...
@@ -744,7 +744,7 @@
...
@@ -744,7 +744,7 @@
"_mute": false,
"_mute": false,
"_isFullscreen": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom":
fals
e,
"_stayOnBottom":
tru
e,
"videoPlayerEvent": [],
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_N$keepAspectRatio": true,
"_id": "e7ihO31y5FqJ0/0nd7CE1N"
"_id": "e7ihO31y5FqJ0/0nd7CE1N"
...
...
play/assets/tmpGame/script/GameLogic.js
View file @
1bf0a326
...
@@ -79,7 +79,9 @@ export default class GameLogic {
...
@@ -79,7 +79,9 @@ export default class GameLogic {
initBg
()
{
initBg
()
{
console
.
log
(
this
.
g_formData
.
theme
)
console
.
log
(
this
.
g_formData
.
theme
)
const
bgNode_A
=
cc
.
find
(
'
Canvas/bgMain/bg_A
'
);
const
bgNode_A
=
cc
.
find
(
'
Canvas/bgMain/bg_A
'
);
bgNode_A
.
scale
=
this
.
g_systemOption
.
mapScaleMin
;
// bgNode_A.scale = this.g_systemOption.mapScaleMin;
bgNode_A
.
width
=
cc
.
winSize
.
width
bgNode_A
.
height
=
cc
.
winSize
.
height
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
bgNode_A
.
active
=
true
;
bgNode_A
.
active
=
true
;
}
else
{
}
else
{
...
@@ -87,8 +89,10 @@ export default class GameLogic {
...
@@ -87,8 +89,10 @@ export default class GameLogic {
}
}
const
bgNode_D
=
cc
.
find
(
'
Canvas/bgMain/bg_D
'
);
const
bgNode_D
=
cc
.
find
(
'
Canvas/bgMain/bg_D
'
);
bgNode_D
.
scale
=
this
.
g_systemOption
.
mapScaleMin
;
// bgNode_D.scale = this.g_systemOption.mapScaleMin;
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
bgNode_D
.
width
=
cc
.
winSize
.
width
bgNode_D
.
height
=
cc
.
winSize
.
height
if
(
this
.
g_formData
.
theme
==
"
D
"
)
{
bgNode_D
.
active
=
true
;
bgNode_D
.
active
=
true
;
}
else
{
}
else
{
bgNode_D
.
active
=
false
;
bgNode_D
.
active
=
false
;
...
...
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