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