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
0859c7ff
Commit
0859c7ff
authored
Apr 28, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix HintNotification.tsx
parent
2aa3893b
Pipeline
#21407
passed with stages
in 18 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
src/ui/Duel/Message/HintNotification.tsx
src/ui/Duel/Message/HintNotification.tsx
+6
-6
src/ui/Mora.tsx
src/ui/Mora.tsx
+4
-3
No files found.
src/ui/Duel/Message/HintNotification.tsx
View file @
0859c7ff
...
@@ -11,12 +11,12 @@ const MsgWin = ygopro.StocGameMessage.MsgWin;
...
@@ -11,12 +11,12 @@ const MsgWin = ygopro.StocGameMessage.MsgWin;
const
NeosConfig
=
useConfig
();
const
NeosConfig
=
useConfig
();
export
const
HintNotification
=
()
=>
{
export
const
HintNotification
=
()
=>
{
const
hintState
=
matStore
.
hint
;
const
snap
=
useSnapshot
(
matStore
)
;
const
hintS
nap
=
useSnapshot
(
matStore
.
hint
)
;
const
hintS
tate
=
snap
.
hint
;
const
currentPhase
=
matStore
.
phase
.
currentPhase
;
const
currentPhase
=
snap
.
phase
.
currentPhase
;
const
waiting
=
matStore
.
waiting
;
const
waiting
=
snap
.
waiting
;
const
result
=
matStore
.
result
;
const
result
=
snap
.
result
;
const
navigate
=
useNavigate
();
const
navigate
=
useNavigate
();
...
@@ -30,7 +30,7 @@ export const HintNotification = () => {
...
@@ -30,7 +30,7 @@ export const HintNotification = () => {
placement
:
"
bottom
"
,
placement
:
"
bottom
"
,
});
});
}
}
},
[
hintS
nap
?
.
msg
]);
},
[
hintS
tate
.
msg
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
currentPhase
)
{
if
(
currentPhase
)
{
...
...
src/ui/Mora.tsx
View file @
0859c7ff
...
@@ -19,7 +19,8 @@ const {
...
@@ -19,7 +19,8 @@ const {
const
Mora
=
()
=>
{
const
Mora
=
()
=>
{
const
snapMora
=
useSnapshot
(
moraStore
);
const
snapMora
=
useSnapshot
(
moraStore
);
const
snapMatInitInfo
=
useSnapshot
(
matStore
.
initInfo
);
const
snapMat
=
useSnapshot
(
matStore
);
const
meLife
=
snapMat
.
initInfo
.
me
.
life
;
const
selectHandAble
=
snapMora
.
selectHandAble
;
const
selectHandAble
=
snapMora
.
selectHandAble
;
const
selectTpAble
=
snapMora
.
selectTpAble
;
const
selectTpAble
=
snapMora
.
selectTpAble
;
...
@@ -42,10 +43,10 @@ const Mora = () => {
...
@@ -42,10 +43,10 @@ const Mora = () => {
useEffect
(()
=>
{
useEffect
(()
=>
{
// 若对局已经开始,自动跳转
// 若对局已经开始,自动跳转
if
(
snapMatInitInfo
.
me
.
l
ife
>
0
)
{
if
(
meL
ife
>
0
)
{
navigate
(
`/duel/
${
player
}
/
${
passWd
}
/
${
ip
}
`
);
navigate
(
`/duel/
${
player
}
/
${
passWd
}
/
${
ip
}
`
);
}
}
},
[
snapMatInitInfo
.
m
e
]);
},
[
meLif
e
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
isAiMode
)
{
if
(
isAiMode
)
{
...
...
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