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
468bd07b
Commit
468bd07b
authored
May 10, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update interface Option
parent
892fb37f
Pipeline
#21578
passed with stages
in 16 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/stores/matStore/methods/fetchCheckCardMeta.ts
src/stores/matStore/methods/fetchCheckCardMeta.ts
+2
-2
src/stores/messageStore/types.ts
src/stores/messageStore/types.ts
+1
-1
src/ui/Duel/Message/SelectActionsModal.tsx
src/ui/Duel/Message/SelectActionsModal.tsx
+6
-6
No files found.
src/stores/matStore/methods/fetchCheckCardMeta.ts
View file @
468bd07b
...
...
@@ -27,13 +27,13 @@ export const fetchCheckCardMeta = async (
?
code
:
matStore
.
in
(
location
.
location
).
of
(
controller
)[
location
.
sequence
]
?.
occupant
?.
id
||
0
;
const
meta
=
await
fetchCard
(
code
);
const
meta
=
await
fetchCard
(
newID
);
const
effectDesc
=
effectDescCode
?
getCardStr
(
meta
,
effectDescCode
&
0xf
)
:
undefined
;
const
newOption
=
{
code
:
newID
,
meta
,
location
:
location
.
toObject
(),
level1
,
level2
,
...
...
src/stores/messageStore/types.ts
View file @
468bd07b
...
...
@@ -3,7 +3,7 @@ type CardLocation = ReturnType<typeof ygopro.CardLocation.prototype.toObject>;
interface
Option
{
// card id
code
:
number
;
meta
:
CardMeta
;
location
?:
CardLocation
;
// 效果
effectDesc
?:
string
;
...
...
src/ui/Duel/Message/SelectActionsModal.tsx
View file @
468bd07b
...
...
@@ -135,10 +135,10 @@ export const SelectActionsModal = () => {
style=
{
{
width
:
120
}
}
cover=
{
<
img
alt=
{
option
.
code
.
toString
()
}
alt=
{
option
.
meta
.
id
.
toString
()
}
src=
{
option
.
code
?
`${NeosConfig.cardImgUrl}/${option.
code
}.jpg`
option
.
meta
.
id
?
`${NeosConfig.cardImgUrl}/${option.
meta.id
}.jpg`
:
`${NeosConfig.assetsPath}/card_back.jpg`
}
style=
{
{
width
:
100
}
}
...
...
@@ -159,10 +159,10 @@ export const SelectActionsModal = () => {
style=
{
{
width
:
120
}
}
cover=
{
<
img
alt=
{
option
.
code
.
toString
()
}
alt=
{
option
.
meta
.
id
.
toString
()
}
src=
{
option
.
code
?
`${NeosConfig.cardImgUrl}/${option.
code
}.jpg`
option
.
meta
.
id
?
`${NeosConfig.cardImgUrl}/${option.
meta.id
}.jpg`
:
`${NeosConfig.assetsPath}/card_back.jpg`
}
/>
...
...
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