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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
d7656ed2
Commit
d7656ed2
authored
Jul 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 动画的细微调整
parent
b1e82d94
Pipeline
#22587
passed with stages
in 11 minutes and 57 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
+10
-11
src/env.d.ts
src/env.d.ts
+1
-1
src/service/duel/move.ts
src/service/duel/move.ts
+1
-6
src/ui/Duel/PlayMat/Card/springs/focus.ts
src/ui/Duel/PlayMat/Card/springs/focus.ts
+6
-1
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+1
-2
src/ui/Duel/PlayMat/utils/cssConfig.ts
src/ui/Duel/PlayMat/utils/cssConfig.ts
+1
-1
No files found.
src/env.d.ts
View file @
d7656ed2
...
...
@@ -22,6 +22,6 @@ declare global {
color
:
(
color
:
string
,
backgroundColor
?:
string
)
=>
(...
args
:
any
[]
)
=>
void
;
)
=>
(...
args
:
Parameters
<
console
.
log
>
)
=>
void
;
}
}
src/service/duel/move.ts
View file @
d7656ed2
...
...
@@ -160,12 +160,7 @@ export default async (move: MsgMove) => {
await
eventbus
.
call
(
Task
.
Move
,
target
.
uuid
);
// 如果from或者to是手卡,那么需要刷新除了这张卡之外,这个玩家的所有手卡
if
([
from
.
zone
,
to
.
zone
].
includes
(
HAND
))
{
// for (const card of cardStore.at(HAND, target.location.controller)) {
// if (card.uuid !== target.uuid) {
// await eventbus.call(Task.Move, card.uuid);
// }
// }
Promise
.
all
(
await
Promise
.
all
(
cardStore
.
at
(
HAND
,
target
.
location
.
controller
)
.
filter
((
c
)
=>
c
.
uuid
!==
target
.
uuid
)
...
...
src/ui/Duel/PlayMat/Card/springs/focus.ts
View file @
d7656ed2
...
...
@@ -17,7 +17,12 @@ export const focus = async (props: { card: CardType; api: SpringApi }) => {
ry
:
0
,
rz
:
0
,
});
await
asyncStart
(
api
)({
y
:
current
.
y
,
ry
:
current
.
ry
,
rz
:
current
.
rz
});
await
asyncStart
(
api
)({
y
:
current
.
y
,
ry
:
current
.
ry
,
rz
:
current
.
rz
,
z
:
current
.
z
,
});
}
else
{
await
asyncStart
(
api
)({
focusScale
:
1.5
,
...
...
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
d7656ed2
...
...
@@ -49,8 +49,7 @@ export const moveToHand = async (props: { card: CardType; api: SpringApi }) => {
const
_rz
=
(
angle
*
180
)
/
Math
.
PI
;
// FIXME: 这里加上await会导致有些手卡会卡住不动,为什么呢?
asyncStart
(
api
)({
await
asyncStart
(
api
)({
x
:
isMe
(
controller
)
?
x
:
-
x
,
y
:
isMe
(
controller
)
?
y
:
-
y
,
z
:
15
,
...
...
src/ui/Duel/PlayMat/utils/cssConfig.ts
View file @
d7656ed2
...
...
@@ -65,7 +65,7 @@ export const matConfig = {
unit
:
UNIT
.
PX
,
},
HAND_CARD_HEIGHT
:
{
value
:
1
4
0
,
value
:
1
1
0
,
unit
:
UNIT
.
PX
,
},
DECK_OFFSET_X
:
{
...
...
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