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
6cd81621
Commit
6cd81621
authored
Jul 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: small
parent
d099cc09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+1
-1
src/ui/Duel/PlayMat/LifeBar/index.tsx
src/ui/Duel/PlayMat/LifeBar/index.tsx
+6
-6
No files found.
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
6cd81621
...
...
@@ -51,7 +51,7 @@ export const moveToHand: MoveFunc = async (props) => {
await
asyncStart
(
api
)({
x
:
isMe
(
controller
)
?
x
:
-
x
,
y
:
isMe
(
controller
)
?
y
:
-
y
,
z
:
sequence
,
z
:
sequence
+
5
,
rz
:
isMe
(
controller
)
?
_rz
:
180
-
_rz
,
ry
:
isMe
(
controller
)
?
0
:
180
,
height
:
HAND_CARD_HEIGHT
.
value
,
...
...
src/ui/Duel/PlayMat/LifeBar/index.tsx
View file @
6cd81621
...
...
@@ -14,7 +14,7 @@ import { matStore, playerStore } from "@/stores";
// https://www.npmjs.com/package/react-countup?activeTab=dependents
export
const
LifeBar
:
React
.
FC
=
()
=>
{
const
snap
=
useSnapshot
(
matStore
.
initInfo
);
const
snap
InitInfo
=
useSnapshot
(
matStore
.
initInfo
);
const
snapPlayer
=
useSnapshot
(
playerStore
);
const
{
currentPlayer
}
=
useSnapshot
(
matStore
);
...
...
@@ -22,12 +22,12 @@ export const LifeBar: React.FC = () => {
const
[
opLife
,
setOpLife
]
=
React
.
useState
(
0
);
useEffect
(()
=>
{
setMeLife
(
snap
.
me
.
life
);
},
[
snap
.
me
.
life
]);
setMeLife
(
snap
InitInfo
.
me
.
life
);
},
[
snap
InitInfo
.
me
.
life
]);
useEffect
(()
=>
{
setOpLife
(
snap
.
op
.
life
);
},
[
snap
.
op
.
life
]);
setOpLife
(
snap
InitInfo
.
op
.
life
);
},
[
snap
InitInfo
.
op
.
life
]);
const
snapTimeLimit
=
useSnapshot
(
matStore
.
timeLimits
);
const
[
myTimeLimit
,
setMyTimeLimit
]
=
useState
(
snapTimeLimit
.
me
);
...
...
@@ -105,7 +105,7 @@ const LifeBarItem: React.FC<{
<
div
className=
"timer-container"
>
<
Progress
type=
"circle"
percent=
{
(
timeLimit
/
240
)
*
100
}
percent=
{
Math
.
floor
((
timeLimit
/
240
)
*
100
)
}
strokeWidth=
{
20
}
size=
{
14
}
/>
...
...
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