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
9dc08cb0
Commit
9dc08cb0
authored
Jul 30, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fmt
parent
79f8700c
Pipeline
#22856
passed with stages
in 12 minutes and 32 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
src/service/duel/chaining.ts
src/service/duel/chaining.ts
+2
-2
src/service/duel/confirmCards.ts
src/service/duel/confirmCards.ts
+2
-2
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+4
-8
src/ui/Shared/index.ts
src/ui/Shared/index.ts
+1
-1
No files found.
src/service/duel/chaining.ts
View file @
9dc08cb0
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
eventbus
,
Task
}
from
"
@/infra
"
;
import
{
cardStore
,
fetchEsHintMeta
,
matStore
}
from
"
@/stores
"
;
import
{
callCardFocus
}
from
"
@/ui/Duel/PlayMat/Card
"
;
export
default
async
(
chaining
:
ygopro
.
StocGameMessage
.
MsgChaining
)
=>
{
fetchEsHintMeta
({
...
...
@@ -27,7 +27,7 @@ export default async (chaining: ygopro.StocGameMessage.MsgChaining) => {
target
.
meta
=
meta
;
// 发动效果动画
await
eventbus
.
call
(
Task
.
Focus
,
target
.
uuid
);
await
callCardFocus
(
target
.
uuid
);
console
.
color
(
"
blue
"
)(
`
${
target
.
meta
.
text
.
name
}
chaining`
);
}
else
{
console
.
warn
(
`<Chaining>target from
${
location
}
is null`
);
...
...
src/service/duel/confirmCards.ts
View file @
9dc08cb0
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
eventbus
,
Task
}
from
"
@/infra
"
;
import
{
cardStore
}
from
"
@/stores
"
;
import
{
callCardFocus
}
from
"
@/ui/Duel/PlayMat/Card
"
;
export
default
async
(
confirmCards
:
ygopro
.
StocGameMessage
.
MsgConfirmCards
)
=>
{
const
cards
=
confirmCards
.
cards
;
...
...
@@ -14,7 +14,7 @@ export default async (confirmCards: ygopro.StocGameMessage.MsgConfirmCards) => {
const
meta
=
await
fetchCard
(
card
.
code
);
target
.
meta
=
meta
;
// 动画
await
eventbus
.
call
(
Task
.
Focus
,
target
.
uuid
);
await
callCardFocus
(
target
.
uuid
);
}
else
{
console
.
warn
(
`card of
${
card
}
is null`
);
}
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
9dc08cb0
...
...
@@ -31,7 +31,6 @@ import {
type
MoveOptions
,
}
from
"
./springs
"
;
import
type
{
SpringApiProps
}
from
"
./springs/types
"
;
import
{
IconFont
}
from
"
@/ui/Shared
"
;
const
{
HAND
,
GRAVE
,
REMOVED
,
EXTRA
,
MZONE
,
SZONE
,
TZONE
}
=
ygopro
.
CardZone
;
...
...
@@ -361,13 +360,10 @@ const handleEffectActivation = (
//
<
<<
下拉菜单
<<<
type
CallReturn
<
Options
>
= Options extends
{}
? (uuid: string, options?: Options) =
>
Promise
<
void
>
: (uuid: string) =
>
Promise
<
void
>
;
const call =
<
Options
,
>
(task: Task): CallReturn
<
Options
>
=
>
((uuid: string, options?: Options) =
>
eventbus.call(task, uuid, options)) as any;
const
call
=
<
Options
,
>
(task: Task) =
>
(uuid: string, options?: Options extends undefined ? never : Options) =
>
eventbus.call(task, uuid, options);
export const callCardMove = call
<
MoveOptions
>
(Task.Move);
export const callCardFocus = call(Task.Focus);
...
...
src/ui/Shared/index.ts
View file @
9dc08cb0
export
*
from
"
./css
"
;
export
*
from
"
./YgoCard
"
;
export
*
from
"
./IconFont
"
;
export
*
from
"
./YgoCard
"
;
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