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
07f8fde7
Commit
07f8fde7
authored
Jan 13, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix small
parent
b33ff7f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
14 deletions
+8
-14
src/ui/Duel/cemetery.tsx
src/ui/Duel/cemetery.tsx
+2
-4
src/ui/Duel/deck.tsx
src/ui/Duel/deck.tsx
+2
-4
src/ui/Duel/exclusion.tsx
src/ui/Duel/exclusion.tsx
+2
-4
src/ui/Duel/singleSlot.tsx
src/ui/Duel/singleSlot.tsx
+2
-2
No files found.
src/ui/Duel/cemetery.tsx
View file @
07f8fde7
...
...
@@ -5,9 +5,7 @@ import {
selectOpCemetery
,
}
from
"
../../reducers/duel/cemeretySlice
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
SingleSlot
from
"
./singleSlot
"
;
const
depth
=
0.005
;
import
SingleSlot
,
{
Depth
}
from
"
./singleSlot
"
;
const
Cemeteries
=
()
=>
{
const
meCemetery
=
useAppSelector
(
selectMeCemetery
).
inner
;
...
...
@@ -31,7 +29,7 @@ const Cemeteries = () => {
const
cemeteryPosition
=
(
player
:
number
,
cemeteryLength
:
number
)
=>
{
const
x
=
player
==
0
?
3.2
:
-
3.2
;
const
y
=
(
d
epth
*
cemeteryLength
)
/
2
+
CONFIG
.
Floating
;
const
y
=
(
D
epth
*
cemeteryLength
)
/
2
+
CONFIG
.
Floating
;
const
z
=
player
==
0
?
-
2.0
:
2.0
;
return
new
BABYLON
.
Vector3
(
x
,
y
,
z
);
...
...
src/ui/Duel/deck.tsx
View file @
07f8fde7
...
...
@@ -2,9 +2,7 @@ import * as BABYLON from "@babylonjs/core";
import
*
as
CONFIG
from
"
../../config/ui
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectMeDeck
,
selectOpDeck
}
from
"
../../reducers/duel/deckSlice
"
;
import
SingleSlot
from
"
./singleSlot
"
;
const
depth
=
0.005
;
import
SingleSlot
,
{
Depth
}
from
"
./singleSlot
"
;
const
Deck
=
()
=>
(
<>
...
...
@@ -61,7 +59,7 @@ const ExtraDeck = () => {
const
deckPosition
=
(
player
:
number
,
deckLength
:
number
)
=>
{
const
x
=
player
==
0
?
3.2
:
-
3.2
;
const
y
=
(
d
epth
*
deckLength
)
/
2
+
CONFIG
.
Floating
;
const
y
=
(
D
epth
*
deckLength
)
/
2
+
CONFIG
.
Floating
;
const
z
=
player
==
0
?
-
3.3
:
3.3
;
return
new
BABYLON
.
Vector3
(
x
,
y
,
z
);
...
...
src/ui/Duel/exclusion.tsx
View file @
07f8fde7
...
...
@@ -5,9 +5,7 @@ import {
selectMeExclusion
,
selectopExclusion
,
}
from
"
../../reducers/duel/exclusionSlice
"
;
import
SingleSlot
from
"
./singleSlot
"
;
const
depth
=
0.02
;
import
SingleSlot
,
{
Depth
}
from
"
./singleSlot
"
;
const
Exclusion
=
()
=>
{
const
meExclusion
=
useAppSelector
(
selectMeExclusion
).
inner
;
...
...
@@ -31,7 +29,7 @@ const Exclusion = () => {
const
exclusionPosition
=
(
player
:
number
,
exclusionLength
:
number
)
=>
{
const
x
=
player
==
0
?
3.2
:
-
3.2
;
const
y
=
(
d
epth
*
exclusionLength
)
/
2
+
CONFIG
.
Floating
;
const
y
=
(
D
epth
*
exclusionLength
)
/
2
+
CONFIG
.
Floating
;
const
z
=
player
==
0
?
-
0.7
:
0.7
;
return
new
BABYLON
.
Vector3
(
x
,
y
,
z
);
...
...
src/ui/Duel/singleSlot.tsx
View file @
07f8fde7
...
...
@@ -10,7 +10,7 @@ import {
}
from
"
../../reducers/duel/mod
"
;
const
shape
=
CONFIG
.
SingleSlotShape
;
const
d
epth
=
0.005
;
export
const
D
epth
=
0.005
;
const
SingleSlot
=
(
props
:
{
state
:
CardState
[];
...
...
@@ -53,7 +53,7 @@ const SingleSlot = (props: {
new BABYLON.Vector3(
shape.width,
shape.height,
d
epth * props.state.length
D
epth * props.state.length
)
}
position={props.position}
...
...
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