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
YGOPRO-520DIY
ygopro
Commits
84c42fb1
Commit
84c42fb1
authored
Jan 23, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove MSG_SORT_CHAIN
parent
95fb23d1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
24 deletions
+8
-24
gframe/client_field.cpp
gframe/client_field.cpp
+1
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-12
gframe/event_handler.cpp
gframe/event_handler.cpp
+0
-2
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+1
-2
gframe/single_duel.cpp
gframe/single_duel.cpp
+1
-2
gframe/single_mode.cpp
gframe/single_mode.cpp
+1
-2
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-2
ocgcore
ocgcore
+1
-1
No files found.
gframe/client_field.cpp
View file @
84c42fb1
...
...
@@ -405,7 +405,7 @@ void ClientField::ShowSelectCard(bool buttonok, bool chain) {
mainGame
->
btnCardSelect
[
i
]
->
setRelativePosition
(
rect
<
s32
>
(
startpos
+
i
*
125
,
55
,
startpos
+
120
+
i
*
125
,
225
));
mainGame
->
btnCardSelect
[
i
]
->
setPressed
(
false
);
mainGame
->
btnCardSelect
[
i
]
->
setVisible
(
true
);
if
(
mainGame
->
dInfo
.
curMsg
!=
MSG_SORT_C
HAIN
&&
mainGame
->
dInfo
.
curMsg
!=
MSG_SORT_C
ARD
)
{
if
(
mainGame
->
dInfo
.
curMsg
!=
MSG_SORT_CARD
)
{
// text
wchar_t
formatBuffer
[
2048
];
if
(
conti_selecting
)
...
...
gframe/duelclient.cpp
View file @
84c42fb1
...
...
@@ -1926,8 +1926,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
}
return
mainGame
->
dField
.
ShowSelectSum
(
mainGame
->
dField
.
select_panalmode
);
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CARD
:
{
/*int player = */
BufferIO
::
ReadInt8
(
pbuf
);
int
count
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
dField
.
selectable_cards
.
clear
();
...
...
@@ -1947,16 +1946,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
dField
.
selectable_cards
.
push_back
(
pcard
);
mainGame
->
dField
.
sort_list
.
push_back
(
0
);
}
if
(
mainGame
->
chkAutoChain
->
isChecked
()
&&
mainGame
->
dInfo
.
curMsg
==
MSG_SORT_CHAIN
)
{
mainGame
->
dField
.
sort_list
.
clear
();
SetResponseI
(
-
1
);
DuelClient
::
SendResponse
();
return
true
;
}
if
(
mainGame
->
dInfo
.
curMsg
==
MSG_SORT_CHAIN
)
mainGame
->
wCardSelect
->
setText
(
dataManager
.
GetSysString
(
206
));
else
mainGame
->
wCardSelect
->
setText
(
dataManager
.
GetSysString
(
205
));
mainGame
->
wCardSelect
->
setText
(
dataManager
.
GetSysString
(
205
));
mainGame
->
dField
.
select_min
=
0
;
mainGame
->
dField
.
select_max
=
count
;
mainGame
->
dField
.
ShowSelectCard
();
...
...
gframe/event_handler.cpp
View file @
84c42fb1
...
...
@@ -744,7 +744,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
ShowSelectSum
(
true
);
break
;
}
case
MSG_SORT_CHAIN
:
case
MSG_SORT_CARD
:
{
int
offset
=
mainGame
->
scrCardList
->
getPos
()
/
10
;
int
sel_seq
=
id
-
BUTTON_CARD_0
+
offset
;
...
...
@@ -2501,7 +2500,6 @@ void ClientField::CancelOrFinish() {
}
break
;
}
case
MSG_SORT_CHAIN
:
case
MSG_SORT_CARD
:
{
if
(
mainGame
->
wCardSelect
->
isVisible
())
{
DuelClient
::
SetResponseI
(
-
1
);
...
...
gframe/replay_mode.cpp
View file @
84c42fb1
...
...
@@ -422,8 +422,7 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
pbuf
+=
count
*
11
;
return
ReadReplayResponse
();
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CARD
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
...
...
gframe/single_duel.cpp
View file @
84c42fb1
...
...
@@ -779,8 +779,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer
::
SendBufferToPlayer
(
players
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
return
1
;
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CARD
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
...
...
gframe/single_mode.cpp
View file @
84c42fb1
...
...
@@ -339,8 +339,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
}
break
;
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CARD
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
...
...
gframe/tag_duel.cpp
View file @
84c42fb1
...
...
@@ -720,8 +720,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer
::
SendBufferToPlayer
(
cur_player
[
player
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
return
1
;
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CARD
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
...
...
ocgcore
@
386e662f
Subproject commit 3
028b7660d7853f1a25ce592756e77037739ea3e
Subproject commit 3
86e662fde6f7f4472ed72b529da9daaccc202a0
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