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
01dc6d73
Commit
01dc6d73
authored
Mar 31, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix occlusion
parent
988d7ef5
Pipeline
#26173
passed with stages
in 8 minutes and 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
12 deletions
+48
-12
src/ui/Duel/PlayMat/Bg/Chain/index.module.scss
src/ui/Duel/PlayMat/Bg/Chain/index.module.scss
+15
-0
src/ui/Duel/PlayMat/Bg/Chain/index.tsx
src/ui/Duel/PlayMat/Bg/Chain/index.tsx
+23
-2
src/ui/Duel/PlayMat/Bg/index.tsx
src/ui/Duel/PlayMat/Bg/index.tsx
+10
-10
No files found.
src/ui/Duel/PlayMat/Bg/Chain/index.module.scss
View file @
01dc6d73
...
@@ -6,6 +6,20 @@
...
@@ -6,6 +6,20 @@
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
z-index
:
2
;
z-index
:
2
;
}
.banish
,
.graveyard
{
left
:
100%
;
}
.extra-deck
{
right
:
100%
;
}
.op
{
transform
:
rotate
(
180deg
);
}
}
.chain
{
.chain
{
...
@@ -35,6 +49,7 @@
...
@@ -35,6 +49,7 @@
from
{
from
{
transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
}
to
{
to
{
transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
...
...
src/ui/Duel/PlayMat/Bg/Chain/index.tsx
View file @
01dc6d73
import
classnames
from
"
classnames
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
const
{
assetsPath
}
=
useConfig
();
const
{
assetsPath
}
=
useConfig
();
export
const
BgChain
:
React
.
FC
<
{
chains
:
readonly
number
[]
}
>
=
({
export
interface
ChainProps
{
chains
:
readonly
number
[];
banish
?:
boolean
;
graveyard
?:
boolean
;
extra
?:
boolean
;
op
?:
boolean
;
}
export
const
BgChain
:
React
.
FC
<
ChainProps
>
=
({
chains
,
chains
,
banish
,
graveyard
,
extra
,
op
,
})
=>
(
})
=>
(
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
classnames
(
styles
.
container
,
{
[
styles
.
banish
]:
banish
,
[
styles
.
graveyard
]:
graveyard
,
[
styles
[
"
extra-deck
"
]]:
extra
,
[
styles
.
op
]:
op
,
})
}
>
{
chains
.
map
((
chain
)
=>
(
{
chains
.
map
((
chain
)
=>
(
<
div
className=
{
styles
.
chain
}
key=
{
chain
}
>
<
div
className=
{
styles
.
chain
}
key=
{
chain
}
>
<
img
src=
{
`${assetsPath}/chain.png`
}
/>
<
img
src=
{
`${assetsPath}/chain.png`
}
/>
...
...
src/ui/Duel/PlayMat/Bg/index.tsx
View file @
01dc6d73
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
placeStore
,
placeStore
,
}
from
"
@/stores
"
;
}
from
"
@/stores
"
;
import
{
BgChain
}
from
"
./Chain
"
;
import
{
BgChain
,
ChainProps
}
from
"
./Chain
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
const
{
MZONE
,
SZONE
,
EXTRA
,
GRAVE
,
REMOVED
}
=
ygopro
.
CardZone
;
const
{
MZONE
,
SZONE
,
EXTRA
,
GRAVE
,
REMOVED
}
=
ygopro
.
CardZone
;
...
@@ -20,7 +20,7 @@ const BgBlock: React.FC<
...
@@ -20,7 +20,7 @@ const BgBlock: React.FC<
disabled
?:
boolean
;
disabled
?:
boolean
;
highlight
?:
boolean
;
highlight
?:
boolean
;
glowing
?:
boolean
;
glowing
?:
boolean
;
chains
?:
readonly
number
[]
;
chains
:
ChainProps
;
}
}
>
=
({
>
=
({
disabled
=
false
,
disabled
=
false
,
...
@@ -39,7 +39,7 @@ const BgBlock: React.FC<
...
@@ -39,7 +39,7 @@ const BgBlock: React.FC<
>
>
{
<
DecoTriangles
/>
}
{
<
DecoTriangles
/>
}
{
<
DisabledCross
disabled=
{
disabled
}
/>
}
{
<
DisabledCross
disabled=
{
disabled
}
/>
}
{
<
BgChain
chains=
{
chains
??
[]
}
/>
}
{
<
BgChain
{
...
chains
}
/>
}
</
div
>
</
div
>
);
);
...
@@ -59,7 +59,7 @@ const BgExtraRow: React.FC<{
...
@@ -59,7 +59,7 @@ const BgExtraRow: React.FC<{
}
}
}
}
disabled=
{
meSnap
[
i
].
disabled
||
opSnap
[
i
].
disabled
}
disabled=
{
meSnap
[
i
].
disabled
||
opSnap
[
i
].
disabled
}
highlight=
{
!!
meSnap
[
i
].
interactivity
||
!!
opSnap
[
i
].
interactivity
}
highlight=
{
!!
meSnap
[
i
].
interactivity
||
!!
opSnap
[
i
].
interactivity
}
chains=
{
meSnap
[
i
].
chainIndex
.
concat
(
opSnap
[
i
].
chainIndex
)
}
chains=
{
{
chains
:
meSnap
[
i
].
chainIndex
.
concat
(
opSnap
[
i
].
chainIndex
)
}
}
/>
/>
))
}
))
}
</
div
>
</
div
>
...
@@ -79,7 +79,7 @@ const BgRow: React.FC<{
...
@@ -79,7 +79,7 @@ const BgRow: React.FC<{
onClick=
{
()
=>
onBlockClick
(
snap
[
i
].
interactivity
)
}
onClick=
{
()
=>
onBlockClick
(
snap
[
i
].
interactivity
)
}
disabled=
{
snap
[
i
].
disabled
}
disabled=
{
snap
[
i
].
disabled
}
highlight=
{
!!
snap
[
i
].
interactivity
}
highlight=
{
!!
snap
[
i
].
interactivity
}
chains=
{
snap
[
i
].
chainIndex
}
chains=
{
{
chains
:
snap
[
i
].
chainIndex
}
}
/>
/>
))
}
))
}
</
div
>
</
div
>
...
@@ -113,25 +113,25 @@ const BgOtherBlocks: React.FC<{ op?: boolean }> = ({ op }) => {
...
@@ -113,25 +113,25 @@ const BgOtherBlocks: React.FC<{ op?: boolean }> = ({ op }) => {
<
BgBlock
<
BgBlock
className=
{
styles
.
banish
}
className=
{
styles
.
banish
}
glowing=
{
!
op
&&
glowingBanish
}
glowing=
{
!
op
&&
glowingBanish
}
chains=
{
genChains
(
removed
)
}
chains=
{
{
chains
:
genChains
(
removed
),
banish
:
true
,
op
}
}
/>
/>
<
BgBlock
<
BgBlock
className=
{
styles
.
graveyard
}
className=
{
styles
.
graveyard
}
glowing=
{
!
op
&&
glowingGraveyard
}
glowing=
{
!
op
&&
glowingGraveyard
}
chains=
{
genChains
(
grave
)
}
chains=
{
{
chains
:
genChains
(
grave
),
graveyard
:
true
,
op
}
}
/>
/>
<
BgBlock
<
BgBlock
className=
{
styles
.
field
}
className=
{
styles
.
field
}
onClick=
{
()
=>
onBlockClick
(
field
.
interactivity
)
}
onClick=
{
()
=>
onBlockClick
(
field
.
interactivity
)
}
disabled=
{
field
.
disabled
}
disabled=
{
field
.
disabled
}
highlight=
{
!!
field
.
interactivity
}
highlight=
{
!!
field
.
interactivity
}
chains=
{
field
.
chainIndex
}
chains=
{
{
chains
:
field
.
chainIndex
,
op
}
}
/>
/>
<
BgBlock
className=
{
styles
.
deck
}
/>
<
BgBlock
className=
{
styles
.
deck
}
chains=
{
{
chains
:
[]
}
}
/>
<
BgBlock
<
BgBlock
className=
{
classnames
(
styles
.
deck
,
styles
[
"
extra-deck
"
])
}
className=
{
classnames
(
styles
.
deck
,
styles
[
"
extra-deck
"
])
}
glowing=
{
!
op
&&
glowingExtra
}
glowing=
{
!
op
&&
glowingExtra
}
chains=
{
genChains
(
extra
)
}
chains=
{
{
chains
:
genChains
(
extra
),
extra
:
true
,
op
}
}
/>
/>
</
div
>
</
div
>
);
);
...
...
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