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
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
Pipeline
#23352
passed with stages
in 12 minutes and 33 seconds
Changes
2
Pipelines
1
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; //
...
@@ -27,7 +27,7 @@ const TYPE_TOON = 0x400000; //
const
TYPE_XYZ
=
0x800000
;
//
const
TYPE_XYZ
=
0x800000
;
//
const
TYPE_PENDULUM
=
0x1000000
;
//
const
TYPE_PENDULUM
=
0x1000000
;
//
const
TYPE_SPSUMMON
=
0x2000000
;
//
const
TYPE_SPSUMMON
=
0x2000000
;
//
const
TYPE_LINK
=
0x4000000
;
//
export
const
TYPE_LINK
=
0x4000000
;
//
/*
/*
* 在做卡牌信息展示的时候,发现`CardMeta`里面的数据和`strings.conf`配置文件
* 在做卡牌信息展示的时候,发现`CardMeta`里面的数据和`strings.conf`配置文件
...
...
src/ui/Duel/Message/CardModal/index.tsx
View file @
0b83901f
...
@@ -10,6 +10,7 @@ import {
...
@@ -10,6 +10,7 @@ import {
Attribute2StringCodeMap
,
Attribute2StringCodeMap
,
extraCardTypes
,
extraCardTypes
,
Race2StringCodeMap
,
Race2StringCodeMap
,
TYPE_LINK
,
Type2StringCodeMap
,
Type2StringCodeMap
,
}
from
"
../../../../common
"
;
}
from
"
../../../../common
"
;
import
{
Desc
}
from
"
./Desc
"
;
import
{
Desc
}
from
"
./Desc
"
;
...
@@ -43,7 +44,7 @@ export const CardModal = () => {
...
@@ -43,7 +44,7 @@ export const CardModal = () => {
const
{
isOpen
,
meta
,
counters
:
_counters
}
=
snap
;
const
{
isOpen
,
meta
,
counters
:
_counters
}
=
snap
;
const
name
=
meta
?.
text
.
name
;
const
name
=
meta
?.
text
.
name
;
const
types
=
meta
?.
data
.
type
;
const
types
=
extraCardTypes
(
meta
?.
data
.
type
??
0
)
;
const
race
=
meta
?.
data
.
race
;
const
race
=
meta
?.
data
.
race
;
const
attribute
=
meta
?.
data
.
attribute
;
const
attribute
=
meta
?.
data
.
attribute
;
const
desc
=
meta
?.
text
.
desc
;
const
desc
=
meta
?.
text
.
desc
;
...
@@ -75,12 +76,11 @@ export const CardModal = () => {
...
@@ -75,12 +76,11 @@ export const CardModal = () => {
style=
{
{
borderRadius
:
4
}
}
style=
{
{
borderRadius
:
4
}
}
/>
/>
<
Space
direction=
"vertical"
className=
{
styles
.
info
}
>
<
Space
direction=
"vertical"
className=
{
styles
.
info
}
>
<
AtkLine
atk=
{
atk
}
def=
{
def
}
/>
<
AtkLine
<
AttLine
atk=
{
atk
}
types=
{
extraCardTypes
(
types
||
0
)
}
def=
{
types
.
includes
(
TYPE_LINK
)
?
undefined
:
def
}
race=
{
race
}
attribute=
{
attribute
}
/>
/>
<
AttLine
types=
{
types
}
race=
{
race
}
attribute=
{
attribute
}
/>
{
/* TODO: 只有怪兽卡需要展示攻击防御 */
}
{
/* TODO: 只有怪兽卡需要展示攻击防御 */
}
{
/* TODO: 展示星级/LINK数 */
}
{
/* TODO: 展示星级/LINK数 */
}
{
/* <CounterLine counters={counters} /> */
}
{
/* <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