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
7abeaded
Commit
7abeaded
authored
Dec 31, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update small
parent
a29adad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
src/ui/Duel/magics.tsx
src/ui/Duel/magics.tsx
+16
-1
src/ui/Duel/monsters.tsx
src/ui/Duel/monsters.tsx
+19
-1
No files found.
src/ui/Duel/magics.tsx
View file @
7abeaded
...
@@ -7,7 +7,12 @@ import { store } from "../../store";
...
@@ -7,7 +7,12 @@ import { store } from "../../store";
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useRef
}
from
"
react
"
;
import
{
sendSelectPlaceResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
sendSelectPlaceResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
clearMagicSelectInfo
}
from
"
../../reducers/duel/mod
"
;
import
{
clearMagicSelectInfo
,
setCardModalImgUrl
,
setCardModalIsOpen
,
setCardModalText
,
}
from
"
../../reducers/duel/mod
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
// TODO: use config
// TODO: use config
...
@@ -51,6 +56,16 @@ const CMagic = (props: { state: Magic }) => {
...
@@ -51,6 +56,16 @@ const CMagic = (props: { state: Magic }) => {
sendSelectPlaceResponse
(
state
.
selectInfo
.
response
);
sendSelectPlaceResponse
(
state
.
selectInfo
.
response
);
dispatch
(
clearMagicSelectInfo
(
0
));
dispatch
(
clearMagicSelectInfo
(
0
));
dispatch
(
clearMagicSelectInfo
(
1
));
dispatch
(
clearMagicSelectInfo
(
1
));
}
else
if
(
state
.
occupant
)
{
dispatch
(
setCardModalText
([
state
.
occupant
.
text
.
name
,
state
.
occupant
.
text
.
desc
])
);
dispatch
(
setCardModalImgUrl
(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/
${
state
.
occupant
.
id
}
.jpg`
)
);
dispatch
(
setCardModalIsOpen
(
true
));
}
}
},
},
planeRef
,
planeRef
,
...
...
src/ui/Duel/monsters.tsx
View file @
7abeaded
...
@@ -6,7 +6,12 @@ import { Monster } from "../../reducers/duel/util";
...
@@ -6,7 +6,12 @@ import { Monster } from "../../reducers/duel/util";
import
"
react-babylonjs
"
;
import
"
react-babylonjs
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useRef
}
from
"
react
"
;
import
{
sendSelectPlaceResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
sendSelectPlaceResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
clearMonsterSelectInfo
}
from
"
../../reducers/duel/mod
"
;
import
{
clearMonsterSelectInfo
,
setCardModalImgUrl
,
setCardModalIsOpen
,
setCardModalText
,
}
from
"
../../reducers/duel/mod
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectMeMonsters
}
from
"
../../reducers/duel/monstersSlice
"
;
import
{
selectMeMonsters
}
from
"
../../reducers/duel/monstersSlice
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
...
@@ -56,6 +61,19 @@ const CommonMonster = (props: { state: Monster }) => {
...
@@ -56,6 +61,19 @@ const CommonMonster = (props: { state: Monster }) => {
sendSelectPlaceResponse
(
props
.
state
.
selectInfo
.
response
);
sendSelectPlaceResponse
(
props
.
state
.
selectInfo
.
response
);
dispatch
(
clearMonsterSelectInfo
(
0
));
dispatch
(
clearMonsterSelectInfo
(
0
));
dispatch
(
clearMonsterSelectInfo
(
1
));
dispatch
(
clearMonsterSelectInfo
(
1
));
}
else
if
(
props
.
state
.
occupant
)
{
dispatch
(
setCardModalText
([
props
.
state
.
occupant
.
text
.
name
,
props
.
state
.
occupant
.
text
.
desc
,
])
);
dispatch
(
setCardModalImgUrl
(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/
${
props
.
state
.
occupant
.
id
}
.jpg`
)
);
dispatch
(
setCardModalIsOpen
(
true
));
}
}
},
},
planeRef
,
planeRef
,
...
...
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