Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
2e0ebdf4
Commit
2e0ebdf4
authored
Mar 08, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换场景逻辑
parent
c0d3cd8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
VIZ.Package.Module/Control/Controller/ControlController.cs
+4
-4
VIZ.Package.Service/Viz/VizCommandService.cs
+11
-4
No files found.
VIZ.Package.Module/Control/Controller/ControlController.cs
View file @
2e0ebdf4
...
...
@@ -117,9 +117,9 @@ namespace VIZ.Package.Module
foreach
(
TransitionLogicLayerInfo
logicLayer
in
bgSceneInfo
.
TransitionLogic
.
LayerInfos
)
{
// SCENE*TITLES/2022/YC/BG1*STAGE*DIRECTOR*DJ_CUP SHOW $O
this
.
vizCommandService
.
DirectorShowWithTransitionLogic
(
conn
,
logicLayer
.
LayerIdentifier
,
ApplicationConstants
.
VIZ_TRANSITIONLOGIC_DEFAULT_OUT
);
this
.
vizCommandService
.
DirectorShowWithTransitionLogic
(
conn
,
bgScenePath
,
logicLayer
.
LayerIdentifier
,
ApplicationConstants
.
VIZ_TRANSITIONLOGIC_DEFAULT_OUT
);
// SCENE*TITLES/2022/YC/BG1*TREE*$DJ_CUP*FUNCTION*Toggle*reset_current INVOKE
this
.
vizCommandService
.
ToggleResetWithTransitionLogic
(
conn
,
logicLayer
.
LayerIdentifier
);
this
.
vizCommandService
.
ToggleResetWithTransitionLogic
(
conn
,
bgScenePath
,
logicLayer
.
LayerIdentifier
);
// 清理状态
logicLayer
.
SceneIdentifier
=
null
;
...
...
@@ -136,7 +136,7 @@ namespace VIZ.Package.Module
if
(!
string
.
Equals
(
newPageBase
.
BackgroundScene
,
sceneName
))
{
// SCENE*TITLES/2022/YC/BG1*TREE*$DJ_CUP*FUNCTION*Toggle*reset_current INVOKE
this
.
vizCommandService
.
ToggleResetWithTransitionLogic
(
conn
,
newPageBase
.
LayerIdentifier
);
this
.
vizCommandService
.
ToggleResetWithTransitionLogic
(
conn
,
bgScenePath
,
newPageBase
.
LayerIdentifier
);
}
// SCENE*TITLES/2022/YC/BG1*TREE*$DJ_CUP*FUNCTION*Toggle*object SET GEOM*TITLES/2022/YC/YC_CUP
...
...
@@ -160,7 +160,7 @@ namespace VIZ.Package.Module
if
(
isUsed
&&
string
.
Equals
(
newPageBase
.
BackgroundScene
,
sceneName
))
{
// RENDERER*MAIN_LAYER*STAGE*DIRECTOR*DJ_CUP SHOW $IN
this
.
vizCommandService
.
DirectorShowWithTransitionLogic
(
conn
,
newPageBase
.
LayerIdentifier
,
newPageBase
.
StateIdentifier
);
this
.
vizCommandService
.
DirectorShowWithTransitionLogic
(
conn
,
bgScenePath
,
newPageBase
.
LayerIdentifier
,
newPageBase
.
StateIdentifier
);
// RENDERER*MAIN_LAYER*TREE*$DJ_CUP*FUNCTION*Toggle*switch INVOKE
this
.
vizCommandService
.
ToggleSwitchWithTransitionLogic
(
conn
,
newPageBase
);
...
...
VIZ.Package.Service/Viz/VizCommandService.cs
View file @
2e0ebdf4
...
...
@@ -347,18 +347,21 @@ namespace VIZ.Package.Service
/// <param name="conn">连接</param>
/// <param name="layer">逻辑层</param>
/// <param name="state">状态</param>
public
void
DirectorShowWithTransitionLogic
(
ConnModel
conn
,
string
layer
,
string
state
)
public
void
DirectorShowWithTransitionLogic
(
ConnModel
conn
,
string
bgScenePath
,
string
layer
,
string
state
)
{
if
(
conn
==
null
)
throw
new
ArgumentNullException
(
nameof
(
conn
));
if
(
string
.
IsNullOrWhiteSpace
(
bgScenePath
))
throw
new
ArgumentNullException
(
nameof
(
bgScenePath
));
if
(
string
.
IsNullOrWhiteSpace
(
layer
))
throw
new
ArgumentNullException
(
nameof
(
layer
));
if
(
string
.
IsNullOrWhiteSpace
(
state
))
throw
new
ArgumentNullException
(
nameof
(
state
));
conn
.
EndpointManager
.
Send
(
$"
RENDERER*MAIN_LAYER*STAGE*DIRECTOR*
{
layer
}
SHOW $
{
state
}
"
);
conn
.
EndpointManager
.
Send
(
$"
SCENE*
{
bgScenePath
}
*STAGE*DIRECTOR*P
{
layer
}
SHOW $
{
state
}
"
);
}
/// <summary>
...
...
@@ -442,16 +445,20 @@ namespace VIZ.Package.Service
/// 触发重置
/// </summary>
/// <param name="conn">连接</param>
/// <param name="bgScenePath">逻辑场景</param>
/// <param name="logicLayer">切换逻辑层</param>
public
void
ToggleResetWithTransitionLogic
(
ConnModel
conn
,
string
logicLayer
)
public
void
ToggleResetWithTransitionLogic
(
ConnModel
conn
,
string
bgScenePath
,
string
logicLayer
)
{
if
(
conn
==
null
)
throw
new
ArgumentNullException
(
nameof
(
conn
));
if
(
string
.
IsNullOrWhiteSpace
(
bgScenePath
))
throw
new
ArgumentNullException
(
nameof
(
bgScenePath
));
if
(
string
.
IsNullOrWhiteSpace
(
logicLayer
))
throw
new
ArgumentNullException
(
nameof
(
logicLayer
));
conn
.
EndpointManager
.
Send
(
$"
RENDERER*MAIN_LAYER
*TREE*$
{
logicLayer
}
*FUNCTION*Toggle*reset_current INVOKE"
);
conn
.
EndpointManager
.
Send
(
$"
SCENE*
{
bgScenePath
}
*TREE*$
{
logicLayer
}
*FUNCTION*Toggle*reset_current INVOKE"
);
}
/// <summary>
...
...
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