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
7ceabb92
Commit
7ceabb92
authored
Feb 28, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shuffle
parent
9b22d11c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
gframe/event_handler.cpp
gframe/event_handler.cpp
+6
-8
gframe/game.h
gframe/game.h
+1
-0
No files found.
gframe/event_handler.cpp
View file @
7ceabb92
...
@@ -996,8 +996,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -996,8 +996,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
clicked_card
->
overlayed
.
size
())
if
(
clicked_card
->
overlayed
.
size
())
command_flag
|=
COMMAND_LIST
;
command_flag
|=
COMMAND_LIST
;
list_command
=
0
;
list_command
=
0
;
if
(
hovered_location
&
LOCATION_HAND
&&
mainGame
->
canShuffle
if
(
mainGame
->
canShuffle
&&
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_IDLECMD
)
&&
mainGame
->
dInfo
.
curMsg
==
MSG_SELECT_IDLECMD
)
command_flag
|=
COMMAND_SHUFFLE
;
command_flag
|=
COMMAND_SHUFFLE
;
ShowMenu
(
command_flag
,
x
,
y
);
ShowMenu
(
command_flag
,
x
,
y
);
break
;
break
;
...
@@ -1693,12 +1692,6 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -1693,12 +1692,6 @@ void ClientField::ShowMenu(int flag, int x, int y) {
return
;
return
;
}
}
int
height
=
1
;
int
height
=
1
;
if
(
flag
&
COMMAND_SHUFFLE
)
{
mainGame
->
btnShuffle
->
setVisible
(
true
);
mainGame
->
btnShuffle
->
setRelativePosition
(
position2di
(
1
,
height
));
height
+=
21
;
}
else
mainGame
->
btnShuffle
->
setVisible
(
false
);
if
(
flag
&
COMMAND_ACTIVATE
)
{
if
(
flag
&
COMMAND_ACTIVATE
)
{
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setVisible
(
true
);
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnActivate
->
setRelativePosition
(
position2di
(
1
,
height
));
...
@@ -1749,6 +1742,11 @@ void ClientField::ShowMenu(int flag, int x, int y) {
...
@@ -1749,6 +1742,11 @@ void ClientField::ShowMenu(int flag, int x, int y) {
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
1
,
height
));
mainGame
->
btnShowList
->
setRelativePosition
(
position2di
(
1
,
height
));
height
+=
21
;
height
+=
21
;
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
}
else
mainGame
->
btnShowList
->
setVisible
(
false
);
if
(
flag
&
COMMAND_SHUFFLE
)
{
mainGame
->
btnShuffle
->
setVisible
(
true
);
mainGame
->
btnShuffle
->
setRelativePosition
(
position2di
(
1
,
height
));
height
+=
21
;
}
else
mainGame
->
btnShuffle
->
setVisible
(
false
);
panel
=
mainGame
->
wCmdMenu
;
panel
=
mainGame
->
wCmdMenu
;
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setVisible
(
true
);
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
20
,
y
-
20
-
height
,
x
+
80
,
y
-
20
));
mainGame
->
wCmdMenu
->
setRelativePosition
(
irr
::
core
::
recti
(
x
-
20
,
y
-
20
-
height
,
x
+
80
,
y
-
20
));
...
...
gframe/game.h
View file @
7ceabb92
...
@@ -375,6 +375,7 @@ extern Game* mainGame;
...
@@ -375,6 +375,7 @@ extern Game* mainGame;
#define COMMAND_REPOS 0x0020
#define COMMAND_REPOS 0x0020
#define COMMAND_ATTACK 0x0040
#define COMMAND_ATTACK 0x0040
#define COMMAND_LIST 0x0080
#define COMMAND_LIST 0x0080
#define COMMAND_SHUFFLE 0x0100
#define BUTTON_LAN_MODE 100
#define BUTTON_LAN_MODE 100
#define BUTTON_SINGLE_MODE 101
#define BUTTON_SINGLE_MODE 101
...
...
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