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
deft
Neos
Commits
6ef1cd8c
Commit
6ef1cd8c
authored
Jan 01, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix op monsters rotation
parent
0b322a0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/config/ui.ts
src/config/ui.ts
+4
-2
src/ui/Duel/monsters.tsx
src/ui/Duel/monsters.tsx
+3
-3
No files found.
src/config/ui.ts
View file @
6ef1cd8c
...
...
@@ -26,8 +26,10 @@ export const ExclusionSlotShape = () => {
export
const
FieldSlotShape
=
()
=>
{
return
{
width
:
0.8
,
height
:
1
,
depth
:
0.2
};
};
export
const
CardSlotRotation
=
()
=>
{
return
new
BABYLON
.
Vector3
(
1.55
,
0
,
0
);
export
const
CardSlotRotation
=
(
reverse
:
boolean
)
=>
{
return
reverse
?
new
BABYLON
.
Vector3
(
1.55
,
3.1
,
0
)
:
new
BABYLON
.
Vector3
(
1.55
,
0
,
0
);
};
export
const
CardSlotDefenceRotation
=
()
=>
{
return
new
BABYLON
.
Vector3
(
1.55
,
1.55
,
0
);
...
...
src/ui/Duel/monsters.tsx
View file @
6ef1cd8c
...
...
@@ -39,7 +39,7 @@ const Monsters = () => {
state=
{
monster
}
key=
{
idx
}
position=
{
position
}
rotation=
{
CONFIG
.
CardSlotRotation
()
}
rotation=
{
CONFIG
.
CardSlotRotation
(
false
)
}
deffenseRotation=
{
CONFIG
.
CardSlotDefenceRotation
()
}
/>
);
...
...
@@ -50,7 +50,7 @@ const Monsters = () => {
state=
{
monster
}
key=
{
idx
}
position=
{
position
}
rotation=
{
CONFIG
.
CardSlotRotation
()
}
rotation=
{
CONFIG
.
CardSlotRotation
(
true
)
}
deffenseRotation=
{
CONFIG
.
CardSlotDefenceRotation
()
}
/>
);
...
...
@@ -147,7 +147,7 @@ const ExtraMonsters = () => {
const
shape
=
CONFIG
.
CardSlotShape
();
const
position
=
(
x
:
number
)
=>
new
BABYLON
.
Vector3
(
x
,
shape
.
depth
/
2
+
CONFIG
.
Floating
,
0
);
const
rotation
=
CONFIG
.
CardSlotRotation
();
const
rotation
=
CONFIG
.
CardSlotRotation
(
false
);
return
(
<>
...
...
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