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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
love_飞影
Neos
Commits
651818a2
Commit
651818a2
authored
Apr 05, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
201e3158
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
13 deletions
+19
-13
src/reducers/duel/hintSlice.ts
src/reducers/duel/hintSlice.ts
+1
-1
src/service/duel/hint.ts
src/service/duel/hint.ts
+1
-1
src/service/duel/spSummoned.ts
src/service/duel/spSummoned.ts
+1
-1
src/ui/Duel/checkCardModal.tsx
src/ui/Duel/checkCardModal.tsx
+4
-3
src/ui/Duel/checkCardModalV2.tsx
src/ui/Duel/checkCardModalV2.tsx
+4
-3
src/ui/Duel/checkCardModalV3.tsx
src/ui/Duel/checkCardModalV3.tsx
+4
-3
src/ui/Duel/yesNoModal.tsx
src/ui/Duel/yesNoModal.tsx
+4
-1
No files found.
src/reducers/duel/hintSlice.ts
View file @
651818a2
...
...
@@ -64,7 +64,7 @@ export const fetchEsHintMeta = createAsyncThunk(
const
location
=
param
.
location
;
if
(
param
.
cardID
)
{
const
cardMeta
=
await
fetchCard
(
param
.
cardID
);
const
cardMeta
=
await
fetchCard
(
param
.
cardID
,
true
);
return
{
originMsg
,
cardMeta
,
location
};
}
else
{
...
...
src/service/duel/hint.ts
View file @
651818a2
...
...
@@ -18,7 +18,7 @@ export default (hint: MsgHint, dispatch: AppDispatch) => {
break
;
}
case
MsgHint
.
HintType
.
HINT_SELECTMSG
:
{
dispatch
(
fetchSelectHintMeta
({
selectHintData
:
hint
.
hint_data
}));
dispatch
(
fetchSelectHintMeta
({
selectHintData
:
hint
.
hint_data
,
esHint
:
""
}));
break
;
}
default
:
{
...
...
src/service/duel/spSummoned.ts
View file @
651818a2
...
...
@@ -6,5 +6,5 @@ export default (
_
:
ygopro
.
StocGameMessage
.
MsgSpSummoned
,
dispatch
:
AppDispatch
)
=>
{
dispatch
(
fetchEsHintMeta
({
originMsg
:
160
4
}));
dispatch
(
fetchEsHintMeta
({
originMsg
:
160
6
}));
};
src/ui/Duel/checkCardModal.tsx
View file @
651818a2
...
...
@@ -34,8 +34,9 @@ const CheckCardModal = () => {
const
cancelResponse
=
useAppSelector
(
selectCheckCardModalCacnelResponse
);
const
[
response
,
setResponse
]
=
useState
<
number
[]
>
([]);
const
defaultValue
:
number
[]
=
[];
const
selectHintMsg
=
useAppSelector
(
selectHint
)?.
esSelectHint
||
"
请选择卡片
"
;
const
hint
=
useAppSelector
(
selectHint
);
const
preHintMsg
=
hint
?.
esHint
||
""
;
const
selectHintMsg
=
hint
?.
esSelectHint
||
"
请选择卡片
"
;
// TODO: 这里可以考虑更好地封装
const
sendResponseHandler
=
(
...
...
@@ -58,7 +59,7 @@ const CheckCardModal = () => {
return
(
<
DragModal
title=
{
`${selectHintMsg} ${min}-${max}`
}
title=
{
`${
preHintMsg} ${
selectHintMsg} ${min}-${max}`
}
open=
{
isOpen
}
closable=
{
false
}
footer=
{
...
...
src/ui/Duel/checkCardModalV2.tsx
View file @
651818a2
...
...
@@ -33,8 +33,9 @@ const CheckCardModalV2 = () => {
);
const
selectedOptions
=
useAppSelector
(
selectCheckCardModalV2SelectedOptions
);
const
responseable
=
useAppSelector
(
selectCheckCardModalV2ResponseAble
);
const
selectHintMsg
=
useAppSelector
(
selectHint
)?.
esSelectHint
||
"
请选择卡片
"
;
const
hint
=
useAppSelector
(
selectHint
);
const
preHintMsg
=
hint
?.
esHint
||
""
;
const
selectHintMsg
=
hint
?.
esSelectHint
||
"
请选择卡片
"
;
const
onFinishOrCancel
=
()
=>
{
sendSelectUnselectCardResponse
({
cancel_or_finish
:
true
});
...
...
@@ -45,7 +46,7 @@ const CheckCardModalV2 = () => {
return
(
<
DragModal
title=
{
`${selectHintMsg} ${min}-${max}`
}
title=
{
`${
preHintMsg} ${
selectHintMsg} ${min}-${max}`
}
open=
{
isOpen
}
closable=
{
false
}
footer=
{
...
...
src/ui/Duel/checkCardModalV3.tsx
View file @
651818a2
...
...
@@ -33,8 +33,9 @@ const CheckCardModalV3 = () => {
.
concat
(
selectedOptions
)
.
map
((
option
)
=>
option
.
level2
)
.
reduce
((
sum
,
current
)
=>
sum
+
current
,
0
);
const
selectHintMsg
=
useAppSelector
(
selectHint
)?.
esSelectHint
||
"
请选择卡片
"
;
const
hint
=
useAppSelector
(
selectHint
);
const
preHintMsg
=
hint
?.
esHint
||
""
;
const
selectHintMsg
=
hint
?.
esSelectHint
||
"
请选择卡片
"
;
const
responseable
=
(
overflow
...
...
@@ -53,7 +54,7 @@ const CheckCardModalV3 = () => {
return
(
<
DragModal
title=
{
`${selectHintMsg} ${min}-${max}`
}
title=
{
`${
preHintMsg} ${
selectHintMsg} ${min}-${max}`
}
open=
{
isOpen
}
closable=
{
false
}
footer=
{
...
...
src/ui/Duel/yesNoModal.tsx
View file @
651818a2
...
...
@@ -9,15 +9,18 @@ import {
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
DragModal
from
"
./dragModal
"
;
import
{
selectHint
}
from
"
../../reducers/duel/hintSlice
"
;
const
YesNoModal
=
()
=>
{
const
dispatch
=
store
.
dispatch
;
const
isOpen
=
useAppSelector
(
selectYesNoModalIsOpen
);
const
msg
=
useAppSelector
(
selectYesNOModalMsg
);
const
hint
=
useAppSelector
(
selectHint
);
const
preHintMsg
=
hint
?.
esHint
||
""
;
return
(
<
DragModal
title=
{
msg
}
title=
{
`${preHintMsg} ${msg}`
}
open=
{
isOpen
}
closable=
{
false
}
footer=
{
...
...
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