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
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
nanahira
ygopro
Commits
d619f487
Commit
d619f487
authored
Oct 31, 2019
by
IMJoyJ
Committed by
nanahira
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve replay playing behavior in auto watch mode (#18)
parent
ad025c77
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
.gitignore
.gitignore
+4
-0
README.md
README.md
+1
-1
gframe/drawing.cpp
gframe/drawing.cpp
+1
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-3
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+7
-1
No files found.
.gitignore
View file @
d619f487
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
.vscode
.vscode
core*
core*
/bak/
/bak/
/.vs
/bug.txt
/bug.txt
/output
/output
/temp
/temp
...
@@ -90,3 +91,6 @@ core*
...
@@ -90,3 +91,6 @@ core*
/*.bat
/*.bat
/*.sh
/*.sh
/*.sql
/*.sql
/patch.exe.manifest
/patch.exe
/diff.exe
README.md
View file @
d619f487
...
@@ -62,4 +62,4 @@ Xyz materials:
...
@@ -62,4 +62,4 @@ Xyz materials:
*
textures: Other image files.
*
textures: Other image files.
*
deck: .ydk deck files.
*
deck: .ydk deck files.
*
replay: .yrp replay files.
*
replay: .yrp replay files.
*
expansions:
*
.cdb will be loaded as extra databases.
*
expansions:
*
.cdb will be loaded as extra databases.
\ No newline at end of file
gframe/drawing.cpp
View file @
d619f487
...
@@ -984,7 +984,7 @@ void Game::DrawSpec() {
...
@@ -984,7 +984,7 @@ void Game::DrawSpec() {
break
;
break
;
}
}
}
}
if
(
auto_watch_mode
&&
showcard
code
<
8
&&
showcardcode
>
0
)
{
if
(
auto_watch_mode
&&
showcard
p
<
8
&&
showcardp
>
0
&&
showcardcode
>
10
0
)
{
mainGame
->
ShowCardInfo
(
showcardcode
);
mainGame
->
ShowCardInfo
(
showcardcode
);
}
}
}
}
...
...
gframe/duelclient.cpp
View file @
d619f487
...
@@ -3033,8 +3033,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -3033,8 +3033,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
}
}
if
(
auto_watch_mode
)
{
if
(
auto_watch_mode
)
{
int
code
=
mainGame
->
dField
.
chains
[
ct
-
1
].
chain_card
->
code
;
int
code
=
mainGame
->
dField
.
chains
[
ct
-
1
].
chain_card
->
code
;
if
(
code
>
0
)
mainGame
->
ShowCardInfo
(
code
);
mainGame
->
ShowCardInfo
(
code
);
}
}
mainGame
->
dField
.
last_chain
=
false
;
mainGame
->
dField
.
last_chain
=
false
;
return
true
;
return
true
;
...
@@ -3106,7 +3105,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -3106,7 +3105,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
int
s
=
BufferIO
::
ReadInt8
(
pbuf
);
int
s
=
BufferIO
::
ReadInt8
(
pbuf
);
/*int ss = */
BufferIO
::
ReadInt8
(
pbuf
);
/*int ss = */
BufferIO
::
ReadInt8
(
pbuf
);
ClientCard
*
pcard
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
ClientCard
*
pcard
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
if
(
auto_watch_mode
&&
i
==
0
&&
pcard
->
code
>
0
)
{
if
(
auto_watch_mode
&&
i
==
0
)
{
mainGame
->
ShowCardInfo
(
pcard
->
code
);
mainGame
->
ShowCardInfo
(
pcard
->
code
);
}
}
pcard
->
is_highlighting
=
true
;
pcard
->
is_highlighting
=
true
;
...
...
gframe/replay_mode.cpp
View file @
d619f487
...
@@ -238,7 +238,13 @@ void ReplayMode::EndDuel() {
...
@@ -238,7 +238,13 @@ void ReplayMode::EndDuel() {
mainGame
->
HideElement
(
mainGame
->
wCardSelect
);
mainGame
->
HideElement
(
mainGame
->
wCardSelect
);
mainGame
->
PopupElement
(
mainGame
->
wMessage
);
mainGame
->
PopupElement
(
mainGame
->
wMessage
);
mainGame
->
gMutex
.
unlock
();
mainGame
->
gMutex
.
unlock
();
mainGame
->
actionSignal
.
Wait
();
if
(
auto_watch_mode
)
{
mainGame
->
actionSignal
.
Wait
(
2000
);
mainGame
->
device
->
closeDevice
();
}
else
{
mainGame
->
actionSignal
.
Wait
();
}
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
mainGame
->
dInfo
.
isStarted
=
false
;
mainGame
->
dInfo
.
isStarted
=
false
;
mainGame
->
dInfo
.
isFinished
=
true
;
mainGame
->
dInfo
.
isFinished
=
true
;
...
...
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