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
Commits
e33bc567
Commit
e33bc567
authored
Jan 04, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1677
parent
6063e83d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
gframe/client_field.cpp
gframe/client_field.cpp
+6
-1
gframe/client_field.h
gframe/client_field.h
+1
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-4
gframe/event_handler.cpp
gframe/event_handler.cpp
+2
-0
No files found.
gframe/client_field.cpp
View file @
e33bc567
...
...
@@ -1148,7 +1148,12 @@ bool ClientField::ShowSelectSum(bool panelmode) {
}
else
{
select_ready
=
true
;
mainGame
->
wCardSelect
->
setVisible
(
false
);
mainGame
->
dField
.
ShowSelectCard
(
true
);
wchar_t
wbuf
[
256
],
*
pwbuf
=
wbuf
;
BufferIO
::
CopyWStrRef
(
dataManager
.
GetSysString
(
209
),
pwbuf
,
256
);
*
pwbuf
++
=
L'\n'
;
BufferIO
::
CopyWStrRef
(
dataManager
.
GetSysString
(
210
),
pwbuf
,
256
);
mainGame
->
stQMessage
->
setText
(
wbuf
);
mainGame
->
PopupElement
(
mainGame
->
wQuery
);
}
}
else
{
select_ready
=
false
;
...
...
gframe/client_field.h
View file @
e33bc567
...
...
@@ -54,6 +54,7 @@ public:
int
select_sumval
;
int
select_cancelable
;
int
select_mode
;
bool
select_panalmode
;
bool
select_ready
;
int
announce_count
;
int
declarable_type
;
...
...
gframe/duelclient.cpp
View file @
e33bc567
...
...
@@ -1458,7 +1458,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
dField
.
selectsum_all
.
clear
();
mainGame
->
dField
.
selected_cards
.
clear
();
mainGame
->
dField
.
selectsum_cards
.
clear
();
bool
pane
lmode
=
false
;
mainGame
->
dField
.
select_pana
lmode
=
false
;
for
(
int
i
=
0
;
i
<
mainGame
->
dField
.
must_select_count
;
++
i
)
{
unsigned
int
code
=
(
unsigned
int
)
BufferIO
::
ReadInt32
(
pbuf
);
int
c
=
mainGame
->
LocalPlayer
(
BufferIO
::
ReadInt8
(
pbuf
));
...
...
@@ -1484,20 +1484,20 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
select_seq
=
i
;
mainGame
->
dField
.
selectsum_all
.
push_back
(
pcard
);
if
((
l
&
0xe
)
==
0
)
pane
lmode
=
true
;
mainGame
->
dField
.
select_pana
lmode
=
true
;
}
std
::
sort
(
mainGame
->
dField
.
selectsum_all
.
begin
(),
mainGame
->
dField
.
selectsum_all
.
end
(),
ClientCard
::
client_card_sort
);
if
(
select_hint
)
myswprintf
(
textBuffer
,
L"%ls(%d)"
,
dataManager
.
GetDesc
(
select_hint
),
mainGame
->
dField
.
select_sumval
);
else
myswprintf
(
textBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
560
),
mainGame
->
dField
.
select_sumval
);
select_hint
=
0
;
if
(
pane
lmode
)
{
if
(
mainGame
->
dField
.
select_pana
lmode
)
{
mainGame
->
wCardSelect
->
setText
(
textBuffer
);
}
else
{
mainGame
->
stHintMsg
->
setText
(
textBuffer
);
mainGame
->
stHintMsg
->
setVisible
(
true
);
}
return
mainGame
->
dField
.
ShowSelectSum
(
pane
lmode
);
return
mainGame
->
dField
.
ShowSelectSum
(
mainGame
->
dField
.
select_pana
lmode
);
}
case
MSG_SORT_CARD
:
case
MSG_SORT_CHAIN
:
{
...
...
gframe/event_handler.cpp
View file @
e33bc567
...
...
@@ -299,6 +299,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
MSG_SELECT_TRIBUTE
:
case
MSG_SELECT_SUM
:
{
mainGame
->
HideElement
(
mainGame
->
wQuery
);
if
(
select_panalmode
)
mainGame
->
dField
.
ShowSelectCard
(
true
);
break
;
}
case
MSG_SELECT_CHAIN
:
{
...
...
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