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
0b83901f
Commit
0b83901f
authored
Sep 04, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix link def
parent
f5d5a2cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/common.ts
src/common.ts
+1
-1
src/ui/Duel/Message/CardModal/index.tsx
src/ui/Duel/Message/CardModal/index.tsx
+6
-6
No files found.
src/common.ts
View file @
0b83901f
...
...
@@ -27,7 +27,7 @@ const TYPE_TOON = 0x400000; //
const
TYPE_XYZ
=
0x800000
;
//
const
TYPE_PENDULUM
=
0x1000000
;
//
const
TYPE_SPSUMMON
=
0x2000000
;
//
const
TYPE_LINK
=
0x4000000
;
//
export
const
TYPE_LINK
=
0x4000000
;
//
/*
* 在做卡牌信息展示的时候,发现`CardMeta`里面的数据和`strings.conf`配置文件
...
...
src/ui/Duel/Message/CardModal/index.tsx
View file @
0b83901f
...
...
@@ -10,6 +10,7 @@ import {
Attribute2StringCodeMap
,
extraCardTypes
,
Race2StringCodeMap
,
TYPE_LINK
,
Type2StringCodeMap
,
}
from
"
../../../../common
"
;
import
{
Desc
}
from
"
./Desc
"
;
...
...
@@ -43,7 +44,7 @@ export const CardModal = () => {
const
{
isOpen
,
meta
,
counters
:
_counters
}
=
snap
;
const
name
=
meta
?.
text
.
name
;
const
types
=
meta
?.
data
.
type
;
const
types
=
extraCardTypes
(
meta
?.
data
.
type
??
0
)
;
const
race
=
meta
?.
data
.
race
;
const
attribute
=
meta
?.
data
.
attribute
;
const
desc
=
meta
?.
text
.
desc
;
...
...
@@ -75,12 +76,11 @@ export const CardModal = () => {
style=
{
{
borderRadius
:
4
}
}
/>
<
Space
direction=
"vertical"
className=
{
styles
.
info
}
>
<
AtkLine
atk=
{
atk
}
def=
{
def
}
/>
<
AttLine
types=
{
extraCardTypes
(
types
||
0
)
}
race=
{
race
}
attribute=
{
attribute
}
<
AtkLine
atk=
{
atk
}
def=
{
types
.
includes
(
TYPE_LINK
)
?
undefined
:
def
}
/>
<
AttLine
types=
{
types
}
race=
{
race
}
attribute=
{
attribute
}
/>
{
/* TODO: 只有怪兽卡需要展示攻击防御 */
}
{
/* TODO: 展示星级/LINK数 */
}
{
/* <CounterLine counters={counters} /> */
}
...
...
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