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
8add806b
Commit
8add806b
authored
May 20, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration
parent
dbfba98d
Pipeline
#21751
passed with stages
in 13 minutes and 20 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
src/ui/Duel/PlayMat/Card.tsx
src/ui/Duel/PlayMat/Card.tsx
+7
-1
src/ui/Duel/PlayMat/Chain.tsx
src/ui/Duel/PlayMat/Chain.tsx
+3
-3
src/ui/Duel/PlayMat/Mat.tsx
src/ui/Duel/PlayMat/Mat.tsx
+1
-0
No files found.
src/ui/Duel/PlayMat/Card.tsx
View file @
8add806b
...
...
@@ -5,6 +5,8 @@ import React, { type CSSProperties, MouseEventHandler } from "react";
import
{
useConfig
}
from
"
@/config
"
;
import
{
Chain
}
from
"
./Chain
"
;
const
NeosConfig
=
useConfig
();
const
ASSETS_BASE
=
...
...
@@ -27,6 +29,7 @@ export const Card: React.FC<{
highlight
?:
boolean
;
focus
?:
boolean
;
fly
?:
boolean
;
chainIdx
?:
number
;
transTime
?:
number
;
onClick
?:
MouseEventHandler
<
{}
>
;
style
?:
CSSProperties
;
...
...
@@ -42,6 +45,7 @@ export const Card: React.FC<{
highlight
=
false
,
focus
=
false
,
fly
=
false
,
chainIdx
,
transTime
=
0.3
,
onClick
,
style
=
{},
...
...
@@ -71,5 +75,7 @@ export const Card: React.FC<{
}
as
any
}
onClick=
{
onClick
}
></
div
>
>
{
chainIdx
?
<
Chain
chainIdx=
{
chainIdx
}
/>
:
<></>
}
</
div
>
);
src/ui/Duel/PlayMat/Chain.tsx
View file @
8add806b
...
...
@@ -6,8 +6,8 @@ const CIRCLES_COUNT = 8;
const
EASE
=
0.2
;
const
R
=
60
;
export
const
Chain
:
React
.
FC
<
{
chainId
e
x
:
number
}
>
=
(
props
:
{
chainId
e
x
:
number
;
export
const
Chain
:
React
.
FC
<
{
chainIdx
:
number
}
>
=
(
props
:
{
chainIdx
:
number
;
})
=>
(
<
div
className=
"circles"
...
...
@@ -29,7 +29,7 @@ export const Chain: React.FC<{ chainIdex: number }> = (props: {
}
></
div
>
))
}
<
div
className=
"font"
>
{
props
.
chainId
e
x
}
</
div
>
<
div
className=
"font"
>
{
props
.
chainIdx
}
</
div
>
</
div
>
);
...
...
src/ui/Duel/PlayMat/Mat.tsx
View file @
8add806b
...
...
@@ -113,6 +113,7 @@ export const Mat = () => {
card
.
directAttack
}
opponent=
{
card
.
opponent
}
chainIdx=
{
card
.
chainIndex
}
onClick=
{
card
.
location
.
zone
==
YgoZone
.
SZONE
||
card
.
location
.
zone
==
YgoZone
.
MZONE
||
...
...
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