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
585d0098
Commit
585d0098
authored
Apr 29, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update small
parent
b3d2d4b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
37 deletions
+30
-37
src/ui/Duel/PlayMat2/Block.tsx
src/ui/Duel/PlayMat2/Block.tsx
+0
-3
src/ui/Duel/PlayMat2/Mat.tsx
src/ui/Duel/PlayMat2/Mat.tsx
+30
-34
No files found.
src/ui/Duel/PlayMat2/Block.tsx
View file @
585d0098
...
@@ -84,9 +84,6 @@ export const ExtraBlockRow: React.FC<{
...
@@ -84,9 +84,6 @@ export const ExtraBlockRow: React.FC<{
opLeft
.
placeInteractivity
!==
undefined
opLeft
.
placeInteractivity
!==
undefined
}
}
isExtra=
{
true
}
isExtra=
{
true
}
onClick=
{
()
=>
{
// TODO
}
}
/>
/>
<
Block
<
Block
highlight=
{
highlight=
{
...
...
src/ui/Duel/PlayMat2/Mat.tsx
View file @
585d0098
...
@@ -60,39 +60,6 @@ export const Mat = () => {
...
@@ -60,39 +60,6 @@ export const Mat = () => {
renderCards
.
sort
((
card_a
,
card_b
)
=>
(
card_a
.
uuid
>
card_b
.
uuid
?
1
:
0
));
renderCards
.
sort
((
card_a
,
card_b
)
=>
(
card_a
.
uuid
>
card_b
.
uuid
?
1
:
0
));
const
onClick
=
(
state
:
CardState
)
=>
()
=>
{
const
zone
=
state
.
location
.
zone
;
if
(
zone
==
YgoZone
.
HAND
||
zone
==
YgoZone
.
MZONE
||
zone
==
YgoZone
.
SZONE
)
{
const
occupant
=
state
.
occupant
;
if
(
occupant
)
{
// 中央弹窗展示选中卡牌信息
messageStore
.
cardModal
.
meta
=
occupant
;
messageStore
.
cardModal
.
interactivies
=
state
.
idleInteractivities
.
map
(
(
interactivity
)
=>
({
desc
:
interactTypeToString
(
interactivity
.
interactType
),
response
:
interactivity
.
response
,
})
);
messageStore
.
cardModal
.
counters
=
state
.
counters
;
messageStore
.
cardModal
.
isOpen
=
true
;
// 侧边栏展示超量素材信息
if
(
state
.
overlay_materials
&&
state
.
overlay_materials
.
length
>
0
)
{
messageStore
.
cardListModal
.
list
=
state
.
overlay_materials
?.
map
((
overlay
)
=>
({
meta
:
overlay
,
interactivies
:
[],
}))
||
[];
messageStore
.
cardListModal
.
isOpen
=
true
;
}
}
}
};
return
(
return
(
<>
<>
<
Menu
/>
<
Menu
/>
...
@@ -136,7 +103,7 @@ export const Mat = () => {
...
@@ -136,7 +103,7 @@ export const Mat = () => {
vertical=
{
card
.
location
.
zone
==
YgoZone
.
HAND
}
vertical=
{
card
.
location
.
zone
==
YgoZone
.
HAND
}
highlight=
{
card
.
idleInteractivities
.
length
>
0
}
highlight=
{
card
.
idleInteractivities
.
length
>
0
}
opponent=
{
card
.
opponent
}
opponent=
{
card
.
opponent
}
onClick=
{
onClick
(
card
)
}
onClick=
{
onC
ardC
lick
(
card
)
}
/>
/>
))
}
))
}
</
div
>
</
div
>
...
@@ -258,3 +225,32 @@ function CardStateToFaceDown(state: RenderCard): boolean {
...
@@ -258,3 +225,32 @@ function CardStateToFaceDown(state: RenderCard): boolean {
state
.
occupant
!
.
id
==
0
state
.
occupant
!
.
id
==
0
);
);
}
}
const
onCardClick
=
(
state
:
CardState
)
=>
()
=>
{
const
zone
=
state
.
location
.
zone
;
if
(
zone
==
YgoZone
.
HAND
||
zone
==
YgoZone
.
MZONE
||
zone
==
YgoZone
.
SZONE
)
{
const
occupant
=
state
.
occupant
;
if
(
occupant
)
{
// 中央弹窗展示选中卡牌信息
messageStore
.
cardModal
.
meta
=
occupant
;
messageStore
.
cardModal
.
interactivies
=
state
.
idleInteractivities
.
map
(
(
interactivity
)
=>
({
desc
:
interactTypeToString
(
interactivity
.
interactType
),
response
:
interactivity
.
response
,
})
);
messageStore
.
cardModal
.
counters
=
state
.
counters
;
messageStore
.
cardModal
.
isOpen
=
true
;
// 侧边栏展示超量素材信息
if
(
state
.
overlay_materials
&&
state
.
overlay_materials
.
length
>
0
)
{
messageStore
.
cardListModal
.
list
=
state
.
overlay_materials
?.
map
((
overlay
)
=>
({
meta
:
overlay
,
interactivies
:
[],
}))
||
[];
messageStore
.
cardListModal
.
isOpen
=
true
;
}
}
}
};
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