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
9496d4b5
Commit
9496d4b5
authored
Feb 27, 2015
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shuffle
parent
fac7ce69
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
15 deletions
+22
-15
gframe/event_handler.cpp
gframe/event_handler.cpp
+17
-11
gframe/game.h
gframe/game.h
+1
-0
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+1
-1
gframe/single_duel.cpp
gframe/single_duel.cpp
+1
-1
gframe/single_mode.cpp
gframe/single_mode.cpp
+1
-1
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+1
-1
No files found.
gframe/event_handler.cpp
View file @
9496d4b5
...
...
@@ -250,6 +250,12 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
mainGame
->
HideElement
(
mainGame
->
wANCard
,
true
);
break
;
}
case
BUTTON_CMD_SHUFFLE
:
{
mainGame
->
wCmdMenu
->
setVisible
(
false
);
DuelClient
::
SetResponseI
(
8
);
DuelClient
::
SendResponse
();
break
;
}
case
BUTTON_CMD_ACTIVATE
:
{
mainGame
->
wCmdMenu
->
setVisible
(
false
);
if
(
!
list_command
)
{
...
...
@@ -984,17 +990,17 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
break
;
}
case
LOCATION_HAND
:
{
if
(
!
clicked_card
)
break
;
int
command_flag
=
clicked_card
->
cmdFlag
;
if
(
clicked_card
->
overlayed
.
size
())
command_flag
|=
COMMAND_LIST
;
list_command
=
0
;
if
(
hovered_location
&
LOCATION_HAND
&&
mainGame
->
canShuffle
&&
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_IDLECMD
)
command_flag
|=
COMMAND_SHUFFLE
;
ShowMenu
(
command_flag
,
x
,
y
);
break
;
if
(
!
clicked_card
)
break
;
int
command_flag
=
clicked_card
->
cmdFlag
;
if
(
clicked_card
->
overlayed
.
size
())
command_flag
|=
COMMAND_LIST
;
list_command
=
0
;
if
(
hovered_location
&
LOCATION_HAND
&&
mainGame
->
canShuffle
&&
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_IDLECMD
)
command_flag
|=
COMMAND_SHUFFLE
;
ShowMenu
(
command_flag
,
x
,
y
);
break
;
}
case
LOCATION_MZONE
:
case
LOCATION_SZONE
:
{
...
...
gframe/game.h
View file @
9496d4b5
...
...
@@ -428,6 +428,7 @@ extern Game* mainGame;
#define BUTTON_CMD_REPOS 245
#define BUTTON_CMD_ATTACK 246
#define BUTTON_CMD_SHOWLIST 247
#define BUTTON_CMD_SHUFFLE 248
#define BUTTON_ANNUMBER_OK 250
#define BUTTON_ANCARD_OK 251
#define EDITBOX_ANCARD 252
...
...
gframe/replay_mode.cpp
View file @
9496d4b5
...
...
@@ -250,7 +250,7 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
11
+
2
;
pbuf
+=
count
*
11
+
3
;
ReplayRefresh
();
return
ReadReplayResponse
();
}
...
...
gframe/single_duel.cpp
View file @
9496d4b5
...
...
@@ -637,7 +637,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
11
+
2
;
pbuf
+=
count
*
11
+
3
;
RefreshMzone
(
0
);
RefreshMzone
(
1
);
RefreshSzone
(
0
);
...
...
gframe/single_mode.cpp
View file @
9496d4b5
...
...
@@ -161,7 +161,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
11
+
2
;
pbuf
+=
count
*
11
+
3
;
SinglePlayRefresh
();
if
(
!
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
))
{
mainGame
->
singleSignal
.
Reset
();
...
...
gframe/tag_duel.cpp
View file @
9496d4b5
...
...
@@ -570,7 +570,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
7
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
11
+
2
;
pbuf
+=
count
*
11
+
3
;
RefreshMzone
(
0
);
RefreshMzone
(
1
);
RefreshSzone
(
0
);
...
...
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