Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
a7340d82
Commit
a7340d82
authored
Apr 23, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/reset' into 'main'
修复无法结束回合的问题。 See merge request
!364
parents
c2dd78e6
80d2c890
Pipeline
#26665
passed with stages
in 9 minutes and 39 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/ui/Duel/PlayMat/Menu/index.tsx
src/ui/Duel/PlayMat/Menu/index.tsx
+5
-3
No files found.
src/ui/Duel/PlayMat/Menu/index.tsx
View file @
a7340d82
...
@@ -33,7 +33,6 @@ import styles from "./index.module.scss";
...
@@ -33,7 +33,6 @@ import styles from "./index.module.scss";
import
PhaseType
=
ygopro
.
StocGameMessage
.
MsgNewPhase
.
PhaseType
;
import
PhaseType
=
ygopro
.
StocGameMessage
.
MsgNewPhase
.
PhaseType
;
import
{
openChatBox
}
from
"
../ChatBox
"
;
import
{
openChatBox
}
from
"
../ChatBox
"
;
const
{
phase
:
store
}
=
matStore
;
const
{
useToken
}
=
theme
;
const
{
useToken
}
=
theme
;
const
clearAllIdleInteractivities
=
()
=>
{
const
clearAllIdleInteractivities
=
()
=>
{
for
(
const
card
of
cardStore
.
inner
)
{
for
(
const
card
of
cardStore
.
inner
)
{
...
@@ -63,8 +62,11 @@ const initialPhaseBind: [
...
@@ -63,8 +62,11 @@ const initialPhaseBind: [
];
];
export
const
Menu
=
()
=>
{
export
const
Menu
=
()
=>
{
const
{
enableBp
,
enableM2
,
enableEp
,
currentPhase
}
=
useSnapshot
(
store
);
const
{
const
{
currentPlayer
,
chainSetting
}
=
useSnapshot
(
matStore
);
currentPlayer
,
chainSetting
,
phase
:
{
enableBp
,
enableM2
,
enableEp
,
currentPhase
},
}
=
useSnapshot
(
matStore
);
const
[
phaseBind
,
setPhaseBind
]
=
useState
(
initialPhaseBind
);
const
[
phaseBind
,
setPhaseBind
]
=
useState
(
initialPhaseBind
);
const
[
phaseSwitchItems
,
setPhaseSwitchItems
]
=
useState
<
MenuProps
[
"
items
"
]
>
(
const
[
phaseSwitchItems
,
setPhaseSwitchItems
]
=
useState
<
MenuProps
[
"
items
"
]
>
(
[],
[],
...
...
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