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
f33b04ef
Commit
f33b04ef
authored
Jan 04, 2017
by
独孤朲
Committed by
GitHub
Jan 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1908 from mercury233/patch-4
fix #1677
parents
43370617
e33bc567
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 @
f33b04ef
...
@@ -1148,7 +1148,12 @@ bool ClientField::ShowSelectSum(bool panelmode) {
...
@@ -1148,7 +1148,12 @@ bool ClientField::ShowSelectSum(bool panelmode) {
}
else
{
}
else
{
select_ready
=
true
;
select_ready
=
true
;
mainGame
->
wCardSelect
->
setVisible
(
false
);
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
{
}
else
{
select_ready
=
false
;
select_ready
=
false
;
...
...
gframe/client_field.h
View file @
f33b04ef
...
@@ -54,6 +54,7 @@ public:
...
@@ -54,6 +54,7 @@ public:
int
select_sumval
;
int
select_sumval
;
int
select_cancelable
;
int
select_cancelable
;
int
select_mode
;
int
select_mode
;
bool
select_panalmode
;
bool
select_ready
;
bool
select_ready
;
int
announce_count
;
int
announce_count
;
int
declarable_type
;
int
declarable_type
;
...
...
gframe/duelclient.cpp
View file @
f33b04ef
...
@@ -1460,7 +1460,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1460,7 +1460,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
dField
.
selectsum_all
.
clear
();
mainGame
->
dField
.
selectsum_all
.
clear
();
mainGame
->
dField
.
selected_cards
.
clear
();
mainGame
->
dField
.
selected_cards
.
clear
();
mainGame
->
dField
.
selectsum_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
)
{
for
(
int
i
=
0
;
i
<
mainGame
->
dField
.
must_select_count
;
++
i
)
{
unsigned
int
code
=
(
unsigned
int
)
BufferIO
::
ReadInt32
(
pbuf
);
unsigned
int
code
=
(
unsigned
int
)
BufferIO
::
ReadInt32
(
pbuf
);
int
c
=
mainGame
->
LocalPlayer
(
BufferIO
::
ReadInt8
(
pbuf
));
int
c
=
mainGame
->
LocalPlayer
(
BufferIO
::
ReadInt8
(
pbuf
));
...
@@ -1486,20 +1486,20 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1486,20 +1486,20 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
select_seq
=
i
;
pcard
->
select_seq
=
i
;
mainGame
->
dField
.
selectsum_all
.
push_back
(
pcard
);
mainGame
->
dField
.
selectsum_all
.
push_back
(
pcard
);
if
((
l
&
0xe
)
==
0
)
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
);
std
::
sort
(
mainGame
->
dField
.
selectsum_all
.
begin
(),
mainGame
->
dField
.
selectsum_all
.
end
(),
ClientCard
::
client_card_sort
);
if
(
select_hint
)
if
(
select_hint
)
myswprintf
(
textBuffer
,
L"%ls(%d)"
,
dataManager
.
GetDesc
(
select_hint
),
mainGame
->
dField
.
select_sumval
);
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
);
else
myswprintf
(
textBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
560
),
mainGame
->
dField
.
select_sumval
);
select_hint
=
0
;
select_hint
=
0
;
if
(
pane
lmode
)
{
if
(
mainGame
->
dField
.
select_pana
lmode
)
{
mainGame
->
wCardSelect
->
setText
(
textBuffer
);
mainGame
->
wCardSelect
->
setText
(
textBuffer
);
}
else
{
}
else
{
mainGame
->
stHintMsg
->
setText
(
textBuffer
);
mainGame
->
stHintMsg
->
setText
(
textBuffer
);
mainGame
->
stHintMsg
->
setVisible
(
true
);
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_CARD
:
case
MSG_SORT_CHAIN
:
{
case
MSG_SORT_CHAIN
:
{
...
...
gframe/event_handler.cpp
View file @
f33b04ef
...
@@ -299,6 +299,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -299,6 +299,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
MSG_SELECT_TRIBUTE
:
case
MSG_SELECT_TRIBUTE
:
case
MSG_SELECT_SUM
:
{
case
MSG_SELECT_SUM
:
{
mainGame
->
HideElement
(
mainGame
->
wQuery
);
mainGame
->
HideElement
(
mainGame
->
wQuery
);
if
(
select_panalmode
)
mainGame
->
dField
.
ShowSelectCard
(
true
);
break
;
break
;
}
}
case
MSG_SELECT_CHAIN
:
{
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