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
e5e57d18
Commit
e5e57d18
authored
Jan 13, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix small
parent
cecc5658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
src/ui/Duel/field.tsx
src/ui/Duel/field.tsx
+20
-11
No files found.
src/ui/Duel/field.tsx
View file @
e5e57d18
...
@@ -2,7 +2,8 @@ import * as BABYLON from "@babylonjs/core";
...
@@ -2,7 +2,8 @@ import * as BABYLON from "@babylonjs/core";
import
*
as
CONFIG
from
"
../../config/ui
"
;
import
*
as
CONFIG
from
"
../../config/ui
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectMeField
,
selectOpField
}
from
"
../../reducers/duel/fieldSlice
"
;
import
{
selectMeField
,
selectOpField
}
from
"
../../reducers/duel/fieldSlice
"
;
import
SingleSlot
,
{
Depth
}
from
"
./singleSlot
"
;
import
FixedSlot
from
"
./fixedSlot
"
;
import
{
Depth
}
from
"
./singleSlot
"
;
const
Field
=
()
=>
{
const
Field
=
()
=>
{
const
meField
=
useAppSelector
(
selectMeField
)?.
inner
;
const
meField
=
useAppSelector
(
selectMeField
)?.
inner
;
...
@@ -10,16 +11,24 @@ const Field = () => {
...
@@ -10,16 +11,24 @@ const Field = () => {
return
(
return
(
<>
<>
<
SingleSlot
{
meField
?
(
state=
{
meField
?
[
meField
]
:
[]
}
<
FixedSlot
position=
{
fieldPosition
(
0
)
}
state=
{
meField
}
rotation=
{
CONFIG
.
CardSlotRotation
(
false
)
}
position=
{
fieldPosition
(
0
)
}
/>
rotation=
{
CONFIG
.
CardSlotRotation
(
false
)
}
<
SingleSlot
/>
state=
{
opField
?
[
opField
]
:
[]
}
)
:
(
position=
{
fieldPosition
(
1
)
}
<></>
rotation=
{
CONFIG
.
CardSlotRotation
(
true
)
}
)
}
/>
{
opField
?
(
<
FixedSlot
state=
{
opField
}
position=
{
fieldPosition
(
1
)
}
rotation=
{
CONFIG
.
CardSlotRotation
(
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