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
0b32f9ac
Commit
0b32f9ac
authored
Jan 08, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bf7d3d40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/service/duel/selectOption.ts
src/service/duel/selectOption.ts
+10
-1
src/ui/Duel/optionModal.tsx
src/ui/Duel/optionModal.tsx
+1
-1
No files found.
src/service/duel/selectOption.ts
View file @
0b32f9ac
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setOptionModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchOptionMeta
}
from
"
../../reducers/duel/modalSlice
"
;
import
{
AppDispatch
}
from
"
../../store
"
;
import
{
AppDispatch
}
from
"
../../store
"
;
import
MsgSelectOption
=
ygopro
.
StocGameMessage
.
MsgSelectOption
;
import
MsgSelectOption
=
ygopro
.
StocGameMessage
.
MsgSelectOption
;
export
default
(
selectOption
:
MsgSelectOption
,
dispatch
:
AppDispatch
)
=>
{
export
default
(
selectOption
:
MsgSelectOption
,
dispatch
:
AppDispatch
)
=>
{
console
.
log
(
selectOption
);
const
player
=
selectOption
.
player
;
const
options
=
selectOption
.
options
;
for
(
let
option
of
options
)
{
dispatch
(
fetchOptionMeta
(
option
));
}
dispatch
(
setOptionModalIsOpen
(
true
));
};
};
src/ui/Duel/optionModal.tsx
View file @
0b32f9ac
...
@@ -21,7 +21,7 @@ const OptionModal = () => {
...
@@ -21,7 +21,7 @@ const OptionModal = () => {
return
(
return
(
<
Modal
<
Modal
title=
"请选择
表示形式
"
title=
"请选择
需要发动的效果
"
open=
{
isOpen
}
open=
{
isOpen
}
closable=
{
false
}
closable=
{
false
}
footer=
{
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