Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-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
苍蓝
rd-ygopro
Commits
33c5e902
Commit
33c5e902
authored
Mar 30, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
for announcing "海"
parent
9964e4cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
gframe/client_field.cpp
gframe/client_field.cpp
+2
-2
gframe/client_field.h
gframe/client_field.h
+1
-1
gframe/event_handler.cpp
gframe/event_handler.cpp
+2
-2
No files found.
gframe/client_field.cpp
View file @
33c5e902
...
...
@@ -1296,7 +1296,7 @@ static bool is_declarable(T const& cd, int declarable_type) {
return
cd
.
code
==
CARD_MARINE_DOLPHIN
||
cd
.
code
==
CARD_TWINKLE_MOSS
||
(
!
cd
.
alias
&&
(
cd
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
!=
(
TYPE_MONSTER
+
TYPE_TOKEN
));
}
void
ClientField
::
UpdateDeclarableCode
()
{
void
ClientField
::
UpdateDeclarableCode
(
bool
enter
)
{
const
wchar_t
*
pname
=
mainGame
->
ebANCard
->
getText
();
int
trycode
=
BufferIO
::
GetVal
(
pname
);
CardString
cstr
;
...
...
@@ -1308,7 +1308,7 @@ void ClientField::UpdateDeclarableCode() {
ancard
.
push_back
(
trycode
);
return
;
}
if
(
pname
[
0
]
==
0
||
pname
[
1
]
==
0
)
if
(
pname
[
0
]
==
0
||
(
pname
[
1
]
==
0
&&
!
enter
)
)
return
;
mainGame
->
lstANCard
->
clear
();
ancard
.
clear
();
...
...
gframe/client_field.h
View file @
33c5e902
...
...
@@ -103,7 +103,7 @@ public:
void
check_sel_sum_t
(
const
std
::
set
<
ClientCard
*>&
left
,
int
acc
);
bool
check_sum
(
std
::
set
<
ClientCard
*>::
const_iterator
index
,
std
::
set
<
ClientCard
*>::
const_iterator
end
,
int
acc
,
int
count
);
void
UpdateDeclarableCode
();
void
UpdateDeclarableCode
(
bool
enter
);
irr
::
gui
::
IGUIElement
*
panel
;
std
::
vector
<
int
>
ancard
;
...
...
gframe/event_handler.cpp
View file @
33c5e902
...
...
@@ -793,7 +793,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
irr
:
:
gui
::
EGET_EDITBOX_CHANGED
:
{
switch
(
id
)
{
case
EDITBOX_ANCARD
:
{
UpdateDeclarableCode
();
UpdateDeclarableCode
(
false
);
break
;
}
}
...
...
@@ -802,7 +802,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
irr
:
:
gui
::
EGET_EDITBOX_ENTER
:
{
switch
(
id
)
{
case
EDITBOX_ANCARD
:
{
UpdateDeclarableCode
();
UpdateDeclarableCode
(
true
);
break
;
}
case
EDITBOX_CHAT
:
{
...
...
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