Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
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
ygopro
Commits
ba4c3e8a
Commit
ba4c3e8a
authored
Aug 06, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mercury/patch-anim' into develop
parents
8c48df88
df807839
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
gframe/client_card.cpp
gframe/client_card.cpp
+6
-6
gframe/drawing.cpp
gframe/drawing.cpp
+5
-1
No files found.
gframe/client_card.cpp
View file @
ba4c3e8a
...
@@ -35,8 +35,12 @@ void ClientCard::SetCode(unsigned int x) {
...
@@ -35,8 +35,12 @@ void ClientCard::SetCode(unsigned int x) {
if
((
location
==
LOCATION_HAND
)
&&
(
code
!=
x
))
{
if
((
location
==
LOCATION_HAND
)
&&
(
code
!=
x
))
{
code
=
x
;
code
=
x
;
mainGame
->
dField
.
MoveCard
(
this
,
5
);
mainGame
->
dField
.
MoveCard
(
this
,
5
);
}
else
}
else
{
if
(
x
==
0
&&
code
!=
0
)
{
chain_code
=
code
;
}
code
=
x
;
code
=
x
;
}
}
}
void
ClientCard
::
UpdateInfo
(
unsigned
char
*
buf
)
{
void
ClientCard
::
UpdateInfo
(
unsigned
char
*
buf
)
{
int
flag
=
BufferIO
::
Read
<
int32_t
>
(
buf
);
int
flag
=
BufferIO
::
Read
<
int32_t
>
(
buf
);
...
@@ -48,11 +52,7 @@ void ClientCard::UpdateInfo(unsigned char* buf) {
...
@@ -48,11 +52,7 @@ void ClientCard::UpdateInfo(unsigned char* buf) {
int
pdata
=
BufferIO
::
Read
<
int32_t
>
(
buf
);
int
pdata
=
BufferIO
::
Read
<
int32_t
>
(
buf
);
if
(
!
pdata
)
if
(
!
pdata
)
ClearData
();
ClearData
();
if
((
location
==
LOCATION_HAND
)
&&
((
unsigned
int
)
pdata
!=
code
))
{
SetCode
(
pdata
);
code
=
pdata
;
mainGame
->
dField
.
MoveCard
(
this
,
5
);
}
else
code
=
pdata
;
}
}
if
(
flag
&
QUERY_POSITION
)
{
if
(
flag
&
QUERY_POSITION
)
{
int
pdata
=
(
BufferIO
::
Read
<
int32_t
>
(
buf
)
>>
24
)
&
0xff
;
int
pdata
=
(
BufferIO
::
Read
<
int32_t
>
(
buf
)
>>
24
)
&
0xff
;
...
...
gframe/drawing.cpp
View file @
ba4c3e8a
...
@@ -348,6 +348,7 @@ void Game::DrawCard(ClientCard* pcard) {
...
@@ -348,6 +348,7 @@ void Game::DrawCard(ClientCard* pcard) {
if
(
pcard
->
aniFrame
==
0
)
{
if
(
pcard
->
aniFrame
==
0
)
{
pcard
->
is_moving
=
false
;
pcard
->
is_moving
=
false
;
pcard
->
is_fading
=
false
;
pcard
->
is_fading
=
false
;
pcard
->
chain_code
=
0
;
}
}
}
}
matManager
.
mCard
.
AmbientColor
=
0xffffffff
;
matManager
.
mCard
.
AmbientColor
=
0xffffffff
;
...
@@ -355,7 +356,10 @@ void Game::DrawCard(ClientCard* pcard) {
...
@@ -355,7 +356,10 @@ void Game::DrawCard(ClientCard* pcard) {
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
pcard
->
mTransform
);
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
pcard
->
mTransform
);
auto
m22
=
pcard
->
mTransform
(
2
,
2
);
auto
m22
=
pcard
->
mTransform
(
2
,
2
);
if
(
m22
>
-
0.99
||
pcard
->
is_moving
)
{
if
(
m22
>
-
0.99
||
pcard
->
is_moving
)
{
matManager
.
mCard
.
setTexture
(
0
,
imageManager
.
GetTexture
(
pcard
->
code
));
auto
code
=
pcard
->
code
;
if
(
code
==
0
&&
pcard
->
is_moving
)
code
=
pcard
->
chain_code
;
matManager
.
mCard
.
setTexture
(
0
,
imageManager
.
GetTexture
(
code
));
driver
->
setMaterial
(
matManager
.
mCard
);
driver
->
setMaterial
(
matManager
.
mCard
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vCardFront
,
4
,
matManager
.
iRectangle
,
2
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vCardFront
,
4
,
matManager
.
iRectangle
,
2
);
}
}
...
...
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