Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
a7e75b1e
Commit
a7e75b1e
authored
Oct 10, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add F4, F8
parent
dfb6b72e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
144 deletions
+113
-144
gframe/client_field.cpp
gframe/client_field.cpp
+88
-140
gframe/event_handler.cpp
gframe/event_handler.cpp
+23
-2
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
gframe/client_field.cpp
View file @
a7e75b1e
This diff is collapsed.
Click to expand it.
gframe/event_handler.cpp
View file @
a7e75b1e
...
...
@@ -741,10 +741,11 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
}
else
{
if
(
selectable_cards
[
i
+
pos
]
->
is_conti
)
myswprintf
(
formatBuffer
,
L"%ls"
,
DataManager
::
unknown_string
);
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
else
if
(
selectable_cards
[
i
+
pos
]
->
location
==
LOCATION_OVERLAY
)
{
myswprintf
(
formatBuffer
,
L"%ls[%d](%d)"
,
dataManager
.
FormatLocation
(
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
location
,
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
sequence
),
selectable_cards
[
i
+
pos
]
->
overlayTarget
->
sequence
+
1
,
selectable_cards
[
i
+
pos
]
->
sequence
+
1
);
}
else
myswprintf
(
formatBuffer
,
L"%ls[%d]"
,
dataManager
.
FormatLocation
(
selectable_cards
[
i
+
pos
]
->
location
,
selectable_cards
[
i
+
pos
]
->
sequence
),
selectable_cards
[
i
+
pos
]
->
sequence
+
1
);
...
...
@@ -1613,9 +1614,11 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
irr
:
:
KEY_F1
:
case
irr
:
:
KEY_F2
:
case
irr
:
:
KEY_F3
:
case
irr
:
:
KEY_F4
:
case
irr
:
:
KEY_F5
:
case
irr
:
:
KEY_F6
:
case
irr
:
:
KEY_F7
:
{
case
irr
:
:
KEY_F7
:
case
irr
:
:
KEY_F8
:
{
if
(
!
event
.
KeyInput
.
PressedDown
&&
!
mainGame
->
dInfo
.
isReplay
&&
mainGame
->
dInfo
.
player_type
!=
7
&&
mainGame
->
dInfo
.
isStarted
&&
!
mainGame
->
wCardDisplay
->
isVisible
()
&&
!
mainGame
->
HasFocus
(
EGUIET_EDIT_BOX
))
{
int
loc_id
=
0
;
...
...
@@ -1636,6 +1639,15 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
for
(
int32
i
=
(
int32
)
extra
[
0
].
size
()
-
1
;
i
>=
0
;
--
i
)
display_cards
.
push_back
(
extra
[
0
][
i
]);
break
;
case
irr
:
:
KEY_F4
:
loc_id
=
1007
;
for
(
int32
i
=
0
;
i
<=
4
;
++
i
)
{
if
(
mzone
[
0
][
i
]
&&
mzone
[
0
][
i
]
->
overlayed
.
size
())
{
for
(
int32
j
=
0
;
j
<=
(
int32
)
mzone
[
0
][
i
]
->
overlayed
.
size
()
-
1
;
++
j
)
display_cards
.
push_back
(
mzone
[
0
][
i
]
->
overlayed
[
j
]);
}
}
break
;
case
irr
:
:
KEY_F5
:
loc_id
=
1004
;
for
(
int32
i
=
(
int32
)
grave
[
1
].
size
()
-
1
;
i
>=
0
;
--
i
)
...
...
@@ -1651,6 +1663,15 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
for
(
int32
i
=
(
int32
)
extra
[
1
].
size
()
-
1
;
i
>=
0
;
--
i
)
display_cards
.
push_back
(
extra
[
1
][
i
]);
break
;
case
irr
:
:
KEY_F8
:
loc_id
=
1007
;
for
(
int32
i
=
0
;
i
<=
4
;
++
i
)
{
if
(
mzone
[
1
][
i
]
&&
mzone
[
1
][
i
]
->
overlayed
.
size
())
{
for
(
int32
j
=
0
;
j
<=
(
int32
)
mzone
[
1
][
i
]
->
overlayed
.
size
()
-
1
;
++
j
)
display_cards
.
push_back
(
mzone
[
1
][
i
]
->
overlayed
[
j
]);
}
}
break
;
}
if
(
display_cards
.
size
())
{
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
loc_id
),
display_cards
.
size
());
...
...
ocgcore
@
99e817b3
Subproject commit
c96a56694a4f51f6ec5e0b85442b6026a9739c2d
Subproject commit
99e817b3d4a38900f855028aac792fcf0e3a2861
script
@
7eac1f37
Subproject commit
ecc9ccf118b4d8caab700445a8912d8ba0911bba
Subproject commit
7eac1f376e3364021806d6f252c7f0bc02f169ed
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